Exemplo n.º 1
0
 public IdentitySSOAuthorizeAttribute()
 {
     _loginActionName            = DEFAULT_ACTION_NAME;
     _authenticationScheme       = DEFAULT_AUTH_SCHEME;
     _loginControllerName        = DEFAULT_CONTROLLER_NAME;
     _signInService              = IdentityInjectionHelper.GetService <ISignInRequestService>();
     _authenticateRequestService = IdentityInjectionHelper.GetService <IAuthenticateRequestService>();
 }
Exemplo n.º 2
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>();
 }