Interface ISoIdentityValidator
Interface for plugin capable validating the authentication process
Namespace: SuperOffice.Security.Principal
Assembly: SoDataBase.dll
Syntax
public interface ISoIdentityValidator
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
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. |