Spring Boot: OAuth
Social login with Spring Boot
Two main alternatives:
- pac4j: https://github.com/pac4j/spring-webmvc-pac4j
- spring-boot’s own approach
Pac4j:
Start with this:
Spring boot’s own approach
https://spring.io/guides/tutorials/spring-boot-oauth2/
Note that you may also need this information for managing the configuration secrets securely:
This may be more useful
Section 4 of this document, which describes the OAuth2 client, may also be relevant:
The format of the Callback URL should apparently be:
http://localhost:8080/login/oauth2/code/github
OR
https://my-heroku-app-name.herokuapp.com/login/oauth2/code/github
OAuth with Spring Boot
- spring-boot-try-github-oauth
More notes
- There seems to be some movement in terms of updating libraries from an older version to a newer version: https://groups.google.com/forum/?hl=en#!topic/pac4j-users/VeOMuiYiI6A