{"id":20307427,"url":"https://github.com/oktadev/okta-angular-standalone-runtime-config-example","last_synced_at":"2026-01-31T12:34:10.220Z","repository":{"id":224974478,"uuid":"762397446","full_name":"oktadev/okta-angular-standalone-runtime-config-example","owner":"oktadev","description":"Use Okta Angular SDK for runtime configuration loading in standalone Angular applications","archived":false,"fork":false,"pushed_at":"2024-10-29T16:24:55.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-17T18:49:57.785Z","etag":null,"topics":["angular","okta-angular","runtime-config","standalone-components"],"latest_commit_sha":null,"homepage":"","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}},"created_at":"2024-02-23T17:37:57.000Z","updated_at":"2024-10-29T16:24:59.000Z","dependencies_parsed_at":"2024-02-28T17:44:12.919Z","dependency_job_id":"e7276272-74ba-4e09-8d64-304fe41e9b39","html_url":"https://github.com/oktadev/okta-angular-standalone-runtime-config-example","commit_stats":null,"previous_names":["oktadev/okta-angular-standalone-runtime-config-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-angular-standalone-runtime-config-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-standalone-runtime-config-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-standalone-runtime-config-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-standalone-runtime-config-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-standalone-runtime-config-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-angular-standalone-runtime-config-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-standalone-runtime-config-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28943200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T12:10:04.904Z","status":"ssl_error","status_checked_at":"2026-01-31T12:09:58.894Z","response_time":128,"last_error":"SSL_read: 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","okta-angular","runtime-config","standalone-components"],"created_at":"2024-11-14T17:17:42.176Z","updated_at":"2026-01-31T12:34:10.204Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Standalone Runtime Configuration Example\n\nThis repository contains a working example of adding Okta Angular SDK to a standalone Angular project and how to load the Okta authentication configuration at runtime. Please read [Flexible Authentication Configurations in Angular Applications Using Okta][blog] for a detailed guide through.\n\n**Prerequisites**\n\n* Node 18 or greater\n* Okta CLI\n* Angular CLI\n* Your favorite IDE\n* A web browser with good debugging capabilities\n* Terminal window\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 run this example, run the following commands:\n\n```bash\ngit clone https://github.com/oktadev/okta-angular-standalone-runtime-config-example.git\ncd okta-angular-standalone-runtime-config-example\nnpm ci\n```\n\n### Create an OIDC Application in Okta\n\nCreate a free developer account with the following command using the [Okta CLI](https://cli.okta.com):\n\n```shell\nokta register\n```\n\nIf you already have a developer account, use `okta login` to integrate it with the Okta CLI.\n\nProvide the required information. Once you register, create a client application in Okta with the following command:\n\n```shell\nokta apps create\n```\n\nYou will be prompted to select the following options:\n- Type of Application: **2: SPA**\n- Redirect URI: `http://localhost:4200/login/callback`\n- Logout Redirect URI: `http://localhost:4200`\n\nThe application configuration will be printed to your screen:\n\n```shell\nOkta application configuration:\nIssuer:    https://\u003cOKTA_DOMAIN\u003e.okta.com/oauth2/default\nClient ID: \u003cCLIENT_ID\u003e\n```\n\nUpdate `src/api/config.json` with your Okta settings.\n\n```json\n{\n    \"issuer\": \"https://{yourOktaDomain}/oauth2/default\",\n    \"clientId\": \"{yourClientId}\"\n}\n```\n\nStart the app by running\n\n```shell\nnpm start\n```\n\n## Run Tests\n\nProjects are incomplete without unit tests. Run the unit tests in this project by using the following command line operation\n\n```shell\nnpm run test\n```\n\nOpen up `*.spec.ts` files to see examples of how to mock Okta libraries for isolated unit testing.\n\n## Links\n\nThis example uses the following open source libraries from Okta:\n\n* [Okta Auth JavaScript SDK](https://github.com/okta/okta-auth-js)\n* [Okta Angular SDK](https://github.com/okta/okta-angular)\n* [Okta CLI](https://github.com/okta/okta-cli)\n\n## Help\n\nPlease post any questions as comments on the [blog post][blog], or visit our [Okta Developer Forums](https://devforum.okta.com/).\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n\n[blog]: https://developer.okta.com/blog/2024/02/28/okta-authentication-angular\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-angular-standalone-runtime-config-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-angular-standalone-runtime-config-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-angular-standalone-runtime-config-example/lists"}