Andy Thorne
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
3 deletions
-
pom.xml
-
src/main/java/org/keycloak/social/discord/DiscordIdentityProvider.java
|
|
@ -11,7 +11,7 @@ |
|
|
|
<packaging>jar</packaging> |
|
|
|
|
|
|
|
<properties> |
|
|
|
<version.keycloak>22.0.1</version.keycloak> |
|
|
|
<version.keycloak>25.0.2</version.keycloak> |
|
|
|
</properties> |
|
|
|
|
|
|
|
<dependencies> |
|
|
|
|
|
@ -67,11 +67,10 @@ public class DiscordIdentityProvider extends AbstractOAuth2IdentityProvider<Disc |
|
|
|
|
|
|
|
@Override |
|
|
|
protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event, JsonNode profile) { |
|
|
|
BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "id")); |
|
|
|
BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "id"), getConfig()); |
|
|
|
|
|
|
|
user.setUsername(getJsonProperty(profile, "username") + "#" + getJsonProperty(profile, "discriminator")); |
|
|
|
user.setEmail(getJsonProperty(profile, "email")); |
|
|
|
user.setIdpConfig(getConfig()); |
|
|
|
user.setIdp(this); |
|
|
|
|
|
|
|
AbstractJsonUserAttributeMapper.storeUserProfileForMapper(user, profile, getConfig().getAlias()); |
|
|
|