added resource set registration scope to built in set

pull/708/merge
Justin Richer 2015-02-24 17:45:34 -05:00
parent 4878e88d4f
commit 4d88e04e59
2 changed files with 3 additions and 2 deletions

View File

@ -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 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 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_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<SystemScope> reservedScopes = public static final Set<SystemScope> reservedScopes =
Sets.newHashSet( Sets.newHashSet(

View File

@ -16,7 +16,8 @@ INSERT INTO system_scope_TEMP (scope, description, icon, restricted, default_sco
('email', 'email address', 'envelope', false, true, false, null), ('email', 'email address', 'envelope', false, true, false, null),
('address', 'physical address', 'home', false, true, false, null), ('address', 'physical address', 'home', false, true, false, null),
('phone', 'telephone number', 'bell', 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. -- 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.