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.
|
|
|
|
*/
|
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
package org.keycloak.models;
|
|
|
|
|
2015-09-23 10:52:37 +00:00
|
|
|
import org.keycloak.OAuth2Constants;
|
|
|
|
|
2015-07-17 11:45:43 +00:00
|
|
|
/**
|
|
|
|
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
|
|
|
|
* @version $Revision: 1 $
|
|
|
|
*/
|
|
|
|
public interface Constants {
|
|
|
|
String ADMIN_CONSOLE_CLIENT_ID = "security-admin-console";
|
2015-11-30 14:31:28 +00:00
|
|
|
String ADMIN_CLI_CLIENT_ID = "admin-cli";
|
2015-07-17 11:45:43 +00:00
|
|
|
|
|
|
|
String ACCOUNT_MANAGEMENT_CLIENT_ID = "account";
|
|
|
|
String BROKER_SERVICE_CLIENT_ID = "broker";
|
|
|
|
String REALM_MANAGEMENT_CLIENT_ID = "realm-management";
|
|
|
|
|
|
|
|
String INSTALLED_APP_URN = "urn:ietf:wg:oauth:2.0:oob";
|
|
|
|
String INSTALLED_APP_URL = "http://localhost";
|
|
|
|
String READ_TOKEN_ROLE = "read-token";
|
|
|
|
String[] BROKER_SERVICE_ROLES = {READ_TOKEN_ROLE};
|
2015-09-23 10:52:37 +00:00
|
|
|
String OFFLINE_ACCESS_ROLE = OAuth2Constants.OFFLINE_ACCESS;
|
2015-10-14 15:45:46 +00:00
|
|
|
|
2015-11-18 14:06:23 +00:00
|
|
|
String DEFAULT_HASH_ALGORITHM = "pbkdf2";
|
|
|
|
|
2015-11-27 07:29:50 +00:00
|
|
|
// 15 minutes
|
|
|
|
int DEFAULT_ACCESS_TOKEN_LIFESPAN_FOR_IMPLICIT_FLOW_TIMEOUT = 900;
|
2015-10-14 15:45:46 +00:00
|
|
|
// 30 days
|
|
|
|
int DEFAULT_OFFLINE_SESSION_IDLE_TIMEOUT = 2592000;
|
2015-10-23 20:05:27 +00:00
|
|
|
|
2015-10-29 10:11:10 +00:00
|
|
|
String VERIFY_EMAIL_KEY = "VERIFY_EMAIL_KEY";
|
|
|
|
String KEY = "key";
|
2015-12-01 12:15:06 +00:00
|
|
|
|
|
|
|
// Prefix for user attributes used in various "context"data maps
|
|
|
|
public static final String USER_ATTRIBUTES_PREFIX = "user.attributes.";
|
2015-07-17 11:45:43 +00:00
|
|
|
}
|