{"id":20307430,"url":"https://github.com/oktadev/okta-angular-webpack-example","last_synced_at":"2025-10-07T00:35:59.401Z","repository":{"id":103824041,"uuid":"226416266","full_name":"oktadev/okta-angular-webpack-example","owner":"oktadev","description":"Angular Webpack Example","archived":false,"fork":false,"pushed_at":"2021-04-02T00:23:46.000Z","size":468,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T19:19:24.120Z","etag":null,"topics":["angular","webpack"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2019/12/09/angular-webpack","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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":"2019-12-06T21:42:51.000Z","updated_at":"2021-04-02T00:23:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c1ab48a-55bb-40c3-acca-159aebbcee28","html_url":"https://github.com/oktadev/okta-angular-webpack-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-angular-webpack-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-webpack-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-webpack-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-webpack-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-webpack-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-angular-webpack-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-angular-webpack-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278703579,"owners_count":26031204,"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-10-06T02:00:05.630Z","response_time":65,"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":["angular","webpack"],"created_at":"2024-11-14T17:17:42.533Z","updated_at":"2025-10-07T00:35:59.397Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","readme":"# Angular Webpack Example\n\nThis example shows how to extend webpack in an Angular build.\n\nPlease read [How to Customize Your Angular Build With Webpack](https://developer.okta.com/blog/2019/12/09/angular-webpack) to see how this app was created.\n\n**Prerequisites:** [Node.js](https://nodejs.org/) v12+.\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-angular-webpack-example.git\ncd okta-angular-webpack-example\n```\n\nThis will get a copy of the project installed locally. To install all of its dependencies and start each app, follow the instructions below.\n\nRun the app using:\n\n```bash\nnpm install\nnpm start\n```\n\n### Create a New OIDC App in Okta\n\nBefore you begin, you’ll need a free Okta developer account. Install the [Okta CLI](https://cli.okta.com) and run `okta register` to sign up for a new account. If you already have an account, run `okta login`.\n\nThen, run `okta apps create`. Select the default app name, or change it as you see fit. Choose **Single-Page App** and press **Enter**.\n\nChange the Redirect URI to `http://localhost:4200/callback` and accept the default Logout Redirect URI of `http://localhost:4200`.\n\nThe Okta CLI will create an OIDC Single-Page App in your Okta Org. It will add the redirect URIs you specified and grant access to the Everyone group. It will also add a trusted origin for `http://localhost:4200`. You will see output like the following when it’s finished:\n\n```\nOkta application configuration:\nIssuer:    https://dev-133337.okta.com/oauth2/default\nClient ID: 0oab8eb55Kb9jdMIr5d6\n```\n\nNOTE: You can also use the Okta Admin Console to create your app. See [Create an Angular App](https://developer.okta.com/docs/guides/sign-into-spa/angular/create-okta-application/) for more information.\n\nCopy your `issuer` and `clientId` in to `src/app/app.module.ts`.\n\n**NOTE:** The value of `{yourOktaDomain}` should be something like `dev-123456.okta.com`. Make sure you don't include `-admin` in the value!\n\n```ts\nconst oktaConfig = {\n  issuer: 'https://{yourOktaDomain}/oauth2/default',\n  clientId: '{clientId}',\n  redirectUri: window.location.origin + '/callback'\n};\n```\n\n## Links\n\nThis example uses the following open source libraries from Okta:\n\n* [Okta Angular SDK](https://github.com/okta/okta-oidc-js/tree/master/packages/okta-angular)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://developer.okta.com/blog/2019/12/09/angular-webpack), or visit our [Okta Developer Forums](https://devforum.okta.com/).\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-angular-webpack-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-angular-webpack-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-angular-webpack-example/lists"}