C# Класс WindowsAzure.Acs.Oauth2.ResourceServer.OAuth2MessageHandler

Наследование: System.Net.Http.DelegatingHandler
Показать файл Открыть проект

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

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