C# 클래스 WindowsAzure.Acs.Oauth2.ApplicationRegistrationService

상속: IApplicationRegistrationService
파일 보기 프로젝트 열기: maartenba/WindowsAzure.Acs.Oauth2 1 사용 예제들

공개 메소드들

메소드 설명
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