Compare commits

...

2 Commits

Author SHA1 Message Date
Mauro Mugnaini 830974671a Added "full scope allowed" settings as `false` for new clients 2021-03-17 11:44:19 +01:00
Mauro Mugnaini 6f20e3a1f7 Prepared for new 1.0.1 version 2021-03-17 11:43:27 +01:00
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,8 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
# Changelog for "oidc-keycloak-library"
## [v1.0.1-SNAPSHOT]
## [v1.0.0]
- First release (#19143, #19891)
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

View File

@ -11,7 +11,7 @@
</parent>
<groupId>org.gcube.common</groupId>
<artifactId>oidc-keycloak-library</artifactId>
<version>1.0.0</version>
<version>1.0.1-SNAPSHOT</version>
<properties>
<keycloak-version>10.0.2</keycloak-version>
</properties>

View File

@ -144,6 +144,7 @@ public class KeycloakHelper {
newClientRepresentation.setPublicClient(false);
newClientRepresentation.setProtocol("openid-connect");
newClientRepresentation.setAuthorizationSettings(new ResourceServerRepresentation());
newClientRepresentation.setFullScopeAllowed(Boolean.FALSE);
try (Response response = realm.clients().create(newClientRepresentation)) {
if (!response.getStatusInfo().equals(Response.Status.CREATED)) {
throw new KeycloakResourceCreationException("While creating new client: " + clientId, response);