Skip to content

Commit 028265f

Browse files
committed
pulled scope values to externalized strings
1 parent 5bccb60 commit 028265f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openid-connect-server/src/main/java/org/mitre/openid/connect/web/DynamicClientRegistrationEndpoint.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ private ClientDetailsEntity validateGrantTypes(ClientDetailsEntity newClient) th
455455

456456
// don't allow refresh tokens in implicit clients
457457
newClient.getGrantTypes().remove("refresh_token");
458-
newClient.getScope().remove("offline_access");
458+
newClient.getScope().remove(SystemScopeService.OFFLINE_ACCESS);
459459
}
460460

461461
if (newClient.getGrantTypes().contains("client_credentials")) {
@@ -474,8 +474,8 @@ private ClientDetailsEntity validateGrantTypes(ClientDetailsEntity newClient) th
474474

475475
// don't allow refresh tokens or id tokens in client_credentials clients
476476
newClient.getGrantTypes().remove("refresh_token");
477-
newClient.getScope().remove("offline_access");
478-
newClient.getScope().remove("openid");
477+
newClient.getScope().remove(SystemScopeService.OFFLINE_ACCESS);
478+
newClient.getScope().remove(SystemScopeService.OPENID_SCOPE);
479479
}
480480

481481
if (newClient.getGrantTypes().isEmpty()) {

0 commit comments

Comments
 (0)