Exemple #1
0
 public IdentitySSOAuthorizeAttribute()
 {
     _loginActionName            = DEFAULT_ACTION_NAME;
     _authenticationScheme       = DEFAULT_AUTH_SCHEME;
     _loginControllerName        = DEFAULT_CONTROLLER_NAME;
     _signInService              = IdentityInjectionHelper.GetService <ISignInRequestService>();
     _authenticateRequestService = IdentityInjectionHelper.GetService <IAuthenticateRequestService>();
 }
Exemple #2
0
 public UserController(ISignInRequestService signInService,
                       IAccountsRequestService accountsRequestService,
                       IAuthenticateRequestService authenticateRequestService,
                       ISSOAuthenticationRequestService sSOAuthenticationRequestService,
                       IDataProtectionProvider dataProtectorProvider)
 {
     _signInService                   = signInService;
     _accountsRequestService          = accountsRequestService;
     _authenticateRequestService      = authenticateRequestService;
     _sSOAuthenticationRequestService = sSOAuthenticationRequestService;
     _dataProtector                   = dataProtectorProvider.CreateProtector(SecurityConstant.AQSecurityMasterProtector);
 }
Exemple #3
0
 public IdentitySSOAuthorizeAttribute(string controllerName, string actionName, string authenticationScheme, IAuthenticateRequestService authenticateRequestService = null, ISignInRequestService signInService = null)
 {
     _loginActionName      = actionName;
     _loginControllerName  = controllerName;
     _authenticationScheme = string.IsNullOrEmpty(authenticationScheme) ? DEFAULT_AUTH_SCHEME : authenticationScheme;
     _signInService        = signInService != null
         ? signInService
         :IdentityInjectionHelper.GetService <ISignInRequestService>();
     _authenticateRequestService = authenticateRequestService != null
         ? authenticateRequestService
         : IdentityInjectionHelper.GetService <IAuthenticateRequestService>();
 }
Exemple #4
0
        public FrontEndController(IAuthenticateRequestService authenticateRequestService,
                                  IAccountsRequestService accountsRequestService,
                                  ISignInRequestService signInRequestService)
        {
            _signInRequestService         = signInRequestService;
            _signInRequestService.BaseUrl = "https://localhost:44393/";

            _accountsRequestService         = accountsRequestService;
            _accountsRequestService.BaseUrl = "https://localhost:44393/";

            _authenticateRequestService         = authenticateRequestService;
            _authenticateRequestService.BaseUrl = "https://localhost:44393/";
        }