C# Class WindowsAzure.Acs.Oauth2.AuthorizationServerBase

Inheritance: Controller
Datei anzeigen Open project: maartenba/WindowsAzure.Acs.Oauth2

Public Methods

Method Description
ParseIncomingRequest ( System.Web.HttpContextBase httpContext ) : OAuthMessage

This method parses the incoming request and creates an OAuth message from it.

StoreIncomingRequest ( System.Web.HttpContextBase httpContext ) : OAuthMessage

Stores the incoming request.

Protected Methods

Method Description
AuthorizationServerBase ( ) : System.Configuration

Initializes a new instance of the AuthorizationServerBase class. The parameters are read from the application configuration's appSettings keys 'WindowsAzure.OAuth.ServiceNamespace', 'WindowsAzure.OAuth.ServiceNamespaceManagementUserName', 'WindowsAzure.OAuth.ServiceNamespaceManagementUserKey' and 'WindowsAzure.OAuth.RelyingPartyName'.

AuthorizationServerBase ( IApplicationRegistrationService applicationRegistrationService ) : System.Configuration

Initializes a new instance of the AuthorizationServerBase class. The relying party name is read from the application configuration's appSettings key 'WindowsAzure.OAuth.RelyingPartyName'.

AuthorizationServerBase ( string relyingPartyName, IApplicationRegistrationService applicationRegistrationService ) : System.Configuration

Initializes a new instance of the AuthorizationServerBase class.

BuildModel ( OAuthMessage message ) : AuthorizationServerViewModel

Builds the model. Override this to add information about the application requesting user consent, such as publisher information or a logo URL.

GetDelegatedIdentity ( ) : AuthorizationServerIdentity

Gets the delegated identity. Override this if you require specifying the IdentityProvider for the delegated identity.

Method Details

AuthorizationServerBase() protected method

Initializes a new instance of the AuthorizationServerBase class. The parameters are read from the application configuration's appSettings keys 'WindowsAzure.OAuth.ServiceNamespace', 'WindowsAzure.OAuth.ServiceNamespaceManagementUserName', 'WindowsAzure.OAuth.ServiceNamespaceManagementUserKey' and 'WindowsAzure.OAuth.RelyingPartyName'.
protected AuthorizationServerBase ( ) : System.Configuration
return System.Configuration

AuthorizationServerBase() protected method

Initializes a new instance of the AuthorizationServerBase class. The relying party name is read from the application configuration's appSettings key 'WindowsAzure.OAuth.RelyingPartyName'.
protected AuthorizationServerBase ( IApplicationRegistrationService applicationRegistrationService ) : System.Configuration
applicationRegistrationService IApplicationRegistrationService The application registration service.
return System.Configuration

AuthorizationServerBase() protected method

Initializes a new instance of the AuthorizationServerBase class.
protected AuthorizationServerBase ( string relyingPartyName, IApplicationRegistrationService applicationRegistrationService ) : System.Configuration
relyingPartyName string The relying party name.
applicationRegistrationService IApplicationRegistrationService
return System.Configuration

BuildModel() protected method

Builds the model. Override this to add information about the application requesting user consent, such as publisher information or a logo URL.
protected BuildModel ( OAuthMessage message ) : AuthorizationServerViewModel
message OAuthMessage The message.
return AuthorizationServerViewModel

GetDelegatedIdentity() protected abstract method

Gets the delegated identity. Override this if you require specifying the IdentityProvider for the delegated identity.
protected abstract GetDelegatedIdentity ( ) : AuthorizationServerIdentity
return AuthorizationServerIdentity

ParseIncomingRequest() public method

This method parses the incoming request and creates an OAuth message from it.
public ParseIncomingRequest ( System.Web.HttpContextBase httpContext ) : OAuthMessage
httpContext System.Web.HttpContextBase The current HttpContext.
return OAuthMessage

StoreIncomingRequest() public method

Stores the incoming request.
public StoreIncomingRequest ( System.Web.HttpContextBase httpContext ) : OAuthMessage
httpContext System.Web.HttpContextBase The HTTP context.
return OAuthMessage