コード例 #1
0
        public SaaSApiController()
        {
            _nps  = new NpsRepository();
            _auth = new AuthRepository();
            _auth.SetDataProtectorProvider(Startup.DataProtectionProvider);

            _authProduct = new AuthProductRepository();
        }
コード例 #2
0
        public SaaSApiController()
        {
            _auth = new AuthRepository();
            _auth.SetDataProtectorProvider(Startup.DataProtectionProvider);

            _authAdmin = new AuthAdminRepository();
            _authAdmin.SetDataProtectorProvider(Startup.DataProtectionProvider);

            _authProduct = new AuthProductRepository();
            _gdpr        = new AuthAdminRepository("udb");
        }
コード例 #3
0
 protected BaseApiController()
 {
     _auth        = new AuthRepository();
     _eSign       = new eSignRepository();
     _authProduct = new AuthProductRepository();
 }
コード例 #4
0
 internal static SaaSScopeBase Create(string scope, IAuthRepository auth = null, IAuthProductRepository authProduct = null)
 {
     return(Create(StringToScope(scope), auth, authProduct));
 }
コード例 #5
0
        internal static SaaSScopeBase Create(string[] scope, IAuthRepository auth = null, IAuthProductRepository authProduct = null)
        {
            var worker = Create(scope);

            worker.Auth        = auth;
            worker.AuthProduct = authProduct;

            return(worker);
        }