spring-guides / tut-spring-boot-oauth2

Spring Boot and OAuth2:: A tutorial on "social" login and single sign on with Facebook and Github

Home Page:https://spring.io/guides/tutorials/spring-boot-oauth2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] How to Add a Local User Database?

bjurga opened this issue · comments

There is a hint how to store some additional info about the user(s) into local DB:

  1. Provision a User object for each unique user that logs in...

My question is what would be the best place to do it? What I want to avoid is DB calls with each request of logged-in user.

Ok. Sorry. I just spotted this: #41