C# Class WindowsAzure.Acs.Oauth2.ResourceServer.AcsAuthenticationModule

Inheritance: IHttpModule
Afficher le fichier Open project: maartenba/WindowsAzure.Acs.Oauth2

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
AuthenticateRequest ( object sender, EventArgs e ) : void

Method Details

AddAuthenticationStep() public méthode

public AddAuthenticationStep ( IAuthenticationStep step ) : void
step IAuthenticationStep
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetTokenFromAuthorizationHeader() public méthode

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.
Résultat string

GetTokenFromQueryString() public méthode

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

Init() public méthode

public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication
Résultat void

ReadAndValidateToken() protected méthode

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.
Résultat bool

SetAuthenticationPipeline() public méthode

public SetAuthenticationPipeline ( IEnumerable pipeline ) : void
pipeline IEnumerable
Résultat void

TryReadAccessToken() protected méthode

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.
Résultat bool