Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oktadev/okta-spring-social-example
Social Login with Spring Boot 2.0
https://github.com/oktadev/okta-spring-social-example
facebook-login google-login social-login spring-boot spring-boot-2
Last synced: 3 days ago
JSON representation
Social Login with Spring Boot 2.0
- Host: GitHub
- URL: https://github.com/oktadev/okta-spring-social-example
- Owner: oktadev
- License: apache-2.0
- Created: 2018-07-18T21:48:31.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-04-16T15:06:02.000Z (over 3 years ago)
- Last Synced: 2024-04-15T15:55:34.005Z (7 months ago)
- Topics: facebook-login, google-login, social-login, spring-boot, spring-boot-2
- Language: HTML
- Homepage: https://developer.okta.com/blog/2018/07/24/social-spring-boot
- Size: 25.4 MB
- Stars: 5
- Watchers: 12
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Social Login with Spring Boot 2.0
This example app shows how to add social login to a Spring Boot app with Okta.Please read [Add Social Login to Your Spring Boot 2.0 App](https://developer.okta.com/blog/2018/07/24/social-spring-boot) to see how this app was created.
**Prerequisites:** [Java 11](https://adoptopenjdk.net/) and an [Okta Developer Account](https://developer.okta.com).
> [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.
* [Getting Started](#getting-started)
* [Links](#links)
* [Help](#help)
* [License](#license)## Getting Started
Before 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`. Then, run `okta apps create`. Select the default app name, or change it as you see fit. Choose **Web** and press **Enter**.
Select **Other**. Then, change the Redirect URI to `http://localhost:8080/authorization-code/callback` and use `http://localhost:8080` for the Logout Redirect URI.
Copy `src/main/resources/application.template.yml` to `src/main/resources/application.yml` and fill in the necessary information.
See [these instructions](https://developer.okta.com/blog/2018/07/24/social-spring-boot#configure-google-and-facebook-for-social-login-in-your-spring-boot-app) to complete your social login setup.
## Links
This example uses the following open source libraries:
* [Okta Sign-In Widget](https://github.com/okta/okta-signin-widget)
* [Okta Spring Boot Starter](https://github.com/okta/okta-spring-boot)
* [Spring Boot](https://spring.io/projects/spring-boot)
* [Spring Security](https://spring.io/projects/spring-security)## Help
Please post any questions as comments on the [blog post](https://developer.okta.com/blog/2018/07/24/social-spring-boot), or visit our [Okta Developer Forums](https://devforum.okta.com/).
## License
Apache 2.0, see [LICENSE](LICENSE).