C# Класс Nancy.Security.NancyContextExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetAuthenticationManager() публичный статический Метод

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.
Результат IAuthenticationManager

GetMSOwinUser() публичный статический Метод

Get the user from the Micrososft owin user from the nancy context.
public static GetMSOwinUser ( this context ) : ClaimsPrincipal
context this The current nancy context.
Результат System.Security.Claims.ClaimsPrincipal