public SaaSApiController() { _nps = new NpsRepository(); _auth = new AuthRepository(); _auth.SetDataProtectorProvider(Startup.DataProtectionProvider); _authProduct = new AuthProductRepository(); }
public SaaSApiController() { _auth = new AuthRepository(); _auth.SetDataProtectorProvider(Startup.DataProtectionProvider); _authAdmin = new AuthAdminRepository(); _authAdmin.SetDataProtectorProvider(Startup.DataProtectionProvider); _authProduct = new AuthProductRepository(); _gdpr = new AuthAdminRepository("udb"); }
protected BaseApiController() { _auth = new AuthRepository(); _eSign = new eSignRepository(); _authProduct = new AuthProductRepository(); }
internal static SaaSScopeBase Create(string scope, IAuthRepository auth = null, IAuthProductRepository authProduct = null) { return(Create(StringToScope(scope), auth, authProduct)); }
internal static SaaSScopeBase Create(string[] scope, IAuthRepository auth = null, IAuthProductRepository authProduct = null) { var worker = Create(scope); worker.Auth = auth; worker.AuthProduct = authProduct; return(worker); }