2016-02-03 10:20:22 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2016 Red Hat, Inc. and/or its affiliates
|
|
|
|
* and other contributors as indicated by the @author tags.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2014-02-21 17:46:30 +00:00
|
|
|
package org.keycloak.models;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a>
|
|
|
|
*/
|
|
|
|
public class AdminRoles {
|
|
|
|
|
|
|
|
public static String APP_SUFFIX = "-realm";
|
|
|
|
|
|
|
|
public static String ADMIN = "admin";
|
|
|
|
|
2015-04-13 11:32:18 +00:00
|
|
|
// for admin client local to each realm
|
2014-05-12 14:12:31 +00:00
|
|
|
public static String REALM_ADMIN = "realm-admin";
|
|
|
|
|
2014-02-27 11:07:39 +00:00
|
|
|
public static String CREATE_REALM = "create-realm";
|
2015-09-30 11:13:17 +00:00
|
|
|
public static String CREATE_CLIENT = "create-client";
|
2014-02-27 11:07:39 +00:00
|
|
|
|
2014-02-26 14:21:57 +00:00
|
|
|
public static String VIEW_REALM = "view-realm";
|
|
|
|
public static String VIEW_USERS = "view-users";
|
|
|
|
public static String VIEW_CLIENTS = "view-clients";
|
2014-08-27 10:41:40 +00:00
|
|
|
public static String VIEW_EVENTS = "view-events";
|
2015-02-09 23:30:21 +00:00
|
|
|
public static String VIEW_IDENTITY_PROVIDERS = "view-identity-providers";
|
2016-06-17 05:07:34 +00:00
|
|
|
public static String VIEW_AUTHORIZATION = "view-authorization";
|
2014-02-26 14:21:57 +00:00
|
|
|
|
2014-02-21 17:46:30 +00:00
|
|
|
public static String MANAGE_REALM = "manage-realm";
|
|
|
|
public static String MANAGE_USERS = "manage-users";
|
2015-02-09 23:30:21 +00:00
|
|
|
public static String MANAGE_IDENTITY_PROVIDERS = "manage-identity-providers";
|
2014-02-21 17:46:30 +00:00
|
|
|
public static String MANAGE_CLIENTS = "manage-clients";
|
2014-08-27 10:41:40 +00:00
|
|
|
public static String MANAGE_EVENTS = "manage-events";
|
2016-06-17 05:07:34 +00:00
|
|
|
public static String MANAGE_AUTHORIZATION = "manage-authorization";
|
2014-02-21 17:46:30 +00:00
|
|
|
|
2016-06-17 05:07:34 +00:00
|
|
|
public static String[] ALL_REALM_ROLES = {CREATE_CLIENT, VIEW_REALM, VIEW_USERS, VIEW_CLIENTS, VIEW_EVENTS, VIEW_IDENTITY_PROVIDERS, VIEW_AUTHORIZATION, MANAGE_REALM, MANAGE_USERS, MANAGE_CLIENTS, MANAGE_EVENTS, MANAGE_IDENTITY_PROVIDERS, MANAGE_AUTHORIZATION};
|
2014-02-21 17:46:30 +00:00
|
|
|
|
|
|
|
}
|