mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ACS-5100 Include authorization uri in the ClientRegistration (#1897)
This commit is contained in:
@@ -357,8 +357,13 @@ public class IdentityServiceFacadeFactoryBean implements FactoryBean<IdentitySer
|
|||||||
|
|
||||||
private ClientRegistration.Builder createBuilder(OIDCProviderMetadata metadata)
|
private ClientRegistration.Builder createBuilder(OIDCProviderMetadata metadata)
|
||||||
{
|
{
|
||||||
|
final String authUri = Optional.of(metadata)
|
||||||
|
.map(OIDCProviderMetadata::getAuthorizationEndpointURI)
|
||||||
|
.map(URI::toASCIIString)
|
||||||
|
.orElse(null);
|
||||||
return ClientRegistration
|
return ClientRegistration
|
||||||
.withRegistrationId("ids")
|
.withRegistrationId("ids")
|
||||||
|
.authorizationUri(authUri)
|
||||||
.tokenUri(metadata.getTokenEndpointURI().toASCIIString())
|
.tokenUri(metadata.getTokenEndpointURI().toASCIIString())
|
||||||
.jwkSetUri(metadata.getJWKSetURI().toASCIIString())
|
.jwkSetUri(metadata.getJWKSetURI().toASCIIString())
|
||||||
.issuerUri(config.getIssuerUrl())
|
.issuerUri(config.getIssuerUrl())
|
||||||
|
Reference in New Issue
Block a user