Skip to content

Commit

Permalink
Merge pull request #14778 from sberyozkin/keycloak_authorization_proxy
Browse files Browse the repository at this point in the history
Set keycloak-authorization proxy url
  • Loading branch information
sberyozkin authored Feb 3, 2021
2 parents cb11c77 + a3edffa commit 467a587
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ public void init(OidcConfig oidcConfig, KeycloakPolicyEnforcerConfig config, Tls
adapterConfig.setAllowAnyHostname(true);
}

if (oidcConfig.defaultTenant.proxy.host.isPresent()) {
adapterConfig.setProxyUrl(oidcConfig.defaultTenant.proxy.host.get() + ":" + oidcConfig.defaultTenant.proxy.port);
}

PolicyEnforcerConfig enforcerConfig = getPolicyEnforcerConfig(config, adapterConfig);

if (enforcerConfig == null) {
Expand Down

0 comments on commit 467a587

Please sign in to comment.