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

상속: System.Net.Http.DelegatingHandler
파일 보기 프로젝트 열기: maartenba/WindowsAzure.Acs.Oauth2

공개 메소드들

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

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

OAuth2MessageHandler ( ) : System
OAuth2MessageHandler ( string realm, string issuer, string tokenSigningKey ) : System
SetAuthenticationPipeline ( IEnumerable pipeline ) : void

보호된 메소드들

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

This method parses the incoming token and validates it.

SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
TryReadAccessToken ( HttpRequestMessage request, string &accessToken ) : bool

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

메소드 상세

AddAuthenticationStep() 공개 메소드

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

GetTokenFromAuthorizationHeader() 공개 메소드

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

OAuth2MessageHandler() 공개 메소드

public OAuth2MessageHandler ( ) : System
리턴 System

OAuth2MessageHandler() 공개 메소드

public OAuth2MessageHandler ( string realm, string issuer, string tokenSigningKey ) : System
realm string
issuer string
tokenSigningKey string
리턴 System

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

SendAsync() 보호된 메소드

protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
리턴 Task

SetAuthenticationPipeline() 공개 메소드

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

TryReadAccessToken() 보호된 메소드

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