Spring Boot + PostgreSQL + Auth0
- Auth0 Integration Samples for Java Spring Security MVC
- Testing the Web Layer using MockMvc
- Testing Method Security @WithMockUser
- SpringBoot-Auth0-ThymeLeaf
- Spring Boot - from beginning to production (rus)
- HikariCP
- Bootstrap Alerts - toastr
psql -h localhost -p 7301 -U postgres -f app_data.backup postgres
- Create Auth0 account.
- Add domain, client id and secret to application.properties:
# Auth0 settings
com.auth0.domain=[FIX_ME]
com.auth0.clientId=[FIX_ME]
com.auth0.clientSecret=[FIX_ME]
- (Optional) Auth0 enables also to use Custom Database. Please find more information: Authenticate Users using a Custom Database.
- JSON that will be returned from Auth0. "Sub" is unique id of user:
{
"sub": "auth0|5a4bc949ebc33d03b8b2639d",
"nickname": "test",
"name": "[email protected]",
"picture": "https://s.gravatar.com/avatar/662e5c603f4fa638abed0eed9650bd60?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fda.png",
"updated_at": "2018-01-09T23:02:49.937Z",
"email": "[email protected]",
"email_verified": true
}