Register the SDKs as an OAuth 2.0 application
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:
-
Log in to your Identity Cloud tenant.
-
In the left panel, click Applications.
-
Click Custom Application.
-
Select OIDC - OpenId Connect as the sign-in method, and then click Next.
-
Select Native / SPA as the application type, and then click Next.
-
In Name, enter a name for the application, such as
Public SDK Client
. -
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. -
In Client ID, enter
sdkPublicClient
, and then click Create Application.Identity Cloud creates the application and displays the details screen.
-
On the Sign On tab:
-
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. -
In Grant Types, enter the following values:
Authorization Code Refresh Token
-
In Scopes, enter the following values:
openid profile email address phone
-
-
Click Show advanced settings, and on the Authentication tab:
-
In Token Endpoint Authentication Method, select
none
. -
In Client Type, select
Public
. -
Enable the Implied Consent property.
-
-
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.