Class SoImpersonationIdentityValidator
Implements
Inherited Members
Namespace: SuperOffice.Security.Principal
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[SoIdentityValidator("SoImpersonationIdentityValidator")]
public sealed class SoImpersonationIdentityValidator : ISoIdentityValidator
Constructors
SoImpersonationIdentityValidator()
Declaration
public SoImpersonationIdentityValidator()
Methods
TryValidateIdentity(IEnumerable<ClaimsIdentity>, ClaimsIdentity, SoConnection, out string)
Validate the tokens after they are resolved. At least one of the validators must respond Valid for authentication to succeed. The Authentication process fails if one of the validators return Rejected.
Declaration
public TokenValidationResult TryValidateIdentity(IEnumerable<ClaimsIdentity> identities, ClaimsIdentity resolvedIdentity, SoConnection dbConnection, out string reason)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ClaimsIdentity> | identities | Tokens to validate |
ClaimsIdentity | resolvedIdentity | The Identity resolved to. |
SoConnection | dbConnection | |
string | reason | The reason for the result. This value should always be set to something meaningfull if Rejected is returned. |
Returns
Type | Description |
---|---|
TokenValidationResult | Result of validation. |