{"id":19417250,"url":"https://github.com/gitliveapp/appauth-kotlin","last_synced_at":"2025-08-25T19:03:13.767Z","repository":{"id":242703444,"uuid":"568746454","full_name":"GitLiveApp/AppAuth-Kotlin","owner":"GitLiveApp","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-13T16:50:53.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T03:31:48.010Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/GitLiveApp.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":"2022-11-21T10:21:54.000Z","updated_at":"2024-06-19T19:39:32.000Z","dependencies_parsed_at":"2024-06-04T15:21:59.725Z","dependency_job_id":null,"html_url":"https://github.com/GitLiveApp/AppAuth-Kotlin","commit_stats":null,"previous_names":["gitliveapp/appauth-kotlin"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/GitLiveApp/AppAuth-Kotlin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitLiveApp%2FAppAuth-Kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitLiveApp%2FAppAuth-Kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitLiveApp%2FAppAuth-Kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitLiveApp%2FAppAuth-Kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitLiveApp","download_url":"https://codeload.github.com/GitLiveApp/AppAuth-Kotlin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitLiveApp%2FAppAuth-Kotlin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272116855,"owners_count":24876268,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T13:08:21.002Z","updated_at":"2025-08-25T19:03:13.745Z","avatar_url":"https://github.com/GitLiveApp.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppAuth-Kotlin\n\n\u003ch1 align=\"left\"\u003eAppAuth-Kotlin\u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/gitliveapp/AppAuth-Kotlin?style=flat-square\"\u003e \u003ca href=\"https://git.live\"\u003e\u003cimg src=\"https://img.shields.io/badge/collaborate-on%20gitlive-blueviolet?style=flat-square\"\u003e\u003c/a\u003e\u003c/h1\u003e\n\u003cimg align=\"left\" width=\"75px\" src=\"https://avatars2.githubusercontent.com/u/42865805?s=200\u0026v=4\"\u003e \n  \u003cb\u003eBuilt and maintained with 🧡 by \u003ca href=\"https://git.live\"\u003eGitLive\u003c/a\u003e\u003c/b\u003e\u003cbr/\u003e\n  \u003ci\u003eReal-time code collaboration inside any IDE\u003c/i\u003e\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\nThe AppAuth-Kotlin SDK is a Kotlin-first SDK for AppAuth. It's API is similar to the \u003ca href=\"https://github.com/openid/AppAuth-Android\"\u003eOpen ID AppAuth Android\u003c/a\u003e but also supports multiplatform projects, enabling you to use AppAuth directly from your common source targeting \u003cstrong\u003eiOS\u003c/strong\u003e, \u003cstrong\u003eAndroid\u003c/strong\u003e or \u003cstrong\u003eJS\u003c/strong\u003e.\n\n## Installation\n\nTo install simply add to your common sourceset in the build gradle\n\n```kotlin\n    implementation(\"dev.gitlive:appauth-kotlin:0.0.1\")\n```\n\nPerform a gradle refresh and you should then be able to import the app auth files.\n\n## Useage\n\n```kotlin\nval config = AuthorizationServiceConfiguration(\n    authorizationEndpoint = \"https://endpoint/oauth/authorize\",\n    tokenEndpoint = \"https://endpoint/oauth/token\",\n    endSessionEndpoint = \"https://endpoint/oauth/logout\"\n)\nval request = AuthorizationRequest(\n    config,\n    \"CLIENT_ID\",\n    listOf(\"openid\", \"profile\", \"member\"),\n    \"code\",\n    \"callback://oauth/callback\"\n)\ntry {\n    val response = authorizationService.performAuthorizationRequest(request)\n    tokenRequest.emit(response.createTokenExchangeRequest())\n} catch (exception: AuthorizationException) {\n    println(\"User attempted to cancel login\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitliveapp%2Fappauth-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitliveapp%2Fappauth-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitliveapp%2Fappauth-kotlin/lists"}