pulled scope values to externalized strings
parent
5bccb602d8
commit
028265faa6
|
@ -455,7 +455,7 @@ public class DynamicClientRegistrationEndpoint {
|
||||||
|
|
||||||
// don't allow refresh tokens in implicit clients
|
// don't allow refresh tokens in implicit clients
|
||||||
newClient.getGrantTypes().remove("refresh_token");
|
newClient.getGrantTypes().remove("refresh_token");
|
||||||
newClient.getScope().remove("offline_access");
|
newClient.getScope().remove(SystemScopeService.OFFLINE_ACCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newClient.getGrantTypes().contains("client_credentials")) {
|
if (newClient.getGrantTypes().contains("client_credentials")) {
|
||||||
|
@ -474,8 +474,8 @@ public class DynamicClientRegistrationEndpoint {
|
||||||
|
|
||||||
// don't allow refresh tokens or id tokens in client_credentials clients
|
// don't allow refresh tokens or id tokens in client_credentials clients
|
||||||
newClient.getGrantTypes().remove("refresh_token");
|
newClient.getGrantTypes().remove("refresh_token");
|
||||||
newClient.getScope().remove("offline_access");
|
newClient.getScope().remove(SystemScopeService.OFFLINE_ACCESS);
|
||||||
newClient.getScope().remove("openid");
|
newClient.getScope().remove(SystemScopeService.OPENID_SCOPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newClient.getGrantTypes().isEmpty()) {
|
if (newClient.getGrantTypes().isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue