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

the demo with github should use attribute "login" isntad of "user" for path /user

glelouet opened this issue · comments

principal.getAttribute("user")

Does not work(empty message), while

principal.getAttribute("login")

return my github username.

because the user name is stored in the oauth attribute "login" for github ?