Show / Hide Table of Contents

Class AuthenticationState

Authentication state of the current

Inheritance
Object
AuthenticationState
Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public sealed class AuthenticationState : Enum
Remarks

The initial state of is allways Unauthenticated.
When the authentication starts, the state is set to Authenticating. The state is set to Authenticated if the authentication succeeded and AuthenticationFailed if the authentication failed.

The authentication state is set to Disconnected or Closed if such operations are performed on SoSession.

A value greater than Unauthenticated means that the process of authentication is either being carried out or has actually been successfull. CurrentPrincipal is available when the athentication are in these states.

A value less than Unauthenticated means that we don't have a valid session.

Fields

Authenticated

The session is authenticated

Declaration
public const AuthenticationState Authenticated
Field Value
Type Description
AuthenticationState
Remarks

The initial state of is allways Unauthenticated.
When the authentication starts, the state is set to Authenticating. The state is set to Authenticated if the authentication succeeded and AuthenticationFailed if the authentication failed.

The authentication state is set to Disconnected or Closed if such operations are performed on SoSession.

A value greater than Unauthenticated means that the process of authentication is either being carried out or has actually been successfull. CurrentPrincipal is available when the athentication are in these states.

A value less than Unauthenticated means that we don't have a valid session.

Authenticating

The session is currently being authenticating

Declaration
public const AuthenticationState Authenticating
Field Value
Type Description
AuthenticationState
Remarks

The initial state of is allways Unauthenticated.
When the authentication starts, the state is set to Authenticating. The state is set to Authenticated if the authentication succeeded and AuthenticationFailed if the authentication failed.

The authentication state is set to Disconnected or Closed if such operations are performed on SoSession.

A value greater than Unauthenticated means that the process of authentication is either being carried out or has actually been successfull. CurrentPrincipal is available when the athentication are in these states.

A value less than Unauthenticated means that we don't have a valid session.

AuthenticationFailed

The authentication has failed.

Declaration
public const AuthenticationState AuthenticationFailed
Field Value
Type Description
AuthenticationState
Remarks

The initial state of is allways Unauthenticated.
When the authentication starts, the state is set to Authenticating. The state is set to Authenticated if the authentication succeeded and AuthenticationFailed if the authentication failed.

The authentication state is set to Disconnected or Closed if such operations are performed on SoSession.

A value greater than Unauthenticated means that the process of authentication is either being carried out or has actually been successfull. CurrentPrincipal is available when the athentication are in these states.

A value less than Unauthenticated means that we don't have a valid session.

Closed

The session has closed

Declaration
public const AuthenticationState Closed
Field Value
Type Description
AuthenticationState
Remarks

The initial state of is allways Unauthenticated.
When the authentication starts, the state is set to Authenticating. The state is set to Authenticated if the authentication succeeded and AuthenticationFailed if the authentication failed.

The authentication state is set to Disconnected or Closed if such operations are performed on SoSession.

A value greater than Unauthenticated means that the process of authentication is either being carried out or has actually been successfull. CurrentPrincipal is available when the athentication are in these states.

A value less than Unauthenticated means that we don't have a valid session.

Suspended

The session has been suspended.

Declaration
public const AuthenticationState Suspended
Field Value
Type Description
AuthenticationState
Remarks

The initial state of is allways Unauthenticated.
When the authentication starts, the state is set to Authenticating. The state is set to Authenticated if the authentication succeeded and AuthenticationFailed if the authentication failed.

The authentication state is set to Disconnected or Closed if such operations are performed on SoSession.

A value greater than Unauthenticated means that the process of authentication is either being carried out or has actually been successfull. CurrentPrincipal is available when the athentication are in these states.

A value less than Unauthenticated means that we don't have a valid session.

Unauthenticated

The process of authentication has not been carried out.

Declaration
public const AuthenticationState Unauthenticated
Field Value
Type Description
AuthenticationState
Remarks

The initial state of is allways Unauthenticated.
When the authentication starts, the state is set to Authenticating. The state is set to Authenticated if the authentication succeeded and AuthenticationFailed if the authentication failed.

The authentication state is set to Disconnected or Closed if such operations are performed on SoSession.

A value greater than Unauthenticated means that the process of authentication is either being carried out or has actually been successfull. CurrentPrincipal is available when the athentication are in these states.

A value less than Unauthenticated means that we don't have a valid session.

value__

Authentication state of the current

Declaration
public int value__
Field Value
Type Description
Int32
Remarks

The initial state of is allways Unauthenticated.
When the authentication starts, the state is set to Authenticating. The state is set to Authenticated if the authentication succeeded and AuthenticationFailed if the authentication failed.

The authentication state is set to Disconnected or Closed if such operations are performed on SoSession.

A value greater than Unauthenticated means that the process of authentication is either being carried out or has actually been successfull. CurrentPrincipal is available when the athentication are in these states.

A value less than Unauthenticated means that we don't have a valid session.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top