Skip to content

Commit

Permalink
Merge pull request #7 from KazanExpress/feat/update_kk
Browse files Browse the repository at this point in the history
fix: update yandex idp provider config
  • Loading branch information
akastav authored Oct 12, 2024
2 parents 23089e7 + ba85c18 commit 41d6a39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG KEYCLOAK_VERSION
RUN mkdir -p /src/extensions
WORKDIR /src/extensions
COPY extensions/pom.xml /src/extensions/pom.xml
RUN mvn -T 1C install && rm -rf target
RUN mvn -e -T 1C install && rm -rf target
COPY extensions /src/extensions
RUN mvn package

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected String getProfileEndpointForValidation(EventBuilder event) {

@Override
protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event, JsonNode profile) {
BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "id"));
BrokeredIdentityContext user = new BrokeredIdentityContext(getJsonProperty(profile, "id"), getConfig());
String domain = ((YandexIdentityProviderConfig) getConfig()).getHostedDomain();

String email = getJsonProperty(profile, "default_email");
Expand All @@ -60,7 +60,7 @@ protected BrokeredIdentityContext extractIdentityFromProfile(EventBuilder event,
user.setFirstName(getJsonProperty(profile, "first_name"));
user.setLastName(getJsonProperty(profile, "last_name"));

user.setIdpConfig(getConfig());
//user.setIdpConfig(getConfig());
user.setIdp(this);

AbstractJsonUserAttributeMapper.storeUserProfileForMapper(user, profile, getConfig().getAlias());
Expand Down

0 comments on commit 41d6a39

Please sign in to comment.