C# Class Nancy.Security.NancyContextExtensions

Afficher le fichier Open project: NancyFx/Nancy.MSOwinSecurity

Méthodes publiques

Méthode Description
GetAuthenticationManager ( this context, bool throwOnNull = false ) : IAuthenticationManager

Gets the Microsoft owin authentication manager from the nancy context.

GetMSOwinUser ( this context ) : ClaimsPrincipal

Get the user from the Micrososft owin user from the nancy context.

Method Details

GetAuthenticationManager() public static méthode

Gets the Microsoft owin authentication manager from the nancy context.
public static GetAuthenticationManager ( this context, bool throwOnNull = false ) : IAuthenticationManager
context this The current nancy context.
throwOnNull bool Throws an exception if the owin reqeust environment does not exist. Otherwise null will be returned.
Résultat IAuthenticationManager

GetMSOwinUser() public static méthode

Get the user from the Micrososft owin user from the nancy context.
public static GetMSOwinUser ( this context ) : ClaimsPrincipal
context this The current nancy context.
Résultat System.Security.Claims.ClaimsPrincipal