C# Class ServiceLayer.CustomAspNetIdentity.CustomSecurityStampValidator

Show file Open project: rabbal/Mvc5

Public Methods

Method Description
OnValidateIdentity ( System.TimeSpan validateInterval, Func regenerateIdentity ) : Task>.Func

Can be used as the ValidateIdentity method for a CookieAuthenticationProvider which will check a user's security stamp after validateInterval Rejects the identity if the stamp changes, and otherwise will call regenerateIdentity to sign in a new ClaimsIdentity

OnValidateIdentity ( System.TimeSpan validateInterval, Func regenerateIdentityCallback, long>.Func getUserIdCallback ) : Task>.Func

Can be used as the ValidateIdentity method for a CookieAuthenticationProvider which will check a user's security stamp after validateInterval Rejects the identity if the stamp changes, and otherwise will call regenerateIdentity to sign in a new ClaimsIdentity

Method Details

OnValidateIdentity() public static method

Can be used as the ValidateIdentity method for a CookieAuthenticationProvider which will check a user's security stamp after validateInterval Rejects the identity if the stamp changes, and otherwise will call regenerateIdentity to sign in a new ClaimsIdentity
public static OnValidateIdentity ( System.TimeSpan validateInterval, Func regenerateIdentity ) : Task>.Func
validateInterval System.TimeSpan
regenerateIdentity Func
return Task>.Func

OnValidateIdentity() public static method

Can be used as the ValidateIdentity method for a CookieAuthenticationProvider which will check a user's security stamp after validateInterval Rejects the identity if the stamp changes, and otherwise will call regenerateIdentity to sign in a new ClaimsIdentity
public static OnValidateIdentity ( System.TimeSpan validateInterval, Func regenerateIdentityCallback, long>.Func getUserIdCallback ) : Task>.Func
validateInterval System.TimeSpan
regenerateIdentityCallback Func
getUserIdCallback long>.Func
return Task>.Func