Interface IPostAuthenticationPlugin
Namespace: SuperOffice.Security.Principal
Assembly: SoCore.dll
Syntax
public interface IPostAuthenticationPlugin
Methods
PostAuthenticateFail(ClaimsPrincipal, IEnumerable<ClaimsIdentity>, Exception)
Method called after authentication fails
Declaration
bool PostAuthenticateFail(ClaimsPrincipal principal, IEnumerable<ClaimsIdentity> identites, Exception ex)
Parameters
| Type | Name | Description |
|---|---|---|
| ClaimsPrincipal | principal | Principal successfully authenticated |
| IEnumerable<ClaimsIdentity> | identites | |
| Exception | ex | Exception thrown as part of the authentication process |
Returns
| Type | Description |
|---|---|
| bool | Return true to continue passing the failed autjhentication back to the user or return false to re-authenticate. |
PostAuthenticateSuccess(ClaimsPrincipal, IEnumerable<ClaimsIdentity>)
Declaration
bool PostAuthenticateSuccess(ClaimsPrincipal principal, IEnumerable<ClaimsIdentity> identites)
Parameters
| Type | Name | Description |
|---|---|---|
| ClaimsPrincipal | principal | |
| IEnumerable<ClaimsIdentity> | identites |
Returns
| Type | Description |
|---|---|
| bool |