C# 클래스 WindowsAzure.Acs.Oauth2.ResourceServer.AcsAuthenticationModule

상속: IHttpModule
파일 보기 프로젝트 열기: maartenba/WindowsAzure.Acs.Oauth2

공개 메소드들

메소드 설명
AddAuthenticationStep ( IAuthenticationStep step ) : void
Dispose ( ) : void
GetTokenFromAuthorizationHeader ( HttpRequest request ) : string

Gets the access token from the Authorization header of the incoming request.

GetTokenFromQueryString ( HttpRequest request ) : string

Gets the access token from the querystring of the incoming request.

Init ( System.Web.HttpApplication context ) : void
SetAuthenticationPipeline ( IEnumerable pipeline ) : void

보호된 메소드들

메소드 설명
ReadAndValidateToken ( string accessToken, WindowsAzure.Acs.Oauth2.ResourceServer.ResourceAccessErrorResponse &error ) : bool

This method parses the incoming token and validates it.

TryReadAccessToken ( HttpRequest request, string &accessToken ) : bool

This method looks for the access token in the incoming request.

비공개 메소드들

메소드 설명
AuthenticateRequest ( object sender, EventArgs e ) : void

메소드 상세

AddAuthenticationStep() 공개 메소드

public AddAuthenticationStep ( IAuthenticationStep step ) : void
step IAuthenticationStep
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetTokenFromAuthorizationHeader() 공개 메소드

Gets the access token from the Authorization header of the incoming request.
public GetTokenFromAuthorizationHeader ( HttpRequest request ) : string
request System.Web.HttpRequest The Http request message.
리턴 string

GetTokenFromQueryString() 공개 메소드

Gets the access token from the querystring of the incoming request.
public GetTokenFromQueryString ( HttpRequest request ) : string
request System.Web.HttpRequest The Http request message.
리턴 string

Init() 공개 메소드

public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
리턴 void

ReadAndValidateToken() 보호된 메소드

This method parses the incoming token and validates it.
protected ReadAndValidateToken ( string accessToken, WindowsAzure.Acs.Oauth2.ResourceServer.ResourceAccessErrorResponse &error ) : bool
accessToken string The incoming access token.
error WindowsAzure.Acs.Oauth2.ResourceServer.ResourceAccessErrorResponse This out paramter is set if any error occurs.
리턴 bool

SetAuthenticationPipeline() 공개 메소드

public SetAuthenticationPipeline ( IEnumerable pipeline ) : void
pipeline IEnumerable
리턴 void

TryReadAccessToken() 보호된 메소드

This method looks for the access token in the incoming request.
protected TryReadAccessToken ( HttpRequest request, string &accessToken ) : bool
request System.Web.HttpRequest The incoming request message.
accessToken string This out parameter contains the access token if found.
리턴 bool