{"id":20307272,"url":"https://github.com/oktadev/okta-spring-boot-2-angular-5-example","last_synced_at":"2025-08-29T09:22:21.059Z","repository":{"id":55496766,"uuid":"111330532","full_name":"oktadev/okta-spring-boot-2-angular-5-example","owner":"oktadev","description":"A Cool Cars Example that showcases Spring Boot 2, Angular 5, and Okta's Support for both.","archived":false,"fork":false,"pushed_at":"2018-08-24T18:43:50.000Z","size":257,"stargazers_count":130,"open_issues_count":2,"forks_count":93,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-11T15:14:20.647Z","etag":null,"topics":["angular","angular5","authentication","java","oidc","okta-angular","spring-boot","spring-boot2","typescript"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2017/12/04/basic-crud-angular-and-spring-boot","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}},"created_at":"2017-11-19T20:43:50.000Z","updated_at":"2025-03-04T15:42:32.000Z","dependencies_parsed_at":"2022-08-15T01:50:18.969Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-spring-boot-2-angular-5-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-spring-boot-2-angular-5-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-5-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-5-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-5-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-5-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-spring-boot-2-angular-5-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-2-angular-5-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272659283,"owners_count":24971607,"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-08-29T02:00:10.610Z","response_time":87,"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","angular5","authentication","java","oidc","okta-angular","spring-boot","spring-boot2","typescript"],"created_at":"2024-11-14T17:17:00.138Z","updated_at":"2025-08-29T09:22:21.034Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic CRUD App with Angular 5.0 and Spring Boot 2.0\n \nThis example app shows how to build a basic CRUD app with Spring Boot 2.0, Spring Data, and Angular 5.0.\n\nPlease read [Build a Basic CRUD App with Angular 5.0 and Spring Boot 2.0](https://developer.okta.com/blog/2017/12/04/basic-crud-angular-and-spring-boot) to see how this app was created.\n\n**Prerequisites:** [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) and [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-spring-boot-2-angular-5-example.git\ncd okta-spring-boot-2-angular-5-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\nTo run the server, cd into the `server` folder and run:\n \n```bash\n./mvnw spring-boot:run\n```\n\nTo run the client, cd into the `client` folder and run:\n \n```bash\nnpm install \u0026\u0026 npm start\n```\n\n### Create an OIDC App in Okta\n\nYou will need to [create an OIDC App in Okta](https://developer.okta.com/blog/2017/12/04/basic-crud-angular-and-spring-boot#create-an-oidc-app-in-okta) to get your values to perform authentication. \n\nLog in to your Okta Developer account (or [sign up](https://developer.okta.com/signup/) if you don’t have an account) and navigate to **Applications** \u003e **Add Application**. Click **Single-Page App**, click **Next**, and give the app a name you’ll remember. Change all instances of `localhost:8080` to `localhost:4200` and click **Done**.\n\n#### Server Configuration\n\nSet your domain and copy the `clientId` into `server/src/main/resources/application.yml`. \n\n**NOTE:** The value of `{yourOktaDomain}` should be something like `dev-123456.oktapreview`. Make sure you don't include `-admin` in the value!\n\n```yaml\nsecurity:\n    oauth2:\n        client:\n            access-token-uri: https://{yourOktaDomain}.com/oauth2/default/v1/token\n            user-authorization-uri: https://{yourOktaDomain}.com/oauth2/default/v1/authorize\n            client-id: {clientId}\n            scope: openid profile email\n        resource:\n            user-info-uri: https://{yourOktaDomain}.com/oauth2/default/v1/userinfo\n            token-info-uri: https://{yourOktaDomain}.com/oauth2/default/v1/introspect\n            prefer-token-info: false\n```\n\n#### Client Configuration\n\nFor the client, set the `issuer` and copy the `clientId` into `client/src/app/app.module.ts`.\n\n```typescript\nconst config = {\n  issuer: 'https://{yourOktaDomain}.com/oauth2/default',\n  redirectUri: window.location.origin + '/implicit/callback',\n  clientId: '{clientId}'\n};\n```\n\n## Links\n\nThis example uses the following open source libraries:\n\n* [Spring Security OAuth](http://projects.spring.io/spring-security-oauth/)\n* [Spring Security OAuth Boot 2 Autoconfig](https://github.com/spring-projects/spring-security-oauth2-boot)\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/2017/12/04/basic-crud-angular-and-spring-boot), 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-spring-boot-2-angular-5-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-spring-boot-2-angular-5-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-spring-boot-2-angular-5-example/lists"}