This sample Android application obtains an access token from Cloudentity platform using Authorization Code grant and PKCE.
A more detailed explanation is available at App Dev Tutorials
- Clone the repository
- Add the following to Config.kt
- AUTHORIZE_ENDPOINT - authorize endpoint for your Cloudentity client application
- TOKEN_ENDPOINT - token endpoint for your Cloudentity client application
- CLIENT_ID - client ID for your Cloudentity client application
- REDIRECT_URI - "oauth://simple-pkce.example.com" // if edited, update your Cloudentity client application redirect_uri
- Run the application in AndroidStudio(or your preferred IDE)
Relevant Links