https://github.com/itzg/try-oauth2-login
This application tests out Spring Boot's OAuth2 support for pre-defined providers
https://github.com/itzg/try-oauth2-login
Last synced: 10 months ago
JSON representation
This application tests out Spring Boot's OAuth2 support for pre-defined providers
- Host: GitHub
- URL: https://github.com/itzg/try-oauth2-login
- Owner: itzg
- Created: 2018-11-11T20:50:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-07T21:00:30.000Z (about 7 years ago)
- Last Synced: 2025-01-14T08:52:10.594Z (12 months ago)
- Language: Java
- Size: 52.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://medium.com/@itzgeoff/fine-tuning-oauth2-in-spring-boot-3f1eff1ea4c0)
This application tests out Spring Boot's OAuth2 support for pre-defined providers. It also
configures the `RestOperations` used during user info retrieval to ensure the `text/javascript`
response from Facebook is processed as JSON.
## Application properties
As described in [this section](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-security.html#boot-features-security-oauth2-client)
you will need to provide the client ID and secret for one or more of the providers, such as
```
spring.security.oauth2.client.registration.facebook.client-id
spring.security.oauth2.client.registration.facebook.client-secret
```