Added "full scope allowed" settings as `false` for new clients

This commit is contained in:
Mauro Mugnaini 2021-03-17 11:44:19 +01:00
parent 6f20e3a1f7
commit 830974671a
1 changed files with 1 additions and 0 deletions

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);