Sample 2: Methods for authenticating with the BlackBerry Web Services
The following section examines the AuthenticationSample.cs application available at https://github.com/blackberry/BWS-Samples. This application demonstrates the different methods for authenticating with the BlackBerry Administration Service and initializing the web services.
Before an application can make calls to the BlackBerry Web Services, the application must initialize the BWS and BWSUtil web services. First, the application must use the login information of an administrator account to authenticate with the BlackBerry Administration Service and authorize its use of the web services. When authentication completes, the initialization process starts. When the BWS and BWSUtil web services are initialized, they accept subsequent API calls from the application.
- BlackBerry Administration Service authentication
- Microsoft Active Directory authentication
- Single sign-on authentication (uses Microsoft Active Directory authentication)
Administrators select the authentication method when they create new administrator accounts. Single sign-on authentication requires an administrator to complete additional configuration steps. For more information about creating an administrator account, the different authentication types, and configuring single sign-on authentication, visit www.blackberry.com/go/serverdocs to read the BlackBerry Device Service Advanced Administration Guide.
Was this information helpful? Send us your comments.