C# Class ServiceLayer.CustomAspNetIdentity.CustomSecurityStampValidator

Afficher le fichier Open project: rabbal/Mvc5

Méthodes publiques

Méthode 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 méthode

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
Résultat Task>.Func

OnValidateIdentity() public static méthode

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
Résultat Task>.Func