Added "full scope allowed" settings as `false` for new clients
This commit is contained in:
parent
6f20e3a1f7
commit
830974671a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue