{"id":22268193,"url":"https://github.com/curityio/openid-client-ios-appauth","last_synced_at":"2025-07-28T12:31:04.828Z","repository":{"id":46225812,"uuid":"379646646","full_name":"curityio/openid-client-ios-appauth","owner":"curityio","description":"OpenID Connect iOS integration in a SwiftUI App using the AppAuth pattern","archived":false,"fork":false,"pushed_at":"2023-03-10T10:03:11.000Z","size":268,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2023-08-05T07:50:58.315Z","etag":null,"topics":["appauth","code-example","ios","mobile","oauth2","openid-connect"],"latest_commit_sha":null,"homepage":"https://curity.io/resources/learn/swift-ios-appauth/","language":"Swift","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":"2021-06-23T15:19:28.000Z","updated_at":"2023-04-26T10:29:05.000Z","dependencies_parsed_at":"2022-09-07T18:00:26.862Z","dependency_job_id":null,"html_url":"https://github.com/curityio/openid-client-ios-appauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-ios-appauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-ios-appauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-ios-appauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fopenid-client-ios-appauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/openid-client-ios-appauth/tar.gz/refs/heads/main","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":["appauth","code-example","ios","mobile","oauth2","openid-connect"],"created_at":"2024-12-03T11:11:51.639Z","updated_at":"2024-12-03T11:11:52.334Z","avatar_url":"https://github.com/curityio.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Curity iOS 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/swift-ios-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 Xcode\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/ios-unauthenticated-view.png)\n\nOnce authenticated the `Authenticated View` show how to work with tokens and sign out:\n\n![Authenticated View](images/ios-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-ios-appauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fopenid-client-ios-appauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fopenid-client-ios-appauth/lists"}