This repository contains an example showcasing how to use Okta Android SDK implementing:
- OAuth 2.0 + OpenID Connect authentication against Okta
- Kotlin wrapper for
BiometricPrompt
and sample usage
You can create a freeOkta developer account at https://developer.okta.com/.
- After login, from the Admin dashboard, navigate to Applications→Add Application
- Choose Native as the platform
- Populate your new Native OpenID Connect application with values similar to:
Setting | Value |
---|---|
Application Name | Native OpenId Connect App (must be unique) |
Login URI | com.okta.oidc.example:/callback |
End Session URI | com.okta.oidc.example:/logout |
Allowed grant types | Authorization Code, Refresh Token (recommended) |
- Click Finish to redirect back to the General Settings of your application
- Copy the Client ID, as it will be needed for the client configuration
- Get your Org URL form the top-right of the Admin dashboard. For example, https://dev-1234.okta.com/
- Update the values in
app/build.gradle
to fit those you obtained in previous steps - Update the
appAuthRedirectScheme
manifestPlaceholder inapp/build.gradle
with yours