因此,雖然學習JS和專門平均2棧我試圖打造出一個基本的多租戶應用程序。林建設了註冊的快遞和流動路線我試圖實現將是: 註冊公司名稱,電子郵件地址和密碼。該信息將用於保存新租戶,然後返回新租戶的_id,然後使用此新ID,電子郵件和密碼來保存新用戶。 最接近的是: router.post('/', function (req, res, next) {
var tenant = new Te
我已經實現了AD身份驗證,其中我已通過Client ID,redirectUri和Tenant作爲「Common」。由於我使用Tenant作爲live.com的「普通」用戶,因此允許使用outlook.com,microsoft.com以及學校和辦公室。我希望它僅限於Live.com用戶。 public class Startup
{
// The Client ID is used
我正在使用Rails實施多租戶應用程序。我的方法是不使用postgres內置的多租戶功能並添加一列來記錄子域。也就是說,在此提出:) 讓我們這個例子 class Organisation < ActiveRecord::Base
has_many :users
end
class User < ActiveRecord::Base
belongs_to :organisa