The following tables list the members exposed by IdentityManager.
Name | Description | |
---|---|---|
ChallengeMethod | Gets or sets the method that will challenge the user in order to get a valid credential object. To activate the IdentityManager, you have to set a challenge method. To deactivate the IdentityManager, you have to set a null challenge method (in this case, the stack of waiting credentials is reset). | |
ChallengeMethodEx | Gets or sets the method that will challenge the user in order to get a valid credential object. To activate the IdentityManager, you have to provide a challenge method by setting either ChallengeMethod or ChallengeMethodEx. To deactivate the IdentityManager, you have to set a null challenge method (in this case, the stack of waiting credentials is reset). | |
Credentials | Gets the credentials registered by the identity manager. | |
Current | Gets the single IdentityManager instance. This is the only way to get an IdentifyManager instance. | |
DefaultReferer | Gets or sets the default referer used by default for all requests going through the IdentityManager. | |
Enabled | Gets or set a value indicating whether the IdentityManager is enabled. | |
ServerInfos | Gets the registered servers. | |
TokenGenerationReferer | Gets or sets the default referer used to generate tokens. | |
TokenValidity | Gets or sets the default suggested lifetime of the token in minutes. This default value can be overridden for a specific credential by setting IdentityManager.GenerateTokenOptions.TokenValidity. |
Name | Description | |
---|---|---|
AddCredential | Adds a new IdentityManager.Credential the IdentityManager will use for accessing the resources. | |
FindCredential | Overloaded. Returns the token credential for the resource identified by the specified url. Optionally you can provide an user name to find credentials for a specific user. | |
FindServerInfo | Returns information about the server that is hosting the specified url. | |
GenerateCredentialAsync | Overloaded. Generates a token credential object asynchronously. You need to provide the service URL, the username and the password. This is a helper method typically called by the UI challenging the user. | |
GenerateCredentialTaskAsync | Overloaded. Generates a token credential object asynchronously using a task object. You need to provide the service URL, the username and the password. This is a helper method typically called by the UI challenging the user. | |
GetCredentialAsync | Overloaded. Returns a Credential object that can be used to access the secured resource identified by the input url. If required the user will be challenged for a username and password which is used to generate a token. The IdentityManager sets up a timer to update the Credential object with a new token prior to the expiration time. This method is typically called internally when a request fails due to an "invalid credentials" error. | |
GetCredentialTaskAsync | Overloaded. Returns a Credential object that can be used to access the secured resource identified by the input url. If required the user will be challenged for a username and password which is used to generate a token. The IdentityManager sets up a timer to update the Credential object with a new token prior to the expiration time. This method is typically called internally when a request fails due to an "invalid credentials" error. | |
RegisterServers | Register secure servers and the token endpoints. The Identity Manager makes its best guess to determine the location of the secure server and token endpoint so in most cases calling registerServers is not necessary. However if the location of your server or token endpoint is non-standard use this method to register the location. Additionaly if portal uses the OAuth authentication, it neeeds to be registered by this method. | |
RemoveCredential | Removes an existing credential so the challenge method will be called the next time an access to the resources is needed. |