File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
openid-connect-server/src/main/java/org/mitre/openid/connect/web Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ private ClientDetailsEntity validateGrantTypes(ClientDetailsEntity newClient) th
455
455
456
456
// don't allow refresh tokens in implicit clients
457
457
newClient .getGrantTypes ().remove ("refresh_token" );
458
- newClient .getScope ().remove ("offline_access" );
458
+ newClient .getScope ().remove (SystemScopeService . OFFLINE_ACCESS );
459
459
}
460
460
461
461
if (newClient .getGrantTypes ().contains ("client_credentials" )) {
@@ -474,8 +474,8 @@ private ClientDetailsEntity validateGrantTypes(ClientDetailsEntity newClient) th
474
474
475
475
// don't allow refresh tokens or id tokens in client_credentials clients
476
476
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 );
479
479
}
480
480
481
481
if (newClient .getGrantTypes ().isEmpty ()) {
You can’t perform that action at this time.
0 commit comments