To add a redirect scheme for Android, you must define a gradle manifest placeholder in your app's build.gradle
.
In your app's build.gradle
, add the redirect scheme inside the defaultConfig
property. The redirect scheme should match what you used when you modified the config.json file.
For example, if your redirect URI is com.first.sample:/callback
, then the appAuth redirect scheme is com.first.sample
.
Example
Native sign in
To compile your project, you need to set up the AuthenticationClient
with an Org URL
. Your Org URL is in the upper-right corner of your Okta Org dashboard. Do this by adding the following to your local.properties
file:
Example
Note: When you finish, you can build and run the app.