{"id":20307269,"url":"https://github.com/oktadev/okta-spring-boot-react-crud-example","last_synced_at":"2025-04-05T10:10:39.886Z","repository":{"id":37084672,"uuid":"140766194","full_name":"oktadev/okta-spring-boot-react-crud-example","owner":"oktadev","description":"Simple CRUD with React and Spring Boot 3","archived":false,"fork":false,"pushed_at":"2023-08-30T05:54:59.000Z","size":1522,"stargazers_count":297,"open_issues_count":3,"forks_count":168,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-03-29T09:12:42.939Z","etag":null,"topics":["authentication","crud","csrf","csrf-protection","jpa","oidc","reactjs","spring-boot"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2022/06/17/simple-crud-react-and-spring-boot","language":"Java","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":"2018-07-12T21:24:56.000Z","updated_at":"2025-03-26T10:14:00.000Z","dependencies_parsed_at":"2025-02-04T20:11:21.093Z","dependency_job_id":"5a544be5-a1c8-4daa-9a25-a2ff4f9b884b","html_url":"https://github.com/oktadev/okta-spring-boot-react-crud-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-react-crud-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-react-crud-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-react-crud-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-spring-boot-react-crud-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-spring-boot-react-crud-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318745,"owners_count":20919484,"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","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","crud","csrf","csrf-protection","jpa","oidc","reactjs","spring-boot"],"created_at":"2024-11-14T17:16:59.938Z","updated_at":"2025-04-05T10:10:39.847Z","avatar_url":"https://github.com/oktadev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JUG Tours with Spring Boot and React\n \nThis example app shows how to create a Spring Boot API and CRUD (create, read, update, and delete) its data with a React app.\n\nPlease read [Use React and Spring Boot to Build a Simple CRUD App](https://developer.okta.com/blog/2022/06/17/simple-crud-react-and-spring-boot) to see how this app was created.\n\n**Prerequisites:** [Java 17](http://sdkman.io) and [Node.js 18+](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/oktadev/okta-spring-boot-react-crud-example.git spring-react\ncd spring-react\n```\n\nThis will get a copy of the project installed locally. \n\n### Create an Application 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 **Web** and press **Enter**.\n\nSelect **Okta Spring Boot Starter**. Accept the default Redirect URI of `http://localhost:8080/login/oauth2/code/okta` and use `http://localhost:3000,http://localhost:8080` for the Logout Redirect URI.\n\nThe Okta CLI will create an OIDC Web App in your Okta Org. It will add the redirect URIs you specified and grant access to the `Everyone` group. You will see output like the following when it's finished:\n\n```shell\nOkta application configuration has been written to:\n  /path/to/app/src/main/resources/application.properties\n```\n\nOpen `src/main/resources/application.properties` to see the issuer and credentials for your app.\n\n```properties\nokta.oauth2.issuer=https://dev-133337.okta.com/oauth2/default\nokta.oauth2.client-id=0oab8eb55Kb9jdMIr5d6\nokta.oauth2.client-secret=NEVER-SHOW-SECRETS\n```\n\nNOTE: You can also use the Okta Admin Console to create your app. See [Create a Spring Boot App](https://developer.okta.com/docs/guides/sign-into-web-app-redirect/spring-boot/main/#create-an-okta-integration-for-your-app) for more information.\n\nRun `./mvnw spring-boot:run -Pprod` and log in to your app at `http://localhost:8080`.\n\n### Use Auth0 for OpenID Connect\n\nIf you'd rather use Auth0, that's possible too! First, you'll need to checkout the `auth0` branch of this repository.\n\n```bash\ngit clone -b auth0 https://github.com/oktadev/okta-spring-boot-react-crud-example.git spring-react\ncd spring-react\n```\n\nThen, install the [Auth0 CLI](https://github.com/auth0/auth0-cli) and run `auth0 login` in a terminal.\n\nNext, run `auth0 apps create` and specify the appropriate URLs:\n\n```bash\nauth0 apps create \\\n  --name \"Spring Boot + React\" \\\n  --description \"Spring Boot OIDC App\" \\\n  --type regular \\\n  --callbacks http://localhost:8080/login/oauth2/code/okta \\\n  --logout-urls http://localhost:3000,http://localhost:8080 \\\n  --reveal-secrets\n```\n\nModify your `src/main/resources/application.properties` to include your Auth0 issuer, client ID, and client secret. \n\n```properties\n# make sure to include the trailing slash for the Auth0 issuer\nokta.oauth2.issuer=https://\u003cyour-auth0-domain\u003e/\nokta.oauth2.issuer.client-id=\u003cyour-client-id\u003e\nokta.oauth2.issuer.client-secret=\u003cyour-client-secret\u003e\n```\n\nNOTE: You can also use your [Auth0 dashboard](https://manage.auth0.com) to configure your application. Just make sure to use the same URLs specified above.\n\nRun `./mvnw spring-boot:run -Pprod` and log in to your app at `http://localhost:8080`.\n\n## Links\n\nThis example uses the following open source libraries:\n\n* [React](https://reactjs.org/)\n* [Spring Boot](https://spring.io/projects/spring-boot)\n* [Spring Security](https://spring.io/projects/spring-security)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://developer.okta.com/blog/2022/06/17/simple-crud-react-and-spring-boot), or visit our [Okta Developer Forums](https://devforum.okta.com/).\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-react-crud-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-spring-boot-react-crud-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-spring-boot-react-crud-example/lists"}