Skip to content

Commit

Permalink
solve
Browse files Browse the repository at this point in the history
  • Loading branch information
allan committed Dec 18, 2024
1 parent fb09c67 commit 40d935c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/java/media/hiway/provider/DruidIdentityProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ public class DruidIdentityProvider extends OIDCIdentityProvider implements Socia

public DruidIdentityProvider(KeycloakSession session, DruidIdentityProviderConfig config) {
super(session, config);
String defaultScop
//e = config.getDefaultScope();
String defaultScope = config.getDefaultScope();
//
config.setAuthorizationUrl("https://auth.test.id.sevillafc.es/oauth2/authorize");
config.setTokenUrl("https://auth.test.id.sevillafc.es/oauth2/token");
logger.debugf("defaultScope ", defaultScope);
String isProd = config.getProd();
logger.debugf("isProd ", isProd);
//
config.setAuthorizationUrl(AUTH_URL_TEST);
config.setTokenUrl(TOKEN_URL_TEST);

// check if inside the config exist openid likes scope=openid+email+name, if yes remove it
if (defaultScope.contains(SCOPE_OPENID)) {
Expand Down

0 comments on commit 40d935c

Please sign in to comment.