pulled scope values to externalized strings

pull/1046/head
Justin Richer 9 years ago
parent 5bccb602d8
commit 028265faa6

@ -455,7 +455,7 @@ public class DynamicClientRegistrationEndpoint {
// don't allow refresh tokens in implicit clients
newClient.getGrantTypes().remove("refresh_token");
newClient.getScope().remove("offline_access");
newClient.getScope().remove(SystemScopeService.OFFLINE_ACCESS);
}
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
newClient.getGrantTypes().remove("refresh_token");
newClient.getScope().remove("offline_access");
newClient.getScope().remove("openid");
newClient.getScope().remove(SystemScopeService.OFFLINE_ACCESS);
newClient.getScope().remove(SystemScopeService.OPENID_SCOPE);
}
if (newClient.getGrantTypes().isEmpty()) {

Loading…
Cancel
Save