diff --git a/openid-connect-common/src/main/java/org/mitre/oauth2/service/SystemScopeService.java b/openid-connect-common/src/main/java/org/mitre/oauth2/service/SystemScopeService.java index 11ac30987..e41794046 100644 --- a/openid-connect-common/src/main/java/org/mitre/oauth2/service/SystemScopeService.java +++ b/openid-connect-common/src/main/java/org/mitre/oauth2/service/SystemScopeService.java @@ -36,7 +36,7 @@ public interface SystemScopeService { public static final String ID_TOKEN_SCOPE = "id-token"; // ID tokens are generated using this scope public static final String REGISTRATION_TOKEN_SCOPE = "registration-token"; // this scope manages dynamic client registrations public static final String RESOURCE_TOKEN_SCOPE = "resource-token"; // this scope manages client-style protected resources - public static final String RESOURCE_SET_REGISTRATION_SCOPE = "resource-set-registration"; + public static final String RESOURCE_SET_REGISTRATION_SCOPE = "resource_set_registration"; public static final Set reservedScopes = Sets.newHashSet( diff --git a/openid-connect-server-webapp/src/main/resources/db/scopes.sql b/openid-connect-server-webapp/src/main/resources/db/scopes.sql index 27792880f..795e96183 100644 --- a/openid-connect-server-webapp/src/main/resources/db/scopes.sql +++ b/openid-connect-server-webapp/src/main/resources/db/scopes.sql @@ -16,7 +16,8 @@ INSERT INTO system_scope_TEMP (scope, description, icon, restricted, default_sco ('email', 'email address', 'envelope', false, true, false, null), ('address', 'physical address', 'home', false, true, false, null), ('phone', 'telephone number', 'bell', false, true, false, null), - ('offline_access', 'offline access', 'time', false, false, false, null); + ('offline_access', 'offline access', 'time', false, false, false, null), + ('resource_set_registration', 'register resource sets on this authorization server', 'briefcase', false, false, false, null); -- -- Merge the temporary scopes safely into the database. This is a two-step process to keep scopes from being created on every startup with a persistent store.