Show / Hide Table of Contents

Enum AuthorizationState

Authorization state of the current SoPrincipal.
This replaces Authentication state of SoPrincipal which now is made obsolete.

Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public enum AuthorizationState
Remarks

The initial state of SoPrincipal is allways Unauthorized.
When the Authorization starts, the state is set to Authorizing. The state is set to Authorized if the Authorization succeeded and AuthorizationFailed if the Authorization failed.

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

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

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

Fields

Name Description
AuthorizationFailed

The Authorization has failed.

Authorized

The session is Authorized

Authorizing

The session is currently being Authorizing

Closed

The session has closed

Suspended

The session has been suspended.

Unauthorized

The process of Authorization has not been carried out.

Extension Methods

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