{"id":20307382,"url":"https://github.com/oktadev/okta-ionic-crypto-pwa-example","last_synced_at":"2026-03-06T16:30:57.411Z","repository":{"id":38816481,"uuid":"117199381","full_name":"oktadev/okta-ionic-crypto-pwa-example","owner":"oktadev","description":"Josh Morony's cryptoPWA with Okta Authentication","archived":false,"fork":false,"pushed_at":"2023-02-27T18:55:32.000Z","size":601,"stargazers_count":7,"open_issues_count":7,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T15:14:46.937Z","etag":null,"topics":["authentication","cryptocurrency","ionic","oidc","okta","pwa"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2018/01/18/cryptocurrency-pwa-secured-by-okta","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":"2018-01-12T06:00:09.000Z","updated_at":"2023-10-06T07:42:34.000Z","dependencies_parsed_at":"2025-04-11T15:11:36.138Z","dependency_job_id":"15ee532d-a103-498b-85d9-24751540c58f","html_url":"https://github.com/oktadev/okta-ionic-crypto-pwa-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-ionic-crypto-pwa-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-crypto-pwa-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-crypto-pwa-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-crypto-pwa-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-crypto-pwa-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-ionic-crypto-pwa-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-ionic-crypto-pwa-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30185420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"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":["authentication","cryptocurrency","ionic","oidc","okta","pwa"],"created_at":"2024-11-14T17:17:31.114Z","updated_at":"2026-03-06T16:30:57.394Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cryptocurrency PWA with Okta Authentication\n\nThis example shows to create an cryptocurrency application in Ionic that uses Okta for authentication. The cryptoPWA app used in this example was originally by [Josh Morony](https://twitter.com/joshuamorony) in [Building a Cryptocurrency Price Tracker PWA in Ionic](https://www.joshmorony.com/building-a-cryptocurrency-price-tracker-pwa-in-ionic/). You can see it online at \u003chttps://cryptopwa.com\u003e.\n\nPlease read [Protect your Cryptocurrency Wealth Tracking PWA with Okta](https://developer.okta.com/blog/2018/01/18/cryptocurrency-pwa-secured-by-okta) 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-crypto-pwa-example.git\ncd okta-ionic-crypto-pwa\n```\n\nThis will get a copy of the project installed locally. Then run the following command to install Ionic.\n\n```\nnpm install -g 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. \"Crypto PWA\")\n* Change the **Base URI**, **Login redirect URI**, and **Logout 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 oauthService: OAuthService, private app: App) {\n  if (this.oauthService.hasValidIdToken()) {\n    this.app.getRootNavs()[0].setRoot('HomePage');\n  }\n\n  oauthService.redirectUri = window.location.origin;\n  oauthService.clientId = '{clientId}';\n  oauthService.scope = 'openid profile email';\n  oauthService.issuer = 'https://{yourOktaDomain}/oauth2/default';\n  oauthService.tokenValidationHandler = new JwksValidationHandler();\n  oauthService.loadDiscoveryDocumentAndTryLogin();\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 library provided by [Manfred Steyer](https://github.com/manfredsteyer):\n\n* [angular-oauth2-oidc](https://github.com/manfredsteyer/angular-oauth2-oidc)\n\nThis example leverages the following app provided by [Josh Morony](https://github.com/joshuamorony):\n\n* [ionic-crypto-pwa](https://github.com/joshuamorony/ionic-crypto-pwa)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://developer.okta.com/blog/2018/01/18/cryptocurrency-pwa-secured-by-okta), 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-ionic-crypto-pwa-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-ionic-crypto-pwa-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-ionic-crypto-pwa-example/lists"}