C# Класс WindowsAzure.Acs.Oauth2.ApplicationRegistrationService

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

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

Метод Описание
ApplicationRegistrationService ( ) : System

Initializes a new instance of the ApplicationRegistrationService 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'.

ApplicationRegistrationService ( string serviceNamespace, string serviceNamespaceManagementUserName, string serviceNamespaceManagementUserKey, string relyingPartyName ) : System

Initializes a new instance of the ApplicationRegistrationService class.

DelegationExists ( string clientId, AuthorizationServerIdentity delegatedIdentity, string scope ) : bool

Verify if a delegation exists.

GetApplication ( string clientId ) : ApplicationRegistration

Gets an application.

GetAuthorizationCode ( string clientId, AuthorizationServerIdentity delegatedIdentity, string scope ) : string

Gets the authorization code.

GetDelegatedApplications ( string nameIdentifier, string identityProvider ) : IEnumerable

Gets the delegated applications.

RegisterApplication ( string clientId, string clientSecret, string redirectUri, string name ) : void

Registers an application.

RemoveApplication ( string clientId ) : void

Removes an application.

RemoveDelegation ( string clientId, string nameIdentifier, string identityProvider ) : void

Removes the delegation.

UpdateApplicationClientSecret ( string clientId, string clientSecret ) : void

Updates an application client secret.

UpdateApplicationRedirectUri ( string clientId, string redirectUri ) : void

Updates an application redirect Uri.

ValidateIncomingRequest ( OAuthMessage message, string &errorCode, string &errorDescription ) : bool

This method validates the incoming request.

ValidateServiceIdentity ( OAuthMessage message, string &errorCode, string &errorDescription ) : bool

Checks if the client_id and the redirect_uri are valid.

Защищенные методы

Метод Описание
CreateManagementServiceClient ( ) : FluentACS.ManagementService.ManagementService

Creates the management service client.

Описание методов

ApplicationRegistrationService() публичный Метод

Initializes a new instance of the ApplicationRegistrationService 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'.
public ApplicationRegistrationService ( ) : System
Результат System

ApplicationRegistrationService() публичный Метод

Initializes a new instance of the ApplicationRegistrationService class.
public ApplicationRegistrationService ( string serviceNamespace, string serviceNamespaceManagementUserName, string serviceNamespaceManagementUserKey, string relyingPartyName ) : System
serviceNamespace string The service namespace.
serviceNamespaceManagementUserName string Name of the service namespace management user.
serviceNamespaceManagementUserKey string The service namespace management user key.
relyingPartyName string The relying party name.
Результат System

CreateManagementServiceClient() защищенный Метод

Creates the management service client.
protected CreateManagementServiceClient ( ) : FluentACS.ManagementService.ManagementService
Результат FluentACS.ManagementService.ManagementService

DelegationExists() публичный Метод

Verify if a delegation exists.
public DelegationExists ( string clientId, AuthorizationServerIdentity delegatedIdentity, string scope ) : bool
clientId string The client id.
delegatedIdentity AuthorizationServerIdentity The delegated identity.
scope string The scope.
Результат bool

GetApplication() публичный Метод

Gets an application.
public GetApplication ( string clientId ) : ApplicationRegistration
clientId string The client id.
Результат ApplicationRegistration

GetAuthorizationCode() публичный Метод

Gets the authorization code.
public GetAuthorizationCode ( string clientId, AuthorizationServerIdentity delegatedIdentity, string scope ) : string
clientId string The client id.
delegatedIdentity AuthorizationServerIdentity The delegated identity.
scope string The scope.
Результат string

GetDelegatedApplications() публичный Метод

Gets the delegated applications.
public GetDelegatedApplications ( string nameIdentifier, string identityProvider ) : IEnumerable
nameIdentifier string The name identifier.
identityProvider string The identity provider.
Результат IEnumerable

RegisterApplication() публичный Метод

Registers an application.
public RegisterApplication ( string clientId, string clientSecret, string redirectUri, string name ) : void
clientId string The client id.
clientSecret string The client secret.
redirectUri string The redirect URI.
name string The name.
Результат void

RemoveApplication() публичный Метод

Removes an application.
public RemoveApplication ( string clientId ) : void
clientId string The client id.
Результат void

RemoveDelegation() публичный Метод

Removes the delegation.
public RemoveDelegation ( string clientId, string nameIdentifier, string identityProvider ) : void
clientId string The client id.
nameIdentifier string The name identifier.
identityProvider string The identity provider.
Результат void

UpdateApplicationClientSecret() публичный Метод

Updates an application client secret.
public UpdateApplicationClientSecret ( string clientId, string clientSecret ) : void
clientId string The client id.
clientSecret string The client secret.
Результат void

UpdateApplicationRedirectUri() публичный Метод

Updates an application redirect Uri.
public UpdateApplicationRedirectUri ( string clientId, string redirectUri ) : void
clientId string The client id.
redirectUri string The redirect URI.
Результат void

ValidateIncomingRequest() публичный Метод

This method validates the incoming request.
public ValidateIncomingRequest ( OAuthMessage message, string &errorCode, string &errorDescription ) : bool
message OAuthMessage The incoming reequest message.
errorCode string The error code.
errorDescription string Description of the error.
Результат bool

ValidateServiceIdentity() публичный Метод

Checks if the client_id and the redirect_uri are valid.
public ValidateServiceIdentity ( OAuthMessage message, string &errorCode, string &errorDescription ) : bool
message OAuthMessage The message which contains the client_id and redirect_uri.
errorCode string The error code.
errorDescription string Description of the error.
Результат bool