From 62cc0023964479d48d41491edeefe64636d58301 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Mon, 13 Jan 2014 19:42:34 -0500 Subject: [PATCH 1/4] constants --- .../adapters/AdapterAdminResourceConstants.java | 9 --------- .../java/org/keycloak/adapters/AdapterConstants.java | 12 ++++++++++++ .../reference/en/en-US/modules/adapter-config.xml | 2 +- .../src/main/webapp/customers/cors-test.html | 2 +- .../src/main/webapp/customers/cors-test.html | 2 +- .../adapters/as7/AuthenticatedActionsValve.java | 5 +++-- .../adapters/as7/OAuthAuthenticatorValve.java | 4 ++-- .../undertow/AuthenticatedActionsHandler.java | 5 +++-- .../undertow/ServletAdminActionsHandler.java | 4 ++-- .../services/managers/ResourceAdminManager.java | 5 ++--- 10 files changed, 27 insertions(+), 23 deletions(-) delete mode 100755 core/src/main/java/org/keycloak/adapters/AdapterAdminResourceConstants.java create mode 100755 core/src/main/java/org/keycloak/adapters/AdapterConstants.java diff --git a/core/src/main/java/org/keycloak/adapters/AdapterAdminResourceConstants.java b/core/src/main/java/org/keycloak/adapters/AdapterAdminResourceConstants.java deleted file mode 100755 index 7c0bb8774b..0000000000 --- a/core/src/main/java/org/keycloak/adapters/AdapterAdminResourceConstants.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.keycloak.adapters; - -/** - * @author Bill Burke - * @version $Revision: 1 $ - */ -public interface AdapterAdminResourceConstants { - public static final String LOGOUT = "k_logout"; -} diff --git a/core/src/main/java/org/keycloak/adapters/AdapterConstants.java b/core/src/main/java/org/keycloak/adapters/AdapterConstants.java new file mode 100755 index 0000000000..7ad2d85631 --- /dev/null +++ b/core/src/main/java/org/keycloak/adapters/AdapterConstants.java @@ -0,0 +1,12 @@ +package org.keycloak.adapters; + +/** + * @author Bill Burke + * @version $Revision: 1 $ + */ +public interface AdapterConstants { + + // URL endpoints + public static final String K_LOGOUT = "k_logout"; + public static final String K_QUERY_BEARER_TOKEN = "k_query_bearer_token"; +} diff --git a/docbook/reference/en/en-US/modules/adapter-config.xml b/docbook/reference/en/en-US/modules/adapter-config.xml index 8f4ed9c28c..32ae3894d3 100755 --- a/docbook/reference/en/en-US/modules/adapter-config.xml +++ b/docbook/reference/en/en-US/modules/adapter-config.xml @@ -174,7 +174,7 @@ Iftrue, an authenticated browser client (via a Javascript HTTP invocation) - can obtain the signed access token via the URLroot/K_QUERY_BEARER_TOKEN. + can obtain the signed access token via the URLroot/k_query_bearer_token. This isOPTIONAL. The default value isfalse. diff --git a/examples/as7-eap-demo/customer-app/src/main/webapp/customers/cors-test.html b/examples/as7-eap-demo/customer-app/src/main/webapp/customers/cors-test.html index 254b2aeec5..bc5456cceb 100755 --- a/examples/as7-eap-demo/customer-app/src/main/webapp/customers/cors-test.html +++ b/examples/as7-eap-demo/customer-app/src/main/webapp/customers/cors-test.html @@ -6,7 +6,7 @@