Пример #1
0
 public override void SetPasswordChangeNoLongerRequired()
 {
     if (AuthenticationResultConflict == PASSWORD_CHANGE_REQUIRED)
     {
         AuthenticationResultConflict = SUCCESS;
         outerInstance.accessMode     = [email protected]_Static.Full;
     }
 }
Пример #2
0
        public BasicLoginContext(User user, AuthenticationResult authenticationResult)
        {
            this._authSubject = new BasicAuthSubject(this, user, authenticationResult);

            switch (authenticationResult)
            {
            case AuthenticationResult.SUCCESS:
                _accessMode = [email protected]_Static.Full;
                break;

            case AuthenticationResult.PASSWORD_CHANGE_REQUIRED:
                _accessMode = [email protected]_Static.CredentialsExpired;
                break;

            default:
                _accessMode = [email protected]_Static.None;
                break;
            }
        }
Пример #3
0
 public ShiroSubject(PrincipalCollection principals, bool authenticated, string host, Session session, bool sessionCreationEnabled, SecurityManager securityManager, AuthenticationResult authenticationResult, ShiroAuthenticationInfo authenticationInfo) : base(principals, authenticated, host, session, sessionCreationEnabled, securityManager)
 {
     this._authenticationResult = authenticationResult;
     this._authenticationInfo   = authenticationInfo;
 }
Пример #4
0
 public ShiroSubject(SecurityManager securityManager, AuthenticationResult authenticationResult) : base(securityManager)
 {
     this._authenticationResult = authenticationResult;
 }
Пример #5
0
 public override void Logout()
 {
     User = null;
     AuthenticationResultConflict = FAILURE;
 }
Пример #6
0
 internal BasicAuthSubject(BasicLoginContext outerInstance, User user, AuthenticationResult authenticationResult)
 {
     this._outerInstance = outerInstance;
     this.User           = user;
     this.AuthenticationResultConflict = authenticationResult;
 }