KEYCLOAK-284 Subject in token is now user id instead of username
This commit is contained in:
1 parent
c2ca1b2731
commit
9ce8e16063
28 files changed
+161
-109
No files matched your search
@@ -53,9 +53,7 @@ public class GitHubProvider extends AbstractOAuth2Provider {
|
||||
JSONObject profile = SimpleHttp.doGet(PROFILE_URL).header("Authorization", "Bearer " + accessToken).asJson();
|
||||
|
||||
SocialUser user = new SocialUser(profile.get("id").toString());
|
||||
|
||||
user.setUsername(profile.getString("login"));
|
||||
user.setFirstName(profile.optString("name"));
|
||||
user.setName(profile.optString("name"));
|
||||
user.setEmail(profile.optString("email"));
|
||||
|
||||
return user;
|
||||
|
||||
Reference in new issue
Block a user