ForgeRock Developer Experience

Register the SDKs as an OAuth 2.0 application

Applies to:

  • ForgeRock SDK for Android

  • ForgeRock SDK for iOS

  • ForgeRock SDK for JavaScript

The OAuth 2.0 client profile defines how an application connects to Identity Cloud to obtain OAuth 2.0 tokens.

To allow the SDKs to connect to Identity Cloud and obtain OAuth 2.0 tokens, you must register an OAuth 2.0 client application.

This client application defines how the SDKs will connect and obtain tokens.

To register the SDKs as an OAuth 2.0 application in Identity Cloud, follow these steps:

  1. Log in to your Identity Cloud tenant.

  2. In the left panel, click Applications.

  3. Click Custom Application.

  4. Select OIDC - OpenId Connect as the sign-in method, and then click Next.

  5. Select Native / SPA as the application type, and then click Next.

  6. In Name, enter a name for the application, such as Public SDK Client.

  7. In Owners, select a user that is responsible for maintaining the application, and then click Next.

    When trying out the SDKs, you could select the demo user you created previously.
  8. In Client ID, enter sdkPublicClient, and then click Create Application.

    Identity Cloud creates the application and displays the details screen.

  9. On the Sign On tab:

    1. In Sign-In URLs, enter the following values:

      https://sdkapp.example.com:8443/callback
      https://react.example.com:8443/callback
      https://angular.example.com:8443
      https://com.example.reactnative.todo/callback
      https://com.example.flutter.todo/callback
      Also add any other domains where you will be hosting SDK applications.
    2. In Grant Types, enter the following values:

      Authorization Code
      Refresh Token
    3. In Scopes, enter the following values:

      openid
      profile
      email
      address
      phone
  10. Click Show advanced settings, and on the Authentication tab:

    1. In Token Endpoint Authentication Method, select none.

    2. In Client Type, select Public.

    3. Enable the Implied Consent property.

  11. Click Save.

The application is now configured to accept client connections from and issue OAuth 2.0 tokens to the example applications and tutorials covered by this documentation.

Copyright © 2010-2023 ForgeRock, all rights reserved.