{"id":22268200,"url":"https://github.com/curityio/openid-client-android-appauth-dcr","last_synced_at":"2026-05-17T18:06:42.036Z","repository":{"id":74437578,"uuid":"423547220","full_name":"curityio/openid-client-android-appauth-dcr","owner":"curityio","description":"Extended OpenID Connect Android integration in a Kotlin app using the AppAuth pattern and Dynamic Client Registration","archived":false,"fork":false,"pushed_at":"2023-03-10T10:02:37.000Z","size":524,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-14T05:59:39.275Z","etag":null,"topics":["android","appauth","code-example","dynamic-client-registration","mobile","oauth2","openid-connect"],"latest_commit_sha":null,"homepage":"https://curity.io/resources/learn/authenticated-dcr-example/","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-01T17:00:00.000Z","updated_at":"2024-01-20T11:08:09.000Z","dependencies_parsed_at":"2024-12-03T11:12:01.124Z","dependency_job_id":"e4d00426-a890-415e-b3c9-e388bbfe3a21","html_url":"https://github.com/curityio/openid-client-android-appauth-dcr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curityio/openid-client-android-appauth-dcr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth-dcr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth-dcr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth-dcr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth-dcr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/openid-client-android-appauth-dcr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-android-appauth-dcr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33149519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","dynamic-client-registration","mobile","oauth2","openid-connect"],"created_at":"2024-12-03T11:11:53.126Z","updated_at":"2026-05-17T18:06:41.985Z","avatar_url":"https://github.com/curityio.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppAuth with Dynamic Client Registration\n\nAn extended Android AppAuth code example using authenticated Dynamic Client Registration.\\\nThis improves the mobile app's security as described in [Mobile Best Practices](https://curity.io/resources/learn/oauth-for-mobile-apps-best-practices/).\n\n## Tutorial Documentation\n\nThe [Tutorial Walkthrough](https://curity.io/resources/learn/authenticated-dcr-example) 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\nWhen the user first runs the app there is a prompt to authenticate.\\\nThis gets an initial access token with the `dcr` scope.\\\nThis is then used to create a Dynamic Client, which returns a Client ID and Client Secret.\n\n![images](/images/registration-view.png)\n\nThe user must then authenticate again, and this is automatic via Single Sign On.\\\nOn all subsequent authentication requests the user only needs to sign in once:\n\n![images](/images/unauthenticated-view.png)\n\nOnce authenticated, the user is moved to the authenticated view.\\\nThe demo app simply allows other OAuth lifecycle events to be tested.\n\n![images](/images/authenticated-view.png)\n\n## Manage Registration Details\n\nTo view all registered mobile instances, first connect to the Identity Server's SQL database:\n\n```bash\nexport DB_CONTAINER_ID=$(docker container ls | grep curity-data | awk '{print $1}')\ndocker exec -it $DB_CONTAINER_ID bash -c \"export PGPASSWORD=Password1 \u0026\u0026 psql -p 5432 -d idsvr -U postgres\"\n```\n\nThen query the details of the dynamically registered mobile clients:\n\n```bash\nselect * from dynamically_registered_clients;\n```\n\n## More Information\n\nPlease visit [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-dcr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fopenid-client-android-appauth-dcr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fopenid-client-android-appauth-dcr/lists"}