Skip to content

oktadev/okta-oidc-android-example

 
 

Repository files navigation

Android Example with OAuth 2.0 + OpenID Connect + Biometrics

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

Instructions

You can create a freeOkta developer account at https://developer.okta.com/.

  1. After login, from the Admin dashboard, navigate to ApplicationsAdd Application
  2. Choose Native as the platform
  3. 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)
  1. Click Finish to redirect back to the General Settings of your application
  2. Copy the Client ID, as it will be needed for the client configuration
  3. Get your Org URL form the top-right of the Admin dashboard. For example, https://dev-1234.okta.com/
  4. Update the values in app/build.gradle to fit those you obtained in previous steps
  5. Update the appAuthRedirectScheme manifestPlaceholder in app/build.gradle with yours

Screenshots

About

Example usage of Okta OIDC SDK Oauth 2.0 and OpenID Connect, plus Biometric log in

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%