{"id":20307387,"url":"https://github.com/oktadev/okta-ionic-auth-example","last_synced_at":"2026-02-27T01:32:29.603Z","repository":{"id":38816766,"uuid":"93659587","full_name":"oktadev/okta-ionic-auth-example","owner":"oktadev","description":"Example showing Ionic Authentication with Okta","archived":false,"fork":false,"pushed_at":"2023-02-27T18:29:20.000Z","size":3496,"stargazers_count":23,"open_issues_count":4,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-13T18:49:01.677Z","etag":null,"topics":["angular","authentication","ionic","oidc","okta"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2017/08/22/build-an-ionic-app-with-user-authentication","language":"TypeScript","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/oktadev.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,"zenodo":null}},"created_at":"2017-06-07T17:04:02.000Z","updated_at":"2021-04-28T20:04:19.000Z","dependencies_parsed_at":"2025-04-11T15:11:52.833Z","dependency_job_id":"2709e8c5-5667-47c3-8037-c6089cd1dc48","html_url":"https://github.com/oktadev/okta-ionic-auth-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-ionic-auth-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-auth-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-auth-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-auth-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-auth-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-ionic-auth-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-auth-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29880759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["angular","authentication","ionic","oidc","okta"],"created_at":"2024-11-14T17:17:32.091Z","updated_at":"2026-02-27T01:32:29.581Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","readme":"# Ionic App with Okta Authentication\n\n## This is an old example. Please see [Ionic + Sign in with Apple and Google](https://developer.okta.com/blog/2020/09/21/ionic-apple-google-signin) for an updated version.\n\nThis example shows how to create an Ionic application that uses Cordova's in-app browser to log in with Okta.\n\nPlease read [Build an Ionic App with User Authentication](https://developer.okta.com/blog/2017/08/22/build-an-ionic-app-with-user-authentication) to see how this application was created.\n\n**Prerequisites:** [Node.js](https://nodejs.org/).\n\n\u003e [Okta](https://developer.okta.com/) has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage, and secure users and roles in any application.\n\n* [Getting Started](#getting-started)\n* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-ionic-auth-example.git\ncd okta-ionic-auth-example\n```\n\nThis will get a copy of the project installed locally. Then run the following command to install Ionic and Cordova.\n\n```\nnpm install -g cordova ionic\n```\n\nThen run the application:\n\n```\nnpm install\nionic serve\n```\n\nTo integrate Okta's Identity Platform for user authentication, you'll first need to:\n\n* [Register](https://www.okta.com/developer/signup/) and create an OIDC application\n* Log in to your Okta account and navigate to **Applications \u003e Add Application** \n* Select **SPA** and click **Next**\n* Give your application a name (e.g. \"Ionic OIDC\")\n* Change the **Base URI** and **Login redirect URI** to `http://localhost:8100` and click **Done**. \n\nAfter performing these steps, copy the `clientId` into `src/pages/login/login.ts` and change `{yourOktaDomain}` to match your account's id.\n\n```typescript\nconstructor(private navCtrl: NavController, private oauthService: OAuthService) {\n  oauthService.redirectUri = 'http://localhost:8100';\n  oauthService.clientId = '{clientId}';\n  oauthService.scope = 'openid profile email';\n  oauthService.issuer = 'https://{youtOktaDomain}.com/oauth2/default';\n  oauthService.tokenValidationHandler = new JwksValidationHandler();\n  ...\n}\n```\n\nYour OIDC app should have settings like the following:\n\n\u003cimg src=\"https://developer.okta.com/assets/blog/ionic-authentication/oidc-settings-46747e5e9af164cf56d05f055a659520252558872d9319cadd831d5e7104b990.png\" width=\"700\" alt=\"Okta OIDC Settings\"/\u003e\n\n## Links\n\nThis example uses the following libraries provided by Okta:\n\n* [Okta Auth SDK](https://github.com/okta/okta-auth-js)\n\nIt also uses the following library provided by [Manfred Steyer](https://github.com/manfredsteyer):\n\n* [angular-oauth2-oidc](https://github.com/manfredsteyer/angular-oauth2-oidc)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://developer.okta.com/blog/2017/08/22/build-an-ionic-app-with-user-authentication), or visit our [Okta Developer Forums](https://devforum.okta.com/). You can also email developers@okta.com if would like to create a support ticket.\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-ionic-auth-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-ionic-auth-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-ionic-auth-example/lists"}