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";
|
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";
|
2014-02-21 17:46:30 +00:00
|
|
|
|
2015-09-30 11:13:17 +00:00
|
|
|
public static String[] ALL_REALM_ROLES = {CREATE_CLIENT, VIEW_REALM, VIEW_USERS, VIEW_CLIENTS, VIEW_EVENTS, VIEW_IDENTITY_PROVIDERS, MANAGE_REALM, MANAGE_USERS, MANAGE_CLIENTS, MANAGE_EVENTS, MANAGE_IDENTITY_PROVIDERS};
|
2014-02-21 17:46:30 +00:00
|
|
|
|
|
|
|
}
|