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

Наследование: IHttpModule
Показать файл Открыть проект

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

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