C# 클래스 Nancy.Security.NancyContextExtensions

파일 보기 프로젝트 열기: NancyFx/Nancy.MSOwinSecurity

공개 메소드들

메소드 설명
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