GDUtility Class |
Namespace: GD
public sealed class GDUtility
The GDUtility type exposes the following members.
Name | Description | |
---|---|---|
AuthTokenResultCallback | Delegate to handle callbacks. |
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetGDAuthToken |
Call this method to request a new BlackBerry Dynamics Auth token. Pass the challenge string and server name as parameters.
| |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
BLACKBERRY DYNAMICS AUTHENTICATION TOKEN MECHANISM
The BlackBerry Dynamics Authentication Token mechanism enables applications to utilize the user identification that takes place during BlackBerry Dynamics authorization processing. This allows the user to be authenticated without the need for entry of any additional credentials at the device. This class includes the specific API for requesting tokens.
The BlackBerry Dynamics platform includes rigorous authentication of the end user. This is used when, for example, identifying whether the user is entitled to run the current application, and when applying security policies.
The BlackBerry Dynamics Authentication Token mechanism enables applications to take advantage of the authentication processes of the BlackBerry Dynamics platform.
BlackBerry Dynamics Auth tokens can be requested by the BlackBerry Dynamics application on the device. A token will only be issued if authorization processing has completed, and the end user's identity has been authenticated.
Once a token has been issued, the application on the device can send the token to the application server at the back end. The BlackBerry Dynamics Auth token can then be checked by the application server, using a verification service provided by the BlackBerry Dynamics infrastructure.
The same token could be sent again later, and verified again. Calling the verification service does not cause the token to be consumed.
Note that the application can obtain the user ID of the end user from the GDAppConfigKeyUserId value in the collection returned by the GDWindows::GetApplicationConfig method.
CHALLENGE STRINGS
A challenge string can be passed as a parameter to the BlackBerry Dynamics Auth token request by the application. The same challenge string will then be provided to the application server, in the response from the verification service.
The challenge string could have a number of uses for application developers. A typical usage could be to tie an instance of authentication to a previous access request, as follows:
The verification service provides the challenge string to the application server in an HTTP header, which limits the character set that can be utilized safely. All letters and numerals that lie in the ASCII range 32 to 126 can be utilized safely. Use of other characters is not supported.