{"id":22268139,"url":"https://github.com/curityio/openid-client-android-appauth","last_synced_at":"2025-07-28T12:31:03.698Z","repository":{"id":46225805,"uuid":"248777766","full_name":"curityio/openid-client-android-appauth","owner":"curityio","description":"An OpenID Connect Android demo app using AppAuth libraries","archived":false,"fork":false,"pushed_at":"2023-03-10T10:02:55.000Z","size":636,"stargazers_count":8,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-03T11:03:51.656Z","etag":null,"topics":["android","appauth","code-example","mobile","oauth2","openid-connect"],"latest_commit_sha":null,"homepage":"https://curity.io/resources/learn/kotlin-android-appauth/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curityio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-20T14:38:09.000Z","updated_at":"2024-03-29T06:11:26.000Z","dependencies_parsed_at":"2022-09-19T00:31:19.811Z","dependency_job_id":null,"html_url":"https://github.com/curityio/openid-client-android-appauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/openid-client-android-appauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227905532,"owners_count":17837906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","appauth","code-example","mobile","oauth2","openid-connect"],"created_at":"2024-12-03T11:11:41.447Z","updated_at":"2024-12-03T11:11:42.736Z","avatar_url":"https://github.com/curityio.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Curity Android AppAuth Code Example\n\n[![Quality](https://img.shields.io/badge/quality-demo-red)](https://curity.io/resources/code-examples/status/)\n[![Availability](https://img.shields.io/badge/availability-source-blue)](https://curity.io/resources/code-examples/status/)\n\nDemonstrates how to implement an OpenID Connect mobile client using AppAuth libraries.\n\n## Tutorial Documentation\n\nThe [Tutorial Walkthrough](https://curity.io/resources/learn/kotlin-android-appauth) explains the complete configuration and behavior.\n\n## Quick Start\n\nThe easiest way to run the code example is via an automated script as explained in the [Mobile Setup Article](https://curity.io/resources/learn/mobile-setup-ngrok):\n\n- Copy a license.json file into the code example root folder\n- Edit the `./start-idsvr.sh` script to use either a local Docker URL on an ngrok internet URL\n- Run the script to deploy a preconfigured Curity Identity Server via Docker\n- Build and run the mobile app from Android Studio\n- Sign in with the preconfigured user account `demouser / Password1`\n- Run `./stop-idsvr.sh` when you want to free Docker resources\n\n## User Experience\n\nThe example mobile app demonstrates OAuth lifecycle events, starting with an `Unauthenticated View`:\n\n![Unauthenticated View](images/android-unauthenticated-view.png)\n\nOnce authenticated the `Authenticated View` show how to work with tokens and sign out:\n\n![Authenticated View](images/android-authenticated-view.png)\n\nThe example app also demonstrates reliable handling of AppAuth errors.\n\n## Security\n\nAppAuth classes are used to perform the following security related operations accordng to [RFC8252](https://datatracker.ietf.org/doc/html/rfc8252):\n\n* Logins and Logouts via a secure ASWebAuthenticationSession window\n* Use of Authorization Code Flow (PKCE)\n\n![Secure Window](images/secure-login-window.png)\n\n## More Information\n\nPlease visit [https://curity.io](https://curity.io) for more information about the Curity Identity Server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fopenid-client-android-appauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fopenid-client-android-appauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fopenid-client-android-appauth/lists"}