Show / Hide Table of Contents

Class PrincipalStatePostAuthenticationPlugin

Inheritance
object
PrincipalStatePostAuthenticationPlugin
Implements
IPostAuthenticationPlugin
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Security.Principal
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[PostAuthenticationPlugin("PrincipalStatePostAuthenticationPlugin")]
public class PrincipalStatePostAuthenticationPlugin : IPostAuthenticationPlugin

Constructors

PrincipalStatePostAuthenticationPlugin(ICacheManager)

Declaration
public PrincipalStatePostAuthenticationPlugin(ICacheManager cacheManager)
Parameters
Type Name Description
ICacheManager cacheManager

Methods

PostAuthenticateFail(ClaimsPrincipal, IEnumerable<ClaimsIdentity>, Exception)

Method called after authentication fails

Declaration
public 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
public bool PostAuthenticateSuccess(ClaimsPrincipal principal, IEnumerable<ClaimsIdentity> identites)
Parameters
Type Name Description
ClaimsPrincipal principal
IEnumerable<ClaimsIdentity> identites
Returns
Type Description
bool

Implements

IPostAuthenticationPlugin

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