diff --git a/broker/core/pom.xml b/broker/core/pom.xml index 28244fd154..37bd097946 100755 --- a/broker/core/pom.xml +++ b/broker/core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/broker/core/src/main/java/org/keycloak/broker/provider/AbstractIdentityProviderMapper.java b/broker/core/src/main/java/org/keycloak/broker/provider/AbstractIdentityProviderMapper.java index ee327c3740..f79e8d72d8 100755 --- a/broker/core/src/main/java/org/keycloak/broker/provider/AbstractIdentityProviderMapper.java +++ b/broker/core/src/main/java/org/keycloak/broker/provider/AbstractIdentityProviderMapper.java @@ -1,10 +1,10 @@ package org.keycloak.broker.provider; -import org.keycloak.broker.provider.IdentityProviderMapper; import org.keycloak.models.IdentityProviderMapperModel; import org.keycloak.models.KeycloakSession; import org.keycloak.models.KeycloakSessionFactory; import org.keycloak.models.RealmModel; +import org.keycloak.models.UserModel; /** * @author Bill Burke @@ -35,4 +35,9 @@ public abstract class AbstractIdentityProviderMapper implements IdentityProvider public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { } + + @Override + public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { + + } } diff --git a/broker/core/src/main/java/org/keycloak/broker/provider/BrokeredIdentityContext.java b/broker/core/src/main/java/org/keycloak/broker/provider/BrokeredIdentityContext.java index 6052f5738b..95417fd80e 100755 --- a/broker/core/src/main/java/org/keycloak/broker/provider/BrokeredIdentityContext.java +++ b/broker/core/src/main/java/org/keycloak/broker/provider/BrokeredIdentityContext.java @@ -18,9 +18,13 @@ package org.keycloak.broker.provider; import org.keycloak.models.ClientSessionModel; +import org.keycloak.models.Constants; import org.keycloak.models.IdentityProviderModel; +import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; /** @@ -152,6 +156,22 @@ public class BrokeredIdentityContext { this.contextData = contextData; } + // Set the attribute, which will be available on "Update profile" page and in authenticators + public void setUserAttribute(String attributeName, String attributeValue) { + List list = new ArrayList<>(); + list.add(attributeValue); + getContextData().put(Constants.USER_ATTRIBUTES_PREFIX + attributeName, list); + } + + public String getUserAttribute(String attributeName) { + List userAttribute = (List) getContextData().get(Constants.USER_ATTRIBUTES_PREFIX + attributeName); + if (userAttribute == null || userAttribute.isEmpty()) { + return null; + } else { + return userAttribute.get(0); + } + } + public String getFirstName() { return firstName; } diff --git a/broker/core/src/main/java/org/keycloak/broker/provider/DefaultDataMarshaller.java b/broker/core/src/main/java/org/keycloak/broker/provider/DefaultDataMarshaller.java index 3f8fcf2f48..5beb0ab161 100644 --- a/broker/core/src/main/java/org/keycloak/broker/provider/DefaultDataMarshaller.java +++ b/broker/core/src/main/java/org/keycloak/broker/provider/DefaultDataMarshaller.java @@ -1,6 +1,7 @@ package org.keycloak.broker.provider; import java.io.IOException; +import java.util.List; import org.keycloak.common.util.Base64Url; import org.keycloak.util.JsonSerialization; @@ -26,15 +27,20 @@ public class DefaultDataMarshaller implements IdentityProviderDataMarshaller { @Override public T deserialize(String serialized, Class clazz) { - if (clazz.equals(String.class)) { - return clazz.cast(serialized); - } else { - byte[] bytes = Base64Url.decode(serialized); - try { - return JsonSerialization.readValue(bytes, clazz); - } catch (IOException ioe) { - throw new RuntimeException(ioe); + try { + if (clazz.equals(String.class)) { + return clazz.cast(serialized); + } else { + byte[] bytes = Base64Url.decode(serialized); + if (List.class.isAssignableFrom(clazz)) { + List list = JsonSerialization.readValue(bytes, List.class); + return clazz.cast(list); + } else { + return JsonSerialization.readValue(bytes, clazz); + } } + } catch (IOException ioe) { + throw new RuntimeException(ioe); } } } diff --git a/broker/core/src/main/java/org/keycloak/broker/provider/HardcodedAttributeMapper.java b/broker/core/src/main/java/org/keycloak/broker/provider/HardcodedAttributeMapper.java index d182d6f1a6..7ab99447a2 100755 --- a/broker/core/src/main/java/org/keycloak/broker/provider/HardcodedAttributeMapper.java +++ b/broker/core/src/main/java/org/keycloak/broker/provider/HardcodedAttributeMapper.java @@ -69,10 +69,10 @@ public class HardcodedAttributeMapper extends AbstractIdentityProviderMapper { } @Override - public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { + public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { String attribute = mapperModel.getConfig().get(ATTRIBUTE); String attributeValue = mapperModel.getConfig().get(ATTRIBUTE_VALUE); - user.setSingleAttribute(attribute, attributeValue); + context.setUserAttribute(attribute, attributeValue); } @Override diff --git a/broker/core/src/main/java/org/keycloak/broker/provider/HardcodedUserSessionAttributeMapper.java b/broker/core/src/main/java/org/keycloak/broker/provider/HardcodedUserSessionAttributeMapper.java index 676e6b1edf..656af4877a 100755 --- a/broker/core/src/main/java/org/keycloak/broker/provider/HardcodedUserSessionAttributeMapper.java +++ b/broker/core/src/main/java/org/keycloak/broker/provider/HardcodedUserSessionAttributeMapper.java @@ -67,7 +67,7 @@ public class HardcodedUserSessionAttributeMapper extends AbstractIdentityProvide } @Override - public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { + public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { String attribute = mapperModel.getConfig().get(ATTRIBUTE); String attributeValue = mapperModel.getConfig().get(ATTRIBUTE_VALUE); context.getClientSession().setUserSessionNote(attribute, attributeValue); diff --git a/broker/core/src/main/java/org/keycloak/broker/provider/IdentityProviderMapper.java b/broker/core/src/main/java/org/keycloak/broker/provider/IdentityProviderMapper.java index b76a6af777..7599fae25e 100755 --- a/broker/core/src/main/java/org/keycloak/broker/provider/IdentityProviderMapper.java +++ b/broker/core/src/main/java/org/keycloak/broker/provider/IdentityProviderMapper.java @@ -20,8 +20,10 @@ public interface IdentityProviderMapper extends Provider, ProviderFactory keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/AbstractJsonUserAttributeMapper.java b/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/AbstractJsonUserAttributeMapper.java index 4d2a4e2212..5d2147e055 100755 --- a/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/AbstractJsonUserAttributeMapper.java +++ b/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/AbstractJsonUserAttributeMapper.java @@ -69,8 +69,8 @@ public abstract class AbstractJsonUserAttributeMapper extends AbstractIdentityPr * @param user context to store profile data into * @param profile to store into context * @param provider identification of social provider to be used in log dump - * - * @see #importNewUser(KeycloakSession, RealmModel, UserModel, IdentityProviderMapperModel, BrokeredIdentityContext) + * + * @see #preprocessFederatedIdentity(KeycloakSession, RealmModel, IdentityProviderMapperModel, BrokeredIdentityContext) * @see BrokeredIdentityContext#getContextData() */ public static void storeUserProfileForMapper(BrokeredIdentityContext user, JsonNode profile, String provider) { @@ -100,17 +100,17 @@ public abstract class AbstractJsonUserAttributeMapper extends AbstractIdentityPr } @Override - public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { + public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { String attribute = mapperModel.getConfig().get(CONF_USER_ATTRIBUTE); if (attribute == null || attribute.trim().isEmpty()) { - logger.debug("Attribute is not configured"); + logger.warnf("Attribute is not configured for mapper %s", mapperModel.getName()); return; } attribute = attribute.trim(); String value = getJsonValue(mapperModel, context); if (value != null) { - user.setSingleAttribute(attribute, value); + context.setUserAttribute(attribute, value); } } @@ -123,13 +123,13 @@ public abstract class AbstractJsonUserAttributeMapper extends AbstractIdentityPr String jsonField = mapperModel.getConfig().get(CONF_JSON_FIELD); if (jsonField == null || jsonField.trim().isEmpty()) { - logger.debug("JSON field path is not configured"); + logger.warnf("JSON field path is not configured for mapper %s", mapperModel.getName()); return null; } jsonField = jsonField.trim(); if (jsonField.startsWith(JSON_PATH_DELIMITER) || jsonField.endsWith(JSON_PATH_DELIMITER) || jsonField.startsWith("[")) { - logger.debug("JSON field path is invalid " + jsonField); + logger.warnf("JSON field path is invalid %s", jsonField); return null; } @@ -138,7 +138,7 @@ public abstract class AbstractJsonUserAttributeMapper extends AbstractIdentityPr String value = getJsonValue(profileJsonNode, jsonField); if (value == null) { - logger.debug("User profile JSON value '" + jsonField + "' is not available."); + logger.debugf("User profile JSON value '%s' is not available.", jsonField); } return value; diff --git a/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/UserAttributeMapper.java b/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/UserAttributeMapper.java index b810f48549..659938826f 100755 --- a/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/UserAttributeMapper.java +++ b/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/UserAttributeMapper.java @@ -70,11 +70,11 @@ public class UserAttributeMapper extends AbstractClaimMapper { } @Override - public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { + public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { String attribute = mapperModel.getConfig().get(USER_ATTRIBUTE); Object value = getClaimValue(mapperModel, context); if (value != null) { - user.setSingleAttribute(attribute, value.toString()); + context.setUserAttribute(attribute, value.toString()); } } diff --git a/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/UsernameTemplateMapper.java b/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/UsernameTemplateMapper.java index d246086e2e..a3eafa9488 100755 --- a/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/UsernameTemplateMapper.java +++ b/broker/oidc/src/main/java/org/keycloak/broker/oidc/mappers/UsernameTemplateMapper.java @@ -65,10 +65,6 @@ public class UsernameTemplateMapper extends AbstractClaimMapper { return "Username Template Importer"; } - @Override - public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { - } - @Override public void updateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { } diff --git a/broker/pom.xml b/broker/pom.xml index 40e81f7974..7d877ed393 100755 --- a/broker/pom.xml +++ b/broker/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/broker/saml/pom.xml b/broker/saml/pom.xml index 21a00994f0..33d8068af6 100755 --- a/broker/saml/pom.xml +++ b/broker/saml/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/broker/saml/src/main/java/org/keycloak/broker/saml/mappers/UserAttributeMapper.java b/broker/saml/src/main/java/org/keycloak/broker/saml/mappers/UserAttributeMapper.java index 8d5ccf7532..a751b33095 100755 --- a/broker/saml/src/main/java/org/keycloak/broker/saml/mappers/UserAttributeMapper.java +++ b/broker/saml/src/main/java/org/keycloak/broker/saml/mappers/UserAttributeMapper.java @@ -80,11 +80,11 @@ public class UserAttributeMapper extends AbstractIdentityProviderMapper { } @Override - public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { + public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { String attribute = mapperModel.getConfig().get(USER_ATTRIBUTE); Object value = getAttribute(mapperModel, context); if (value != null) { - user.setSingleAttribute(attribute, value.toString()); + context.setUserAttribute(attribute, value.toString()); } } diff --git a/broker/saml/src/main/java/org/keycloak/broker/saml/mappers/UsernameTemplateMapper.java b/broker/saml/src/main/java/org/keycloak/broker/saml/mappers/UsernameTemplateMapper.java index 0a44e4b3ed..28aa00d267 100755 --- a/broker/saml/src/main/java/org/keycloak/broker/saml/mappers/UsernameTemplateMapper.java +++ b/broker/saml/src/main/java/org/keycloak/broker/saml/mappers/UsernameTemplateMapper.java @@ -71,11 +71,6 @@ public class UsernameTemplateMapper extends AbstractIdentityProviderMapper { return "Username Template Importer"; } - @Override - public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { - - } - @Override public void updateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) { diff --git a/client-registration/api/pom.xml b/client-registration/api/pom.xml index 30c911b14d..61495a660d 100755 --- a/client-registration/api/pom.xml +++ b/client-registration/api/pom.xml @@ -4,7 +4,7 @@ keycloak-client-registration-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/client-registration/pom.xml b/client-registration/pom.xml index 9d1ea9f5a9..ab8ee00729 100755 --- a/client-registration/pom.xml +++ b/client-registration/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Client Registration Parent diff --git a/common/pom.xml b/common/pom.xml index b608a8f87a..6a22f73a12 100755 --- a/common/pom.xml +++ b/common/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/connections/http-client/pom.xml b/connections/http-client/pom.xml index 64a3d7102c..f88ee65415 100755 --- a/connections/http-client/pom.xml +++ b/connections/http-client/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/connections/infinispan/pom.xml b/connections/infinispan/pom.xml index 706449a729..8082c27f59 100755 --- a/connections/infinispan/pom.xml +++ b/connections/infinispan/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/connections/jpa-liquibase/pom.xml b/connections/jpa-liquibase/pom.xml index 778fb27649..868edd6c25 100755 --- a/connections/jpa-liquibase/pom.xml +++ b/connections/jpa-liquibase/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/connections/jpa/pom.xml b/connections/jpa/pom.xml index 90aafd4458..0fac4555e3 100755 --- a/connections/jpa/pom.xml +++ b/connections/jpa/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/connections/mongo-update/pom.xml b/connections/mongo-update/pom.xml index f9ca6cd139..8ef58cc8f4 100755 --- a/connections/mongo-update/pom.xml +++ b/connections/mongo-update/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/connections/mongo/pom.xml b/connections/mongo/pom.xml index 66276e377e..c44bad0914 100755 --- a/connections/mongo/pom.xml +++ b/connections/mongo/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/connections/pom.xml b/connections/pom.xml index e74e99cfaa..b931994b52 100755 --- a/connections/pom.xml +++ b/connections/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Connections Parent diff --git a/core/pom.xml b/core/pom.xml index 2ea8d06d8a..9fd1b42053 100755 --- a/core/pom.xml +++ b/core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/dependencies/pom.xml b/dependencies/pom.xml index 831eea65aa..b252103a6a 100755 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/dependencies/server-all/pom.xml b/dependencies/server-all/pom.xml index ad786a3cc0..45b2e6d634 100755 --- a/dependencies/server-all/pom.xml +++ b/dependencies/server-all/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/dependencies/server-min/pom.xml b/dependencies/server-min/pom.xml index 40ab2acbfc..019e73c518 100755 --- a/dependencies/server-min/pom.xml +++ b/dependencies/server-min/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/distribution/adapters/as7-eap6-adapter/as7-adapter-zip/pom.xml b/distribution/adapters/as7-eap6-adapter/as7-adapter-zip/pom.xml index 48d47a624e..74fdf39b97 100755 --- a/distribution/adapters/as7-eap6-adapter/as7-adapter-zip/pom.xml +++ b/distribution/adapters/as7-eap6-adapter/as7-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/adapters/as7-eap6-adapter/as7-modules/pom.xml b/distribution/adapters/as7-eap6-adapter/as7-modules/pom.xml index e8116604c7..fe74c73936 100755 --- a/distribution/adapters/as7-eap6-adapter/as7-modules/pom.xml +++ b/distribution/adapters/as7-eap6-adapter/as7-modules/pom.xml @@ -8,7 +8,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml b/distribution/adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml index 84ce5f8819..f7de9479ab 100755 --- a/distribution/adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml +++ b/distribution/adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/adapters/as7-eap6-adapter/pom.xml b/distribution/adapters/as7-eap6-adapter/pom.xml index 991499c14a..939da816b1 100644 --- a/distribution/adapters/as7-eap6-adapter/pom.xml +++ b/distribution/adapters/as7-eap6-adapter/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak AS7 / JBoss EAP 6 Adapter Distros diff --git a/distribution/adapters/jetty81-adapter-zip/pom.xml b/distribution/adapters/jetty81-adapter-zip/pom.xml index 887e91fa13..39ef906899 100755 --- a/distribution/adapters/jetty81-adapter-zip/pom.xml +++ b/distribution/adapters/jetty81-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/adapters/jetty91-adapter-zip/pom.xml b/distribution/adapters/jetty91-adapter-zip/pom.xml index 029be65096..0d9d13a59a 100755 --- a/distribution/adapters/jetty91-adapter-zip/pom.xml +++ b/distribution/adapters/jetty91-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/adapters/jetty92-adapter-zip/pom.xml b/distribution/adapters/jetty92-adapter-zip/pom.xml index 486c89aa24..dfaf5b9f84 100755 --- a/distribution/adapters/jetty92-adapter-zip/pom.xml +++ b/distribution/adapters/jetty92-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/adapters/js-adapter-zip/pom.xml b/distribution/adapters/js-adapter-zip/pom.xml index 174a57f953..7ff1273bc5 100755 --- a/distribution/adapters/js-adapter-zip/pom.xml +++ b/distribution/adapters/js-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/adapters/osgi/features/pom.xml b/distribution/adapters/osgi/features/pom.xml index 6724e7f67c..7dfcee170b 100755 --- a/distribution/adapters/osgi/features/pom.xml +++ b/distribution/adapters/osgi/features/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml Keycloak OSGI Features diff --git a/distribution/adapters/osgi/jaas/pom.xml b/distribution/adapters/osgi/jaas/pom.xml index f1462e380a..99d9c75ce2 100755 --- a/distribution/adapters/osgi/jaas/pom.xml +++ b/distribution/adapters/osgi/jaas/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml Keycloak OSGI JAAS Realm Configuration diff --git a/distribution/adapters/osgi/pom.xml b/distribution/adapters/osgi/pom.xml index 7d55ac4ef9..427ffbd16d 100755 --- a/distribution/adapters/osgi/pom.xml +++ b/distribution/adapters/osgi/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak OSGI Integration diff --git a/distribution/adapters/osgi/thirdparty/pom.xml b/distribution/adapters/osgi/thirdparty/pom.xml index a4df9e45f5..6610e326d0 100755 --- a/distribution/adapters/osgi/thirdparty/pom.xml +++ b/distribution/adapters/osgi/thirdparty/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/adapters/pom.xml b/distribution/adapters/pom.xml index d13d99276d..1ba889f5d5 100755 --- a/distribution/adapters/pom.xml +++ b/distribution/adapters/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/distribution/adapters/tomcat6-adapter-zip/pom.xml b/distribution/adapters/tomcat6-adapter-zip/pom.xml index 3117cea1f2..6c80d2faf3 100755 --- a/distribution/adapters/tomcat6-adapter-zip/pom.xml +++ b/distribution/adapters/tomcat6-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/adapters/tomcat7-adapter-zip/pom.xml b/distribution/adapters/tomcat7-adapter-zip/pom.xml index feedfe74fc..ae5c3724ff 100755 --- a/distribution/adapters/tomcat7-adapter-zip/pom.xml +++ b/distribution/adapters/tomcat7-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/adapters/tomcat8-adapter-zip/pom.xml b/distribution/adapters/tomcat8-adapter-zip/pom.xml index 218bd1d671..8666befeaa 100755 --- a/distribution/adapters/tomcat8-adapter-zip/pom.xml +++ b/distribution/adapters/tomcat8-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/adapters/wf8-adapter/pom.xml b/distribution/adapters/wf8-adapter/pom.xml index aba5df4c6d..89d1ffeee4 100644 --- a/distribution/adapters/wf8-adapter/pom.xml +++ b/distribution/adapters/wf8-adapter/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak Wildfly 8 Adapter diff --git a/distribution/adapters/wf8-adapter/wf8-adapter-zip/pom.xml b/distribution/adapters/wf8-adapter/wf8-adapter-zip/pom.xml index 21aee9140f..9bda40241a 100755 --- a/distribution/adapters/wf8-adapter/wf8-adapter-zip/pom.xml +++ b/distribution/adapters/wf8-adapter/wf8-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/adapters/wf8-adapter/wf8-modules/pom.xml b/distribution/adapters/wf8-adapter/wf8-modules/pom.xml index 9d8ef6ee85..12b8c726a9 100755 --- a/distribution/adapters/wf8-adapter/wf8-modules/pom.xml +++ b/distribution/adapters/wf8-adapter/wf8-modules/pom.xml @@ -8,7 +8,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/adapters/wildfly-adapter/pom.xml b/distribution/adapters/wildfly-adapter/pom.xml index 71a09c7e29..203281171a 100644 --- a/distribution/adapters/wildfly-adapter/pom.xml +++ b/distribution/adapters/wildfly-adapter/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak Wildfly Adapter diff --git a/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml b/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml index f3202b85b5..fc5c1da4c6 100755 --- a/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml +++ b/distribution/adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/adapters/wildfly-adapter/wildfly-modules/pom.xml b/distribution/adapters/wildfly-adapter/wildfly-modules/pom.xml index 79ed20274d..ba3ca889b2 100755 --- a/distribution/adapters/wildfly-adapter/wildfly-modules/pom.xml +++ b/distribution/adapters/wildfly-adapter/wildfly-modules/pom.xml @@ -8,7 +8,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/demo-dist/pom.xml b/distribution/demo-dist/pom.xml index 2caeb2b515..3df981d3a4 100755 --- a/distribution/demo-dist/pom.xml +++ b/distribution/demo-dist/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/distribution/docs-dist/pom.xml b/distribution/docs-dist/pom.xml index 46205db500..072e80841b 100755 --- a/distribution/docs-dist/pom.xml +++ b/distribution/docs-dist/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/distribution/downloads/pom.xml b/distribution/downloads/pom.xml index b742897594..c43f2e27c0 100755 --- a/distribution/downloads/pom.xml +++ b/distribution/downloads/pom.xml @@ -4,7 +4,7 @@ org.keycloak distribution-pom - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT keycloak-dist-downloads diff --git a/distribution/examples-dist/pom.xml b/distribution/examples-dist/pom.xml index a92bb60438..43e239648d 100755 --- a/distribution/examples-dist/pom.xml +++ b/distribution/examples-dist/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/distribution/feature-packs/adapter-feature-pack/pom.xml b/distribution/feature-packs/adapter-feature-pack/pom.xml index 8fe0163b85..c88339f208 100755 --- a/distribution/feature-packs/adapter-feature-pack/pom.xml +++ b/distribution/feature-packs/adapter-feature-pack/pom.xml @@ -20,7 +20,7 @@ org.keycloak feature-packs-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/distribution/feature-packs/pom.xml b/distribution/feature-packs/pom.xml index 6a2788a934..b44d775391 100644 --- a/distribution/feature-packs/pom.xml +++ b/distribution/feature-packs/pom.xml @@ -3,7 +3,7 @@ distribution-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml Feature Pack Builds diff --git a/distribution/feature-packs/server-feature-pack/pom.xml b/distribution/feature-packs/server-feature-pack/pom.xml index 6f05056bf9..19c3334108 100644 --- a/distribution/feature-packs/server-feature-pack/pom.xml +++ b/distribution/feature-packs/server-feature-pack/pom.xml @@ -20,7 +20,7 @@ org.keycloak feature-packs-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/base/org/keycloak/keycloak-email-freemarker/main/module.xml b/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/base/org/keycloak/keycloak-email-freemarker/main/module.xml index d569144bab..f606f3daca 100755 --- a/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/base/org/keycloak/keycloak-email-freemarker/main/module.xml +++ b/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/base/org/keycloak/keycloak-email-freemarker/main/module.xml @@ -15,7 +15,6 @@ - diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/base/org/keycloak/keycloak-services/main/module.xml b/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/base/org/keycloak/keycloak-services/main/module.xml index 340c3bff4c..927b03fdf4 100755 --- a/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/base/org/keycloak/keycloak-services/main/module.xml +++ b/distribution/feature-packs/server-feature-pack/src/main/resources/modules/system/layers/base/org/keycloak/keycloak-services/main/module.xml @@ -58,6 +58,7 @@ + diff --git a/distribution/pom.xml b/distribution/pom.xml index 9499ae9b57..069713cdc1 100755 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml diff --git a/distribution/proxy-dist/pom.xml b/distribution/proxy-dist/pom.xml index 4e92eadb8d..82967cc2e3 100755 --- a/distribution/proxy-dist/pom.xml +++ b/distribution/proxy-dist/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/distribution/saml-adapters/as7-eap6-adapter/as7-adapter-zip/pom.xml b/distribution/saml-adapters/as7-eap6-adapter/as7-adapter-zip/pom.xml index aa9a357075..8c154d7c3f 100755 --- a/distribution/saml-adapters/as7-eap6-adapter/as7-adapter-zip/pom.xml +++ b/distribution/saml-adapters/as7-eap6-adapter/as7-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/saml-adapters/as7-eap6-adapter/as7-modules/pom.xml b/distribution/saml-adapters/as7-eap6-adapter/as7-modules/pom.xml index 688e685e43..88fc2c76b3 100755 --- a/distribution/saml-adapters/as7-eap6-adapter/as7-modules/pom.xml +++ b/distribution/saml-adapters/as7-eap6-adapter/as7-modules/pom.xml @@ -8,7 +8,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/saml-adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml b/distribution/saml-adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml index 978a86df5c..bbaefaf543 100755 --- a/distribution/saml-adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml +++ b/distribution/saml-adapters/as7-eap6-adapter/eap6-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/saml-adapters/as7-eap6-adapter/pom.xml b/distribution/saml-adapters/as7-eap6-adapter/pom.xml index 8c3626c87c..0d139dc5a7 100755 --- a/distribution/saml-adapters/as7-eap6-adapter/pom.xml +++ b/distribution/saml-adapters/as7-eap6-adapter/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak SAML AS7 / JBoss EAP 6 Adapter Distros diff --git a/distribution/saml-adapters/jetty81-adapter-zip/pom.xml b/distribution/saml-adapters/jetty81-adapter-zip/pom.xml index bd4acb9e06..e823474f58 100755 --- a/distribution/saml-adapters/jetty81-adapter-zip/pom.xml +++ b/distribution/saml-adapters/jetty81-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/saml-adapters/jetty92-adapter-zip/pom.xml b/distribution/saml-adapters/jetty92-adapter-zip/pom.xml index 391dd78385..5c0fbdc454 100755 --- a/distribution/saml-adapters/jetty92-adapter-zip/pom.xml +++ b/distribution/saml-adapters/jetty92-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/saml-adapters/pom.xml b/distribution/saml-adapters/pom.xml index ea95663b13..a7c6e9c9b3 100755 --- a/distribution/saml-adapters/pom.xml +++ b/distribution/saml-adapters/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/distribution/saml-adapters/tomcat6-adapter-zip/pom.xml b/distribution/saml-adapters/tomcat6-adapter-zip/pom.xml index 62e0112d5d..957ec2372d 100755 --- a/distribution/saml-adapters/tomcat6-adapter-zip/pom.xml +++ b/distribution/saml-adapters/tomcat6-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/saml-adapters/tomcat7-adapter-zip/pom.xml b/distribution/saml-adapters/tomcat7-adapter-zip/pom.xml index d592ab99e1..60c7821750 100755 --- a/distribution/saml-adapters/tomcat7-adapter-zip/pom.xml +++ b/distribution/saml-adapters/tomcat7-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/saml-adapters/tomcat8-adapter-zip/pom.xml b/distribution/saml-adapters/tomcat8-adapter-zip/pom.xml index bd51903d66..cbe35cfc5c 100755 --- a/distribution/saml-adapters/tomcat8-adapter-zip/pom.xml +++ b/distribution/saml-adapters/tomcat8-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/saml-adapters/wildfly-adapter/pom.xml b/distribution/saml-adapters/wildfly-adapter/pom.xml index 689bcc087f..6e2fc5e2e2 100755 --- a/distribution/saml-adapters/wildfly-adapter/pom.xml +++ b/distribution/saml-adapters/wildfly-adapter/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak Wildfly SAML Adapter diff --git a/distribution/saml-adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml b/distribution/saml-adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml index 1dd7224cdc..7fba50cb08 100755 --- a/distribution/saml-adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml +++ b/distribution/saml-adapters/wildfly-adapter/wildfly-adapter-zip/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/saml-adapters/wildfly-adapter/wildfly-modules/pom.xml b/distribution/saml-adapters/wildfly-adapter/wildfly-modules/pom.xml index 80f06a0a77..d9f5da236f 100755 --- a/distribution/saml-adapters/wildfly-adapter/wildfly-modules/pom.xml +++ b/distribution/saml-adapters/wildfly-adapter/wildfly-modules/pom.xml @@ -8,7 +8,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/server-dist/pom.xml b/distribution/server-dist/pom.xml index 40b60e1142..421fd3504b 100755 --- a/distribution/server-dist/pom.xml +++ b/distribution/server-dist/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/distribution/server-overlay/eap6/eap6-server-modules/pom.xml b/distribution/server-overlay/eap6/eap6-server-modules/pom.xml index 1d5d272749..9fd0ca74c6 100755 --- a/distribution/server-overlay/eap6/eap6-server-modules/pom.xml +++ b/distribution/server-overlay/eap6/eap6-server-modules/pom.xml @@ -8,7 +8,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/server-overlay/eap6/eap6-server-modules/src/main/resources/modules/org/keycloak/keycloak-email-freemarker/main/module.xml b/distribution/server-overlay/eap6/eap6-server-modules/src/main/resources/modules/org/keycloak/keycloak-email-freemarker/main/module.xml index a8e960ced8..f73c701cd9 100755 --- a/distribution/server-overlay/eap6/eap6-server-modules/src/main/resources/modules/org/keycloak/keycloak-email-freemarker/main/module.xml +++ b/distribution/server-overlay/eap6/eap6-server-modules/src/main/resources/modules/org/keycloak/keycloak-email-freemarker/main/module.xml @@ -15,7 +15,6 @@ - diff --git a/distribution/server-overlay/eap6/eap6-server-modules/src/main/resources/modules/org/keycloak/keycloak-services/main/module.xml b/distribution/server-overlay/eap6/eap6-server-modules/src/main/resources/modules/org/keycloak/keycloak-services/main/module.xml index aa895e8b66..56f2537006 100755 --- a/distribution/server-overlay/eap6/eap6-server-modules/src/main/resources/modules/org/keycloak/keycloak-services/main/module.xml +++ b/distribution/server-overlay/eap6/eap6-server-modules/src/main/resources/modules/org/keycloak/keycloak-services/main/module.xml @@ -59,6 +59,7 @@ + diff --git a/distribution/server-overlay/eap6/eap6-server-overlay/pom.xml b/distribution/server-overlay/eap6/eap6-server-overlay/pom.xml index 09f494a9fe..9fe50182ae 100755 --- a/distribution/server-overlay/eap6/eap6-server-overlay/pom.xml +++ b/distribution/server-overlay/eap6/eap6-server-overlay/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/distribution/server-overlay/eap6/pom.xml b/distribution/server-overlay/eap6/pom.xml index f873b44052..01d5142386 100755 --- a/distribution/server-overlay/eap6/pom.xml +++ b/distribution/server-overlay/eap6/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/server-overlay/pom.xml b/distribution/server-overlay/pom.xml index 769b0ac5fa..8d89c1385a 100755 --- a/distribution/server-overlay/pom.xml +++ b/distribution/server-overlay/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/distribution/server-overlay/wf9-server-overlay/assembly.xml b/distribution/server-overlay/wf9-server-overlay/assembly.xml index 5b96e2d1c4..d24a0bc0e1 100755 --- a/distribution/server-overlay/wf9-server-overlay/assembly.xml +++ b/distribution/server-overlay/wf9-server-overlay/assembly.xml @@ -15,7 +15,7 @@ com/google/zxing/** org/freemarker/** - org/jboss/aesh/** + org/jboss/aesh/0.65/** org/keycloak/** org/liquibase/** org/mongodb/** diff --git a/distribution/server-overlay/wf9-server-overlay/pom.xml b/distribution/server-overlay/wf9-server-overlay/pom.xml index 7280f2b315..a8753edd5d 100755 --- a/distribution/server-overlay/wf9-server-overlay/pom.xml +++ b/distribution/server-overlay/wf9-server-overlay/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/distribution/src-dist/pom.xml b/distribution/src-dist/pom.xml index 5cff49baed..e46b9d49b3 100755 --- a/distribution/src-dist/pom.xml +++ b/distribution/src-dist/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml diff --git a/docbook/auth-server-docs/pom.xml b/docbook/auth-server-docs/pom.xml index 546b18d5e6..5bf8bdaf2a 100755 --- a/docbook/auth-server-docs/pom.xml +++ b/docbook/auth-server-docs/pom.xml @@ -4,7 +4,7 @@ keycloak-docbook-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml b/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml index dc0b6a15fc..5ab29ecbc6 100755 --- a/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml +++ b/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml @@ -120,6 +120,16 @@ the various HTTP error codes. See documentation for more details if you want to catch and handle adapter error conditions. + + IdentityProviderMapper changes + + There is no change in the interface itself or method signatures. However there is some change in behaviour. We added First Broker Login flow + in this release and the method IdentityProviderMapper.importNewUser is now called after First Broker Login flow is finished. + So if you want to have any attribute available in Review Profile page, you would need to use + the method preprocessFederatedIdentity instead of importNewUser . You can set any attribute by + invoke BrokeredIdentityContext.setUserAttribute and that will be available on Review profile page. + +
Migrating to 1.6.0.Final diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/auth-spi.xml b/docbook/auth-server-docs/reference/en/en-US/modules/auth-spi.xml index 12e2b1ac78..dff6f25fc8 100755 --- a/docbook/auth-server-docs/reference/en/en-US/modules/auth-spi.xml +++ b/docbook/auth-server-docs/reference/en/en-US/modules/auth-spi.xml @@ -802,7 +802,7 @@ public class SecretQuestionRequiredActionFactory implements RequiredActionFactor
Packaging the Action - You will package your classes within a single jar. This jar must contain a file named org.keycloak.authentication.ForActionFactory + You will package your classes within a single jar. This jar must contain a file named org.keycloak.authentication.FormActionFactory and must be contained in the META-INF/services/ directory of your jar. This file must list the fully qualified classname of each FormActionFactory implementation you have in the jar. For example: diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/javascript-adapter.xml b/docbook/auth-server-docs/reference/en/en-US/modules/javascript-adapter.xml index e0d78f3e88..ab7896d7c4 100755 --- a/docbook/auth-server-docs/reference/en/en-US/modules/javascript-adapter.xml +++ b/docbook/auth-server-docs/reference/en/en-US/modules/javascript-adapter.xml @@ -164,9 +164,12 @@ keycloak.init({ flow: 'implicit' }) Keycloak also have support for OpenID Connect Hybrid flow. This requires that client in admin console has both flags Standard Flow Enabled and Implicit Flow Enabled enabled in admin console. The Keycloak will send both the code and tokens to your application. Access token can be immediately used and in the meantime, code can be exchanged for access token and refresh token. - Hybrid flow is good for performance similarly like implicit flow, because access token is available. But similarly like implicit flow, the token is sent in URL fragment, so security may not be so good. - In addition to implicit flow, you have also refresh token available in your application. For hybrid flow, you need to pass the parameter - flow with value hybrid to init method. + Hybrid flow is good for performance similarly like implicit flow, because access token is available immediatelly to your application. But similarly like implicit flow, the token is + sent in URL fragment, so security may not be so good. + One advantage over implicit flow is, that you have also refresh token available in your application (after code-to-token request is finished in background). + + + For hybrid flow, you need to pass the parameter flow with value hybrid to init method.
diff --git a/docbook/pom.xml b/docbook/pom.xml index 4416cb5342..991a949113 100755 --- a/docbook/pom.xml +++ b/docbook/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml Keycloak Documentation diff --git a/docbook/saml-adapter-docs/pom.xml b/docbook/saml-adapter-docs/pom.xml index 975ac5cd48..7467c4eeca 100755 --- a/docbook/saml-adapter-docs/pom.xml +++ b/docbook/saml-adapter-docs/pom.xml @@ -4,7 +4,7 @@ keycloak-docbook-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml diff --git a/events/api/pom.xml b/events/api/pom.xml index 105936e12c..f11eeda88b 100755 --- a/events/api/pom.xml +++ b/events/api/pom.xml @@ -3,7 +3,7 @@ keycloak-events-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/events/email/pom.xml b/events/email/pom.xml index 01b6affbb5..648f384ba2 100755 --- a/events/email/pom.xml +++ b/events/email/pom.xml @@ -3,7 +3,7 @@ keycloak-events-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/events/jboss-logging/pom.xml b/events/jboss-logging/pom.xml index c2093e7c8e..dadc2745e7 100755 --- a/events/jboss-logging/pom.xml +++ b/events/jboss-logging/pom.xml @@ -3,7 +3,7 @@ keycloak-events-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/events/jpa/pom.xml b/events/jpa/pom.xml index a7eeae11a3..f2da93dadc 100755 --- a/events/jpa/pom.xml +++ b/events/jpa/pom.xml @@ -3,7 +3,7 @@ keycloak-events-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/events/mongo/pom.xml b/events/mongo/pom.xml index eab933d93e..398ca75c06 100755 --- a/events/mongo/pom.xml +++ b/events/mongo/pom.xml @@ -3,7 +3,7 @@ keycloak-events-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/events/pom.xml b/events/pom.xml index d218f4b21a..dd403db097 100755 --- a/events/pom.xml +++ b/events/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml diff --git a/events/syslog/pom.xml b/events/syslog/pom.xml index 8ce7068aed..bc891fba4d 100755 --- a/events/syslog/pom.xml +++ b/events/syslog/pom.xml @@ -3,7 +3,7 @@ keycloak-events-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/admin-client/pom.xml b/examples/admin-client/pom.xml index 112c0cc043..d1ca420ede 100755 --- a/examples/admin-client/pom.xml +++ b/examples/admin-client/pom.xml @@ -5,7 +5,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Examples - Admin Client diff --git a/examples/basic-auth/pom.xml b/examples/basic-auth/pom.xml index 1b05f2a108..25a838f88c 100755 --- a/examples/basic-auth/pom.xml +++ b/examples/basic-auth/pom.xml @@ -6,7 +6,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Examples - Basic Auth diff --git a/examples/broker/facebook-authentication/pom.xml b/examples/broker/facebook-authentication/pom.xml index 2bf6f2ce79..aae135fe2a 100755 --- a/examples/broker/facebook-authentication/pom.xml +++ b/examples/broker/facebook-authentication/pom.xml @@ -6,7 +6,7 @@ keycloak-examples-broker-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Broker Examples - Facebook Authentication diff --git a/examples/broker/google-authentication/pom.xml b/examples/broker/google-authentication/pom.xml index 124a0153ba..445340f546 100755 --- a/examples/broker/google-authentication/pom.xml +++ b/examples/broker/google-authentication/pom.xml @@ -6,7 +6,7 @@ keycloak-examples-broker-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Broker Examples - Google Authentication diff --git a/examples/broker/pom.xml b/examples/broker/pom.xml index bd9ae44d00..005336319a 100755 --- a/examples/broker/pom.xml +++ b/examples/broker/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Broker Examples diff --git a/examples/broker/saml-broker-authentication/pom.xml b/examples/broker/saml-broker-authentication/pom.xml index 8fcf95b10e..d67653c008 100755 --- a/examples/broker/saml-broker-authentication/pom.xml +++ b/examples/broker/saml-broker-authentication/pom.xml @@ -6,7 +6,7 @@ keycloak-examples-broker-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Broker Examples - SAML Identity Provider Brokering diff --git a/examples/broker/twitter-authentication/pom.xml b/examples/broker/twitter-authentication/pom.xml index 3099f08082..680b95a422 100755 --- a/examples/broker/twitter-authentication/pom.xml +++ b/examples/broker/twitter-authentication/pom.xml @@ -6,7 +6,7 @@ keycloak-examples-broker-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Broker Examples - Twitter Authentication diff --git a/examples/cors/angular-product-app/pom.xml b/examples/cors/angular-product-app/pom.xml index 9b87a0925e..9a05680893 100755 --- a/examples/cors/angular-product-app/pom.xml +++ b/examples/cors/angular-product-app/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-cors-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/cors/database-service/pom.xml b/examples/cors/database-service/pom.xml index 65744b0cec..647d9850f9 100755 --- a/examples/cors/database-service/pom.xml +++ b/examples/cors/database-service/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-cors-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/cors/pom.xml b/examples/cors/pom.xml index aba79f4a1d..17e46a732a 100755 --- a/examples/cors/pom.xml +++ b/examples/cors/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Examples - CORS diff --git a/examples/demo-template/admin-access-app/pom.xml b/examples/demo-template/admin-access-app/pom.xml index 284677cd6f..ed8847b85e 100755 --- a/examples/demo-template/admin-access-app/pom.xml +++ b/examples/demo-template/admin-access-app/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/angular-product-app/pom.xml b/examples/demo-template/angular-product-app/pom.xml index 9a0f71aff7..1d78f7abc1 100755 --- a/examples/demo-template/angular-product-app/pom.xml +++ b/examples/demo-template/angular-product-app/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/customer-app-cli/pom.xml b/examples/demo-template/customer-app-cli/pom.xml index d207f1fbd6..a367f13ff3 100755 --- a/examples/demo-template/customer-app-cli/pom.xml +++ b/examples/demo-template/customer-app-cli/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/customer-app-js/pom.xml b/examples/demo-template/customer-app-js/pom.xml index a0d2b2cad6..a278d20887 100755 --- a/examples/demo-template/customer-app-js/pom.xml +++ b/examples/demo-template/customer-app-js/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/customer-app/pom.xml b/examples/demo-template/customer-app/pom.xml index 80fdc17c1c..6a0b86bf63 100755 --- a/examples/demo-template/customer-app/pom.xml +++ b/examples/demo-template/customer-app/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/database-service/pom.xml b/examples/demo-template/database-service/pom.xml index 291d38bff0..09203b2e21 100755 --- a/examples/demo-template/database-service/pom.xml +++ b/examples/demo-template/database-service/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/example-ear/pom.xml b/examples/demo-template/example-ear/pom.xml index 1e6ac3d1fb..180e3735ba 100755 --- a/examples/demo-template/example-ear/pom.xml +++ b/examples/demo-template/example-ear/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/offline-access-app/pom.xml b/examples/demo-template/offline-access-app/pom.xml index 32e3da912d..66dbe0a697 100644 --- a/examples/demo-template/offline-access-app/pom.xml +++ b/examples/demo-template/offline-access-app/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/pom.xml b/examples/demo-template/pom.xml index 32528a29d3..6124206459 100755 --- a/examples/demo-template/pom.xml +++ b/examples/demo-template/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Examples diff --git a/examples/demo-template/product-app/pom.xml b/examples/demo-template/product-app/pom.xml index ae0372b79f..9c274de6a2 100755 --- a/examples/demo-template/product-app/pom.xml +++ b/examples/demo-template/product-app/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/service-account/pom.xml b/examples/demo-template/service-account/pom.xml index e4e7d68d93..97e96f78e1 100644 --- a/examples/demo-template/service-account/pom.xml +++ b/examples/demo-template/service-account/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/third-party-cdi/pom.xml b/examples/demo-template/third-party-cdi/pom.xml index 44c8005597..298d811d4f 100755 --- a/examples/demo-template/third-party-cdi/pom.xml +++ b/examples/demo-template/third-party-cdi/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/demo-template/third-party/pom.xml b/examples/demo-template/third-party/pom.xml index 7d76c6249a..fd43af8239 100755 --- a/examples/demo-template/third-party/pom.xml +++ b/examples/demo-template/third-party/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-demo-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/fuse/camel/pom.xml b/examples/fuse/camel/pom.xml index fa17c0e20c..7c8bd4c177 100755 --- a/examples/fuse/camel/pom.xml +++ b/examples/fuse/camel/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-fuse-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/fuse/customer-app-fuse/pom.xml b/examples/fuse/customer-app-fuse/pom.xml index b76b6c1bc0..84bdd8dc4d 100755 --- a/examples/fuse/customer-app-fuse/pom.xml +++ b/examples/fuse/customer-app-fuse/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-fuse-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/fuse/cxf-jaxrs/pom.xml b/examples/fuse/cxf-jaxrs/pom.xml index 408bb40eb1..1bfecfd9e6 100755 --- a/examples/fuse/cxf-jaxrs/pom.xml +++ b/examples/fuse/cxf-jaxrs/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-fuse-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/fuse/cxf-jaxws/pom.xml b/examples/fuse/cxf-jaxws/pom.xml index 839a9ae7da..d5f9fbae92 100755 --- a/examples/fuse/cxf-jaxws/pom.xml +++ b/examples/fuse/cxf-jaxws/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-fuse-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/fuse/features/pom.xml b/examples/fuse/features/pom.xml index 990f282460..5060f049be 100755 --- a/examples/fuse/features/pom.xml +++ b/examples/fuse/features/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-fuse-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/fuse/pom.xml b/examples/fuse/pom.xml index 39ccc64346..f826724b79 100755 --- a/examples/fuse/pom.xml +++ b/examples/fuse/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Fuse examples diff --git a/examples/fuse/product-app-fuse/pom.xml b/examples/fuse/product-app-fuse/pom.xml index 032c840d07..2f872228a3 100755 --- a/examples/fuse/product-app-fuse/pom.xml +++ b/examples/fuse/product-app-fuse/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-fuse-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/js-console/pom.xml b/examples/js-console/pom.xml index 0574952724..94158d2f45 100755 --- a/examples/js-console/pom.xml +++ b/examples/js-console/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/kerberos/kerberosrealm.json b/examples/kerberos/kerberosrealm.json index 95d612bb13..36a3113ba4 100644 --- a/examples/kerberos/kerberosrealm.json +++ b/examples/kerberos/kerberosrealm.json @@ -71,7 +71,6 @@ "changedSyncPeriod": -1, "config": { "syncRegistrations" : "false", - "userAccountControlsAfterPasswordUpdate" : "true", "connectionPooling" : "true", "pagination" : "true", "allowKerberosAuthentication" : "true", @@ -79,13 +78,16 @@ "editMode" : "WRITABLE", "vendor" : "other", "usernameLDAPAttribute" : "uid", + "rdnLDAPAttribute" : "uid", + "uuidLDAPAttribute" : "entryUUID", "userObjectClasses" : "inetOrgPerson, organizationalPerson", "connectionUrl" : "ldap://localhost:10389", - "userDnSuffix" : "ou=People,dc=keycloak,dc=org", + "usersDn" : "ou=People,dc=keycloak,dc=org", "bindDn" : "uid=admin,ou=system", "bindCredential" : "secret", "kerberosRealm" : "KEYCLOAK.ORG", "serverPrincipal" : "HTTP/localhost@KEYCLOAK.ORG", + "useKerberosForPasswordAuthentication": "true", "keyTab" : "http.keytab" } } diff --git a/examples/kerberos/pom.xml b/examples/kerberos/pom.xml index 78181d30a9..e6d77dfa1e 100755 --- a/examples/kerberos/pom.xml +++ b/examples/kerberos/pom.xml @@ -5,7 +5,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Examples - Kerberos Credential Delegation diff --git a/examples/ldap/pom.xml b/examples/ldap/pom.xml index 1596f699f5..ab1a02b954 100644 --- a/examples/ldap/pom.xml +++ b/examples/ldap/pom.xml @@ -5,7 +5,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/examples/multi-tenant/pom.xml b/examples/multi-tenant/pom.xml index da6d022b0b..39db28dfec 100755 --- a/examples/multi-tenant/pom.xml +++ b/examples/multi-tenant/pom.xml @@ -4,7 +4,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak Examples - Multi Tenant diff --git a/examples/pom.xml b/examples/pom.xml index 6423a7c018..365c4f949c 100755 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Examples diff --git a/examples/providers/authenticator/pom.xml b/examples/providers/authenticator/pom.xml index f6c0205317..03a0adf024 100755 --- a/examples/providers/authenticator/pom.xml +++ b/examples/providers/authenticator/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-providers-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Authenticator Example diff --git a/examples/providers/event-listener-sysout/pom.xml b/examples/providers/event-listener-sysout/pom.xml index ddbcecd15c..6396a5100f 100755 --- a/examples/providers/event-listener-sysout/pom.xml +++ b/examples/providers/event-listener-sysout/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-providers-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Event Listener System.out Example diff --git a/examples/providers/event-store-mem/pom.xml b/examples/providers/event-store-mem/pom.xml index b565b068a4..db2c27d12a 100755 --- a/examples/providers/event-store-mem/pom.xml +++ b/examples/providers/event-store-mem/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-providers-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Event Store In-Mem Example diff --git a/examples/providers/federation-provider/pom.xml b/examples/providers/federation-provider/pom.xml index e65cff22e7..f91695eeb3 100755 --- a/examples/providers/federation-provider/pom.xml +++ b/examples/providers/federation-provider/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-providers-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Properties Authentication Provider Example diff --git a/examples/providers/pom.xml b/examples/providers/pom.xml index 570294d5ac..e112d21864 100755 --- a/examples/providers/pom.xml +++ b/examples/providers/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Provider Examples diff --git a/examples/saml/pom.xml b/examples/saml/pom.xml index 78b4b1dc5d..e056348037 100755 --- a/examples/saml/pom.xml +++ b/examples/saml/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Provider Examples diff --git a/examples/saml/post-with-encryption/pom.xml b/examples/saml/post-with-encryption/pom.xml index 090f6afc0e..df15da9e3b 100755 --- a/examples/saml/post-with-encryption/pom.xml +++ b/examples/saml/post-with-encryption/pom.xml @@ -5,7 +5,7 @@ keycloak-examples-saml-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT saml-post-encryption diff --git a/examples/saml/post-with-signature/pom.xml b/examples/saml/post-with-signature/pom.xml index 14db058a9b..9720686338 100755 --- a/examples/saml/post-with-signature/pom.xml +++ b/examples/saml/post-with-signature/pom.xml @@ -5,7 +5,7 @@ keycloak-examples-saml-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT saml-post-signatures diff --git a/examples/saml/redirect-with-signature/pom.xml b/examples/saml/redirect-with-signature/pom.xml index 06a4e55d5e..f806d42068 100755 --- a/examples/saml/redirect-with-signature/pom.xml +++ b/examples/saml/redirect-with-signature/pom.xml @@ -5,7 +5,7 @@ keycloak-examples-saml-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT saml-redirect-signatures diff --git a/examples/themes/pom.xml b/examples/themes/pom.xml index cc0a399921..e1e285433d 100755 --- a/examples/themes/pom.xml +++ b/examples/themes/pom.xml @@ -3,7 +3,7 @@ keycloak-examples-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Themes Examples diff --git a/export-import/export-import-api/pom.xml b/export-import/export-import-api/pom.xml index f2cf1b80df..e9f48e6280 100755 --- a/export-import/export-import-api/pom.xml +++ b/export-import/export-import-api/pom.xml @@ -4,7 +4,7 @@ keycloak-export-import-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/export-import/export-import-dir/pom.xml b/export-import/export-import-dir/pom.xml index 9760c5a057..03f9eda701 100755 --- a/export-import/export-import-dir/pom.xml +++ b/export-import/export-import-dir/pom.xml @@ -4,7 +4,7 @@ keycloak-export-import-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/export-import/export-import-single-file/pom.xml b/export-import/export-import-single-file/pom.xml index a5a6b20eec..41b3072999 100755 --- a/export-import/export-import-single-file/pom.xml +++ b/export-import/export-import-single-file/pom.xml @@ -4,7 +4,7 @@ keycloak-export-import-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/export-import/pom.xml b/export-import/pom.xml index feedf3d268..f0cae60b28 100755 --- a/export-import/pom.xml +++ b/export-import/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/federation/kerberos/pom.xml b/federation/kerberos/pom.xml index 1b4a227444..c8d367c42a 100755 --- a/federation/kerberos/pom.xml +++ b/federation/kerberos/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/federation/ldap/pom.xml b/federation/ldap/pom.xml index 4e0e670f3b..d44e4e8324 100755 --- a/federation/ldap/pom.xml +++ b/federation/ldap/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/federation/pom.xml b/federation/pom.xml index 2966170455..156c369308 100755 --- a/federation/pom.xml +++ b/federation/pom.xml @@ -5,7 +5,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/forms/account-api/pom.xml b/forms/account-api/pom.xml index bb7aba85a5..39478b0c3e 100755 --- a/forms/account-api/pom.xml +++ b/forms/account-api/pom.xml @@ -4,7 +4,7 @@ keycloak-forms-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/forms/account-freemarker/pom.xml b/forms/account-freemarker/pom.xml index c79dedae5d..c03d99a98c 100755 --- a/forms/account-freemarker/pom.xml +++ b/forms/account-freemarker/pom.xml @@ -4,7 +4,7 @@ keycloak-forms-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/forms/common-freemarker/pom.xml b/forms/common-freemarker/pom.xml index f6c81a51ad..1d5746574d 100755 --- a/forms/common-freemarker/pom.xml +++ b/forms/common-freemarker/pom.xml @@ -4,7 +4,7 @@ keycloak-forms-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/forms/common-themes/pom.xml b/forms/common-themes/pom.xml index a0e45a18b6..7ca2b9abc2 100755 --- a/forms/common-themes/pom.xml +++ b/forms/common-themes/pom.xml @@ -4,7 +4,7 @@ keycloak-forms-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/forms/email-api/pom.xml b/forms/email-api/pom.xml index 132b52662e..17252a15ab 100755 --- a/forms/email-api/pom.xml +++ b/forms/email-api/pom.xml @@ -4,7 +4,7 @@ keycloak-forms-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/forms/email-freemarker/pom.xml b/forms/email-freemarker/pom.xml index adc07dc73a..d9974b31fb 100755 --- a/forms/email-freemarker/pom.xml +++ b/forms/email-freemarker/pom.xml @@ -4,7 +4,7 @@ keycloak-forms-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 @@ -54,11 +54,6 @@ freemarker provided - - javax.mail - mail - provided - diff --git a/forms/login-api/pom.xml b/forms/login-api/pom.xml index 3103760aa0..d28463307d 100755 --- a/forms/login-api/pom.xml +++ b/forms/login-api/pom.xml @@ -4,7 +4,7 @@ keycloak-forms-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/forms/login-freemarker/pom.xml b/forms/login-freemarker/pom.xml index dbabff11fb..56f7fffedc 100755 --- a/forms/login-freemarker/pom.xml +++ b/forms/login-freemarker/pom.xml @@ -4,7 +4,7 @@ keycloak-forms-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/ProfileBean.java b/forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/ProfileBean.java index b2d6b1dcf5..0783529ee5 100755 --- a/forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/ProfileBean.java +++ b/forms/login-freemarker/src/main/java/org/keycloak/login/freemarker/model/ProfileBean.java @@ -47,8 +47,9 @@ public class ProfileBean { this.user = user; this.formData = formData; - if (user.getAttributes() != null) { - for (Map.Entry> attr : user.getAttributes().entrySet()) { + Map> modelAttrs = user.getAttributes(); + if (modelAttrs != null) { + for (Map.Entry> attr : modelAttrs.entrySet()) { List attrValue = attr.getValue(); if (attrValue != null && attrValue.size() > 0) { attributes.put(attr.getKey(), attrValue.get(0)); diff --git a/forms/pom.xml b/forms/pom.xml index 5336cb513f..48647e4c80 100755 --- a/forms/pom.xml +++ b/forms/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/integration/adapter-core/pom.xml b/integration/adapter-core/pom.xml index 128e6e84f6..8ffd66e6e7 100755 --- a/integration/adapter-core/pom.xml +++ b/integration/adapter-core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/adapter-spi/pom.xml b/integration/adapter-spi/pom.xml index 96a1ff1910..780739a857 100755 --- a/integration/adapter-spi/pom.xml +++ b/integration/adapter-spi/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/admin-client/pom.xml b/integration/admin-client/pom.xml index 95f7cfd239..ef8aae1a17 100755 --- a/integration/admin-client/pom.xml +++ b/integration/admin-client/pom.xml @@ -5,7 +5,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/as7-eap6/as7-adapter-spi/pom.xml b/integration/as7-eap6/as7-adapter-spi/pom.xml index 774a23c061..28f537ea5e 100755 --- a/integration/as7-eap6/as7-adapter-spi/pom.xml +++ b/integration/as7-eap6/as7-adapter-spi/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/as7-eap6/as7-adapter/pom.xml b/integration/as7-eap6/as7-adapter/pom.xml index 9f94ddcd04..a2d6395f3f 100755 --- a/integration/as7-eap6/as7-adapter/pom.xml +++ b/integration/as7-eap6/as7-adapter/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/as7-eap6/as7-subsystem/pom.xml b/integration/as7-eap6/as7-subsystem/pom.xml index 1bf2cb8568..abe77633ea 100755 --- a/integration/as7-eap6/as7-subsystem/pom.xml +++ b/integration/as7-eap6/as7-subsystem/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/integration/as7-eap6/pom.xml b/integration/as7-eap6/pom.xml index 52a1053163..1c5e3eafae 100755 --- a/integration/as7-eap6/pom.xml +++ b/integration/as7-eap6/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml Keycloak AS7 / JBoss EAP 6 Integration diff --git a/integration/installed/pom.xml b/integration/installed/pom.xml index c2ed4f4335..4dfad34fe2 100755 --- a/integration/installed/pom.xml +++ b/integration/installed/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/jaxrs-oauth-client/pom.xml b/integration/jaxrs-oauth-client/pom.xml index 93b68fcc18..e9da65d08a 100755 --- a/integration/jaxrs-oauth-client/pom.xml +++ b/integration/jaxrs-oauth-client/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/jboss-adapter-core/pom.xml b/integration/jboss-adapter-core/pom.xml index 22a65f4c30..75b4f09386 100755 --- a/integration/jboss-adapter-core/pom.xml +++ b/integration/jboss-adapter-core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/jetty/jetty-adapter-spi/pom.xml b/integration/jetty/jetty-adapter-spi/pom.xml index 40839eff74..5181fc98a2 100755 --- a/integration/jetty/jetty-adapter-spi/pom.xml +++ b/integration/jetty/jetty-adapter-spi/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/jetty/jetty-core/pom.xml b/integration/jetty/jetty-core/pom.xml index 5c0700cf2e..9a8fb52ee8 100755 --- a/integration/jetty/jetty-core/pom.xml +++ b/integration/jetty/jetty-core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/jetty/jetty8.1/pom.xml b/integration/jetty/jetty8.1/pom.xml index b7577ec3a4..55edfd062f 100755 --- a/integration/jetty/jetty8.1/pom.xml +++ b/integration/jetty/jetty8.1/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/jetty/jetty9.1/pom.xml b/integration/jetty/jetty9.1/pom.xml index 0ad77eaa7a..5f033842e9 100755 --- a/integration/jetty/jetty9.1/pom.xml +++ b/integration/jetty/jetty9.1/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/jetty/jetty9.2/pom.xml b/integration/jetty/jetty9.2/pom.xml index 7ae5028261..6be8b4463a 100755 --- a/integration/jetty/jetty9.2/pom.xml +++ b/integration/jetty/jetty9.2/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/jetty/pom.xml b/integration/jetty/pom.xml index 741335b754..53b83e3cc2 100755 --- a/integration/jetty/pom.xml +++ b/integration/jetty/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml Keycloak Jetty Integration diff --git a/integration/js/pom.xml b/integration/js/pom.xml index fa12af9882..e3536b13d1 100755 --- a/integration/js/pom.xml +++ b/integration/js/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/osgi-adapter/pom.xml b/integration/osgi-adapter/pom.xml index eaeae83b40..457ee11468 100755 --- a/integration/osgi-adapter/pom.xml +++ b/integration/osgi-adapter/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/pom.xml b/integration/pom.xml index a1c335f7e2..6bd0d889c5 100755 --- a/integration/pom.xml +++ b/integration/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml Keycloak Integration diff --git a/integration/servlet-adapter-spi/pom.xml b/integration/servlet-adapter-spi/pom.xml index 9a11448191..1222681710 100755 --- a/integration/servlet-adapter-spi/pom.xml +++ b/integration/servlet-adapter-spi/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/servlet-filter/pom.xml b/integration/servlet-filter/pom.xml index 4f02059cd8..ce857f23ff 100755 --- a/integration/servlet-filter/pom.xml +++ b/integration/servlet-filter/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/servlet-oauth-client/pom.xml b/integration/servlet-oauth-client/pom.xml index c547c71213..666d4319f1 100755 --- a/integration/servlet-oauth-client/pom.xml +++ b/integration/servlet-oauth-client/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/spring-boot/pom.xml b/integration/spring-boot/pom.xml index db5a9a3b5e..c435108387 100755 --- a/integration/spring-boot/pom.xml +++ b/integration/spring-boot/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/spring-security/pom.xml b/integration/spring-security/pom.xml index 21e6123b8d..0eaeb1bebb 100755 --- a/integration/spring-security/pom.xml +++ b/integration/spring-security/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/tomcat/pom.xml b/integration/tomcat/pom.xml index cafb94027f..ea38d273c4 100755 --- a/integration/tomcat/pom.xml +++ b/integration/tomcat/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml Keycloak Tomcat Integration diff --git a/integration/tomcat/tomcat-adapter-spi/pom.xml b/integration/tomcat/tomcat-adapter-spi/pom.xml index 7df8b20835..e20215fea0 100755 --- a/integration/tomcat/tomcat-adapter-spi/pom.xml +++ b/integration/tomcat/tomcat-adapter-spi/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/tomcat/tomcat-core/pom.xml b/integration/tomcat/tomcat-core/pom.xml index 7181d78f2b..43540ef48f 100755 --- a/integration/tomcat/tomcat-core/pom.xml +++ b/integration/tomcat/tomcat-core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/tomcat/tomcat6/pom.xml b/integration/tomcat/tomcat6/pom.xml index 2560bd73f5..45c5801a95 100755 --- a/integration/tomcat/tomcat6/pom.xml +++ b/integration/tomcat/tomcat6/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/tomcat/tomcat7/pom.xml b/integration/tomcat/tomcat7/pom.xml index d6f80c0913..41a9500e06 100755 --- a/integration/tomcat/tomcat7/pom.xml +++ b/integration/tomcat/tomcat7/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/tomcat/tomcat8/pom.xml b/integration/tomcat/tomcat8/pom.xml index c8de8b7e54..b3f1ebf7a0 100755 --- a/integration/tomcat/tomcat8/pom.xml +++ b/integration/tomcat/tomcat8/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/undertow-adapter-spi/pom.xml b/integration/undertow-adapter-spi/pom.xml index a528435d78..2fd3ed74e7 100755 --- a/integration/undertow-adapter-spi/pom.xml +++ b/integration/undertow-adapter-spi/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/undertow/pom.xml b/integration/undertow/pom.xml index 1451829175..9fe07ae99f 100755 --- a/integration/undertow/pom.xml +++ b/integration/undertow/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/integration/wildfly/pom.xml b/integration/wildfly/pom.xml index 74ee90a696..85fedbb31e 100644 --- a/integration/wildfly/pom.xml +++ b/integration/wildfly/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml Keycloak WildFly Integration diff --git a/integration/wildfly/wf8-subsystem/pom.xml b/integration/wildfly/wf8-subsystem/pom.xml index d230f31262..57904804b9 100755 --- a/integration/wildfly/wf8-subsystem/pom.xml +++ b/integration/wildfly/wf8-subsystem/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/integration/wildfly/wildfly-adapter/pom.xml b/integration/wildfly/wildfly-adapter/pom.xml index 968caf34ea..bdc116988d 100755 --- a/integration/wildfly/wildfly-adapter/pom.xml +++ b/integration/wildfly/wildfly-adapter/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/integration/wildfly/wildfly-subsystem/pom.xml b/integration/wildfly/wildfly-subsystem/pom.xml index aeed58e9dd..e4a5ef9516 100755 --- a/integration/wildfly/wildfly-subsystem/pom.xml +++ b/integration/wildfly/wildfly-subsystem/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml diff --git a/model/api/pom.xml b/model/api/pom.xml index f63a37675f..a85812c098 100755 --- a/model/api/pom.xml +++ b/model/api/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/model/api/src/main/java/org/keycloak/models/Constants.java b/model/api/src/main/java/org/keycloak/models/Constants.java index 6437cd5250..0c529293f2 100755 --- a/model/api/src/main/java/org/keycloak/models/Constants.java +++ b/model/api/src/main/java/org/keycloak/models/Constants.java @@ -28,4 +28,7 @@ public interface Constants { String VERIFY_EMAIL_KEY = "VERIFY_EMAIL_KEY"; String KEY = "key"; + + // Prefix for user attributes used in various "context"data maps + public static final String USER_ATTRIBUTES_PREFIX = "user.attributes."; } diff --git a/model/api/src/main/java/org/keycloak/models/utils/DefaultAuthenticationFlows.java b/model/api/src/main/java/org/keycloak/models/utils/DefaultAuthenticationFlows.java index 40a8999910..3a105c46e2 100755 --- a/model/api/src/main/java/org/keycloak/models/utils/DefaultAuthenticationFlows.java +++ b/model/api/src/main/java/org/keycloak/models/utils/DefaultAuthenticationFlows.java @@ -429,6 +429,10 @@ public class DefaultAuthenticationFlows { if (migrate) { // Try to read OTP requirement from browser flow AuthenticationFlowModel browserFlow = realm.getBrowserFlow(); + if (browserFlow == null) { + browserFlow = realm.getFlowByAlias(DefaultAuthenticationFlows.BROWSER_FLOW); + } + List browserExecutions = new LinkedList<>(); KeycloakModelUtils.deepFindAuthenticationExecutions(realm, browserFlow, browserExecutions); for (AuthenticationExecutionModel browserExecution : browserExecutions) { diff --git a/model/invalidation-cache/infinispan/pom.xml b/model/invalidation-cache/infinispan/pom.xml index 99cd6b181d..6b0b42bb7c 100755 --- a/model/invalidation-cache/infinispan/pom.xml +++ b/model/invalidation-cache/infinispan/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanCacheUserProviderFactory.java b/model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanCacheUserProviderFactory.java index 87fe25b3dc..4eb0bdf8ee 100755 --- a/model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanCacheUserProviderFactory.java +++ b/model/invalidation-cache/infinispan/src/main/java/org/keycloak/models/cache/infinispan/InfinispanCacheUserProviderFactory.java @@ -112,21 +112,25 @@ public class InfinispanCacheUserProviderFactory implements CacheUserProviderFact @CacheEntryRemoved public void userRemoved(CacheEntryRemovedEvent event) { - CachedUser user = event.getOldValue(); - if (event.isPre() && user != null) { - removeUser(user); + if (event.isPre()) { + CachedUser user = event.getValue(); + if (user != null) { + removeUser(user); - log.tracev("User invalidated realm={0}, id={1}, username={2}", user.getRealm(), user.getId(), user.getUsername()); + log.tracev("User invalidated realm={0}, id={1}, username={2}", user.getRealm(), user.getId(), user.getUsername()); + } } } @CacheEntryInvalidated public void userInvalidated(CacheEntryInvalidatedEvent event) { - CachedUser user = event.getValue(); - if (event.isPre() && user != null) { - removeUser(user); + if (event.isPre()) { + CachedUser user = event.getValue(); + if (user != null) { + removeUser(user); - log.tracev("User invalidated realm={0}, id={1}, username={2}", user.getRealm(), user.getId(), user.getUsername()); + log.tracev("User invalidated realm={0}, id={1}, username={2}", user.getRealm(), user.getId(), user.getUsername()); + } } } diff --git a/model/invalidation-cache/model-adapters/pom.xml b/model/invalidation-cache/model-adapters/pom.xml index ad706e36ca..5d0458a479 100755 --- a/model/invalidation-cache/model-adapters/pom.xml +++ b/model/invalidation-cache/model-adapters/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/model/invalidation-cache/pom.xml b/model/invalidation-cache/pom.xml index dce0b7bd5f..927761278c 100755 --- a/model/invalidation-cache/pom.xml +++ b/model/invalidation-cache/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml Keycloak Model Invalidation Cache Parent diff --git a/model/jpa/pom.xml b/model/jpa/pom.xml index bd16276f90..f9770ea7f1 100755 --- a/model/jpa/pom.xml +++ b/model/jpa/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/model/mongo/pom.xml b/model/mongo/pom.xml index 04dcb7e24e..99af9a617e 100755 --- a/model/mongo/pom.xml +++ b/model/mongo/pom.xml @@ -5,7 +5,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/model/pom.xml b/model/pom.xml index 0322abb35b..da235dc931 100755 --- a/model/pom.xml +++ b/model/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml Keycloak Model Parent diff --git a/model/sessions-infinispan/pom.xml b/model/sessions-infinispan/pom.xml index f0cac531ca..c4f57b0333 100755 --- a/model/sessions-infinispan/pom.xml +++ b/model/sessions-infinispan/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/pom.xml b/pom.xml index 7e20bc3c6f..c7b2c6942a 100755 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ org.keycloak keycloak-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT pom diff --git a/proxy/launcher/pom.xml b/proxy/launcher/pom.xml index 897754a882..221290c7c0 100755 --- a/proxy/launcher/pom.xml +++ b/proxy/launcher/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/proxy/pom.xml b/proxy/pom.xml index 57cdf08352..b9fd08b4b6 100755 --- a/proxy/pom.xml +++ b/proxy/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml Model Parent diff --git a/proxy/proxy-server/pom.xml b/proxy/proxy-server/pom.xml index ef4fa2759f..fa3120dd5d 100755 --- a/proxy/proxy-server/pom.xml +++ b/proxy/proxy-server/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/saml/client-adapter/as7-eap6/adapter/pom.xml b/saml/client-adapter/as7-eap6/adapter/pom.xml index da632c7322..07a47085f9 100755 --- a/saml/client-adapter/as7-eap6/adapter/pom.xml +++ b/saml/client-adapter/as7-eap6/adapter/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/as7-eap6/pom.xml b/saml/client-adapter/as7-eap6/pom.xml index 9fd9d837a7..2fa282424c 100755 --- a/saml/client-adapter/as7-eap6/pom.xml +++ b/saml/client-adapter/as7-eap6/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak SAML EAP Integration diff --git a/saml/client-adapter/as7-eap6/subsystem/pom.xml b/saml/client-adapter/as7-eap6/subsystem/pom.xml index 872e5d1110..ecdbd7eb8b 100755 --- a/saml/client-adapter/as7-eap6/subsystem/pom.xml +++ b/saml/client-adapter/as7-eap6/subsystem/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/saml/client-adapter/core/pom.xml b/saml/client-adapter/core/pom.xml index 25bb8a7261..cbad291ec9 100755 --- a/saml/client-adapter/core/pom.xml +++ b/saml/client-adapter/core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/jetty/jetty-core/pom.xml b/saml/client-adapter/jetty/jetty-core/pom.xml index 87bf21a642..82495b796b 100755 --- a/saml/client-adapter/jetty/jetty-core/pom.xml +++ b/saml/client-adapter/jetty/jetty-core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/jetty/jetty8.1/pom.xml b/saml/client-adapter/jetty/jetty8.1/pom.xml index 1e888f59d6..ec65147f11 100755 --- a/saml/client-adapter/jetty/jetty8.1/pom.xml +++ b/saml/client-adapter/jetty/jetty8.1/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/jetty/jetty9.1/pom.xml b/saml/client-adapter/jetty/jetty9.1/pom.xml index b8ca67b6ea..9ab712161e 100755 --- a/saml/client-adapter/jetty/jetty9.1/pom.xml +++ b/saml/client-adapter/jetty/jetty9.1/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/jetty/jetty9.2/pom.xml b/saml/client-adapter/jetty/jetty9.2/pom.xml index 9382c4a0fd..5bb09e7764 100755 --- a/saml/client-adapter/jetty/jetty9.2/pom.xml +++ b/saml/client-adapter/jetty/jetty9.2/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/jetty/pom.xml b/saml/client-adapter/jetty/pom.xml index 745c3f0e44..3668923ac0 100755 --- a/saml/client-adapter/jetty/pom.xml +++ b/saml/client-adapter/jetty/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak SAML Jetty Integration diff --git a/saml/client-adapter/pom.xml b/saml/client-adapter/pom.xml index 531c0b124b..76f52fa356 100755 --- a/saml/client-adapter/pom.xml +++ b/saml/client-adapter/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml Keycloak SAML Client Adapter Modules diff --git a/saml/client-adapter/servlet-filter/pom.xml b/saml/client-adapter/servlet-filter/pom.xml index 9083c1eff5..10d8fa3856 100755 --- a/saml/client-adapter/servlet-filter/pom.xml +++ b/saml/client-adapter/servlet-filter/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/tomcat/pom.xml b/saml/client-adapter/tomcat/pom.xml index 1025f06387..d9d6fac4ca 100755 --- a/saml/client-adapter/tomcat/pom.xml +++ b/saml/client-adapter/tomcat/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak SAML Tomcat Integration diff --git a/saml/client-adapter/tomcat/tomcat-core/pom.xml b/saml/client-adapter/tomcat/tomcat-core/pom.xml index 65370d075a..d2509f4aef 100755 --- a/saml/client-adapter/tomcat/tomcat-core/pom.xml +++ b/saml/client-adapter/tomcat/tomcat-core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/tomcat/tomcat6/pom.xml b/saml/client-adapter/tomcat/tomcat6/pom.xml index 2998bc0265..401f185a20 100755 --- a/saml/client-adapter/tomcat/tomcat6/pom.xml +++ b/saml/client-adapter/tomcat/tomcat6/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/tomcat/tomcat7/pom.xml b/saml/client-adapter/tomcat/tomcat7/pom.xml index 03e267ca68..80953a5fd6 100755 --- a/saml/client-adapter/tomcat/tomcat7/pom.xml +++ b/saml/client-adapter/tomcat/tomcat7/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/tomcat/tomcat8/pom.xml b/saml/client-adapter/tomcat/tomcat8/pom.xml index 3c0f20c1b5..2a3b7f7dee 100755 --- a/saml/client-adapter/tomcat/tomcat8/pom.xml +++ b/saml/client-adapter/tomcat/tomcat8/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/undertow/pom.xml b/saml/client-adapter/undertow/pom.xml index 7cc60d30db..40d9e43762 100755 --- a/saml/client-adapter/undertow/pom.xml +++ b/saml/client-adapter/undertow/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/wildfly/pom.xml b/saml/client-adapter/wildfly/pom.xml index d9014b62c7..8d45b030de 100755 --- a/saml/client-adapter/wildfly/pom.xml +++ b/saml/client-adapter/wildfly/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../pom.xml Keycloak SAML Wildfly Integration diff --git a/saml/client-adapter/wildfly/wildfly-adapter/pom.xml b/saml/client-adapter/wildfly/wildfly-adapter/pom.xml index ba95626ca7..7e2fe4377a 100755 --- a/saml/client-adapter/wildfly/wildfly-adapter/pom.xml +++ b/saml/client-adapter/wildfly/wildfly-adapter/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml 4.0.0 diff --git a/saml/client-adapter/wildfly/wildfly-subsystem/pom.xml b/saml/client-adapter/wildfly/wildfly-subsystem/pom.xml index 3edade7527..b7a218de11 100755 --- a/saml/client-adapter/wildfly/wildfly-subsystem/pom.xml +++ b/saml/client-adapter/wildfly/wildfly-subsystem/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../../../pom.xml diff --git a/saml/pom.xml b/saml/pom.xml index 1c4bf01f50..0a3e596890 100755 --- a/saml/pom.xml +++ b/saml/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml Keycloak SAML Integration diff --git a/saml/saml-core/pom.xml b/saml/saml-core/pom.xml index 5a1c01b1e5..2b8ca1b53d 100755 --- a/saml/saml-core/pom.xml +++ b/saml/saml-core/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/saml/saml-protocol/pom.xml b/saml/saml-protocol/pom.xml index eba1c1686b..d78601af74 100755 --- a/saml/saml-protocol/pom.xml +++ b/saml/saml-protocol/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/services/pom.xml b/services/pom.xml index bf2ee80b50..dcede66740 100755 --- a/services/pom.xml +++ b/services/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 @@ -50,6 +50,10 @@ org.keycloak keycloak-email-api + + javax.mail + mail + org.keycloak keycloak-login-api diff --git a/services/src/main/java/org/keycloak/authentication/authenticators/broker/util/SerializedBrokeredIdentityContext.java b/services/src/main/java/org/keycloak/authentication/authenticators/broker/util/SerializedBrokeredIdentityContext.java index 7e3990bbea..968831c1b4 100644 --- a/services/src/main/java/org/keycloak/authentication/authenticators/broker/util/SerializedBrokeredIdentityContext.java +++ b/services/src/main/java/org/keycloak/authentication/authenticators/broker/util/SerializedBrokeredIdentityContext.java @@ -1,6 +1,8 @@ package org.keycloak.authentication.authenticators.broker.util; import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -14,6 +16,7 @@ import org.keycloak.broker.provider.IdentityProviderDataMarshaller; import org.keycloak.common.util.Base64Url; import org.keycloak.common.util.reflections.Reflections; import org.keycloak.models.ClientSessionModel; +import org.keycloak.models.Constants; import org.keycloak.models.IdentityProviderModel; import org.keycloak.models.KeycloakSession; import org.keycloak.models.ModelException; @@ -162,44 +165,52 @@ public class SerializedBrokeredIdentityContext implements UpdateProfileContext { this.contextData = contextData; } + @JsonIgnore @Override public Map> getAttributes() { Map> result = new HashMap<>(); for (Map.Entry entry : this.contextData.entrySet()) { - if (entry.getKey().startsWith("user.attributes.")) { - ContextDataEntry ctxEntry = entry.getValue(); - String asString = ctxEntry.getData(); - try { - List asList = JsonSerialization.readValue(asString, List.class); - result.put(entry.getKey().substring(16), asList); - } catch (IOException ioe) { - throw new RuntimeException(ioe); - } + if (entry.getKey().startsWith(Constants.USER_ATTRIBUTES_PREFIX)) { + String attrName = entry.getKey().substring(16); // length of USER_ATTRIBUTES_PREFIX + List asList = getAttribute(attrName); + result.put(attrName, asList); } } return result; } + @JsonIgnore + @Override + public void setSingleAttribute(String name, String value) { + List list = new ArrayList<>(); + list.add(value); + setAttribute(name, list); + } + + @JsonIgnore @Override public void setAttribute(String key, List value) { try { - String listStr = JsonSerialization.writeValueAsString(value); + byte[] listBytes = JsonSerialization.writeValueAsBytes(value); + String listStr = Base64Url.encode(listBytes); ContextDataEntry ctxEntry = ContextDataEntry.create(List.class.getName(), listStr); - this.contextData.put("user.attributes." + key, ctxEntry); + this.contextData.put(Constants.USER_ATTRIBUTES_PREFIX + key, ctxEntry); } catch (IOException ioe) { throw new RuntimeException(ioe); } } + @JsonIgnore @Override public List getAttribute(String key) { - ContextDataEntry ctxEntry = this.contextData.get("user.attributes." + key); + ContextDataEntry ctxEntry = this.contextData.get(Constants.USER_ATTRIBUTES_PREFIX + key); if (ctxEntry != null) { try { String asString = ctxEntry.getData(); - List asList = JsonSerialization.readValue(asString, List.class); + byte[] asBytes = Base64Url.decode(asString); + List asList = JsonSerialization.readValue(asBytes, List.class); return asList; } catch (IOException ioe) { throw new RuntimeException(ioe); @@ -209,6 +220,17 @@ public class SerializedBrokeredIdentityContext implements UpdateProfileContext { } } + @JsonIgnore + @Override + public String getFirstAttribute(String name) { + List attrs = getAttribute(name); + if (attrs == null || attrs.isEmpty()) { + return null; + } else { + return attrs.get(0); + } + } + public BrokeredIdentityContext deserialize(KeycloakSession session, ClientSessionModel clientSession) { BrokeredIdentityContext ctx = new BrokeredIdentityContext(getId()); diff --git a/services/src/main/java/org/keycloak/authentication/requiredactions/util/UpdateProfileContext.java b/services/src/main/java/org/keycloak/authentication/requiredactions/util/UpdateProfileContext.java index 2acef37a0e..a88d173cac 100644 --- a/services/src/main/java/org/keycloak/authentication/requiredactions/util/UpdateProfileContext.java +++ b/services/src/main/java/org/keycloak/authentication/requiredactions/util/UpdateProfileContext.java @@ -31,8 +31,12 @@ public interface UpdateProfileContext { Map> getAttributes(); + void setSingleAttribute(String name, String value); + void setAttribute(String key, List value); + String getFirstAttribute(String name); + List getAttribute(String key); } diff --git a/services/src/main/java/org/keycloak/authentication/requiredactions/util/UserUpdateProfileContext.java b/services/src/main/java/org/keycloak/authentication/requiredactions/util/UserUpdateProfileContext.java index 55d6ddae46..94a1151855 100644 --- a/services/src/main/java/org/keycloak/authentication/requiredactions/util/UserUpdateProfileContext.java +++ b/services/src/main/java/org/keycloak/authentication/requiredactions/util/UserUpdateProfileContext.java @@ -69,11 +69,21 @@ public class UserUpdateProfileContext implements UpdateProfileContext { return user.getAttributes(); } + @Override + public void setSingleAttribute(String name, String value) { + user.setSingleAttribute(name, value); + } + @Override public void setAttribute(String key, List value) { user.setAttribute(key, value); } + @Override + public String getFirstAttribute(String name) { + return user.getFirstAttribute(name); + } + @Override public List getAttribute(String key) { return user.getAttribute(key); diff --git a/services/src/main/java/org/keycloak/services/resources/AttributeFormDataProcessor.java b/services/src/main/java/org/keycloak/services/resources/AttributeFormDataProcessor.java index 9fb60eca6d..194ad2d5a4 100755 --- a/services/src/main/java/org/keycloak/services/resources/AttributeFormDataProcessor.java +++ b/services/src/main/java/org/keycloak/services/resources/AttributeFormDataProcessor.java @@ -5,6 +5,7 @@ import java.util.List; import org.keycloak.authentication.requiredactions.util.UpdateProfileContext; import org.keycloak.authentication.requiredactions.util.UserUpdateProfileContext; +import org.keycloak.models.Constants; import org.keycloak.models.RealmModel; import org.keycloak.models.UserModel; @@ -29,11 +30,12 @@ public class AttributeFormDataProcessor { public static void process(MultivaluedMap formData, RealmModel realm, UpdateProfileContext user) { for (String key : formData.keySet()) { - if (!key.startsWith("user.attributes.")) continue; - String attribute = key.substring("user.attributes.".length()); + if (!key.startsWith(Constants.USER_ATTRIBUTES_PREFIX)) continue; + String attribute = key.substring(Constants.USER_ATTRIBUTES_PREFIX.length()); // Need to handle case when attribute has multiple values, but in UI was displayed just first value - List modelValue = new ArrayList<>(user.getAttribute(attribute)); + List modelVal = user.getAttribute(attribute); + List modelValue = modelVal==null ? new ArrayList() : new ArrayList<>(modelVal); int index = 0; for (String value : formData.get(key)) { diff --git a/services/src/main/java/org/keycloak/services/resources/IdentityBrokerService.java b/services/src/main/java/org/keycloak/services/resources/IdentityBrokerService.java index b31d121804..89f8c394f6 100755 --- a/services/src/main/java/org/keycloak/services/resources/IdentityBrokerService.java +++ b/services/src/main/java/org/keycloak/services/resources/IdentityBrokerService.java @@ -214,7 +214,7 @@ public class IdentityBrokerService implements IdentityProvider.AuthenticationCal Map resourceAccess = token.getResourceAccess(); AccessToken.Access brokerRoles = resourceAccess == null ? null : resourceAccess.get(Constants.BROKER_SERVICE_CLIENT_ID); if (brokerRoles == null || !brokerRoles.isUserInRole(Constants.READ_TOKEN_ROLE)) { - return corsResponse(forbidden("Client [" + audience + "] not authorized to retrieve tokens from identity provider [" + providerId + "]."), clientModel); + return corsResponse(forbidden("Client [" + clientModel.getClientId() + "] not authorized to retrieve tokens from identity provider [" + providerId + "]."), clientModel); } diff --git a/social/core/pom.xml b/social/core/pom.xml index 6b675d6281..10faa01713 100755 --- a/social/core/pom.xml +++ b/social/core/pom.xml @@ -4,7 +4,7 @@ keycloak-social-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/social/facebook/pom.xml b/social/facebook/pom.xml index 670d0d414b..7b01253a7a 100755 --- a/social/facebook/pom.xml +++ b/social/facebook/pom.xml @@ -3,7 +3,7 @@ keycloak-social-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/social/github/pom.xml b/social/github/pom.xml index f1799fa6b7..254e94894b 100755 --- a/social/github/pom.xml +++ b/social/github/pom.xml @@ -3,7 +3,7 @@ keycloak-social-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/social/google/pom.xml b/social/google/pom.xml index 2ee2ac77cd..d750fa9b79 100755 --- a/social/google/pom.xml +++ b/social/google/pom.xml @@ -4,7 +4,7 @@ keycloak-social-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/social/linkedin/pom.xml b/social/linkedin/pom.xml index 608ec8ea92..ec54c8c237 100755 --- a/social/linkedin/pom.xml +++ b/social/linkedin/pom.xml @@ -3,7 +3,7 @@ keycloak-social-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/social/pom.xml b/social/pom.xml index 25e10c19af..a703420b08 100755 --- a/social/pom.xml +++ b/social/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/social/stackoverflow/pom.xml b/social/stackoverflow/pom.xml index 972662b8a4..9f336df78d 100755 --- a/social/stackoverflow/pom.xml +++ b/social/stackoverflow/pom.xml @@ -3,7 +3,7 @@ keycloak-social-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/social/twitter/pom.xml b/social/twitter/pom.xml index 90d596667b..15f2160535 100755 --- a/social/twitter/pom.xml +++ b/social/twitter/pom.xml @@ -4,7 +4,7 @@ keycloak-social-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/testsuite/docker-cluster/pom.xml b/testsuite/docker-cluster/pom.xml index 00414bfdb7..e8a345e3e6 100755 --- a/testsuite/docker-cluster/pom.xml +++ b/testsuite/docker-cluster/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml diff --git a/testsuite/integration-arquillian/pom.xml b/testsuite/integration-arquillian/pom.xml index f1872e97aa..5884210038 100644 --- a/testsuite/integration-arquillian/pom.xml +++ b/testsuite/integration-arquillian/pom.xml @@ -4,7 +4,7 @@ org.keycloak keycloak-testsuite-pom - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/testsuite/integration-arquillian/servers/eap6/pom.xml b/testsuite/integration-arquillian/servers/eap6/pom.xml index 8bb3c2ad56..60dc5ab648 100644 --- a/testsuite/integration-arquillian/servers/eap6/pom.xml +++ b/testsuite/integration-arquillian/servers/eap6/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-servers - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/servers/migration/pom.xml b/testsuite/integration-arquillian/servers/migration/pom.xml index 3ce948e256..c825e34204 100644 --- a/testsuite/integration-arquillian/servers/migration/pom.xml +++ b/testsuite/integration-arquillian/servers/migration/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-servers - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/servers/migration/wildfly_kc12/pom.xml b/testsuite/integration-arquillian/servers/migration/wildfly_kc12/pom.xml index 132b1af4e0..02b76d4f61 100644 --- a/testsuite/integration-arquillian/servers/migration/wildfly_kc12/pom.xml +++ b/testsuite/integration-arquillian/servers/migration/wildfly_kc12/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-migration-servers - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/servers/migration/wildfly_kc13/pom.xml b/testsuite/integration-arquillian/servers/migration/wildfly_kc13/pom.xml index 5d7bb1cc2c..f0b92a61e2 100644 --- a/testsuite/integration-arquillian/servers/migration/wildfly_kc13/pom.xml +++ b/testsuite/integration-arquillian/servers/migration/wildfly_kc13/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-migration-servers - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/servers/migration/wildfly_kc14/pom.xml b/testsuite/integration-arquillian/servers/migration/wildfly_kc14/pom.xml index 85dcff31ee..52a9378017 100644 --- a/testsuite/integration-arquillian/servers/migration/wildfly_kc14/pom.xml +++ b/testsuite/integration-arquillian/servers/migration/wildfly_kc14/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-migration-servers - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/servers/migration/wildfly_kc15/pom.xml b/testsuite/integration-arquillian/servers/migration/wildfly_kc15/pom.xml index 802f50aad9..f04e10e938 100644 --- a/testsuite/integration-arquillian/servers/migration/wildfly_kc15/pom.xml +++ b/testsuite/integration-arquillian/servers/migration/wildfly_kc15/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-migration-servers - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/servers/migration/wildfly_kc16/pom.xml b/testsuite/integration-arquillian/servers/migration/wildfly_kc16/pom.xml index 5e27a3a81a..2b9a64fcbc 100644 --- a/testsuite/integration-arquillian/servers/migration/wildfly_kc16/pom.xml +++ b/testsuite/integration-arquillian/servers/migration/wildfly_kc16/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-migration-servers - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/servers/pom.xml b/testsuite/integration-arquillian/servers/pom.xml index 71758113e0..c805703d7a 100644 --- a/testsuite/integration-arquillian/servers/pom.xml +++ b/testsuite/integration-arquillian/servers/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/servers/wildfly/pom.xml b/testsuite/integration-arquillian/servers/wildfly/pom.xml index d7c6a8c431..6353c5d47b 100644 --- a/testsuite/integration-arquillian/servers/wildfly/pom.xml +++ b/testsuite/integration-arquillian/servers/wildfly/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-servers - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/adapters/as7/pom.xml b/testsuite/integration-arquillian/tests/adapters/as7/pom.xml index 15b575cd80..f670ea3c0a 100644 --- a/testsuite/integration-arquillian/tests/adapters/as7/pom.xml +++ b/testsuite/integration-arquillian/tests/adapters/as7/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-tests-adapters - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/adapters/karaf/pom.xml b/testsuite/integration-arquillian/tests/adapters/karaf/pom.xml index e6c72f3d47..0ec9b34d23 100644 --- a/testsuite/integration-arquillian/tests/adapters/karaf/pom.xml +++ b/testsuite/integration-arquillian/tests/adapters/karaf/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-tests-adapters - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/adapters/pom.xml b/testsuite/integration-arquillian/tests/adapters/pom.xml index ee81124381..759ad6ff91 100644 --- a/testsuite/integration-arquillian/tests/adapters/pom.xml +++ b/testsuite/integration-arquillian/tests/adapters/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-tests - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/adapters/tomcat/pom.xml b/testsuite/integration-arquillian/tests/adapters/tomcat/pom.xml index d908c59bfa..564321350e 100644 --- a/testsuite/integration-arquillian/tests/adapters/tomcat/pom.xml +++ b/testsuite/integration-arquillian/tests/adapters/tomcat/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-tests-adapters - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/adapters/wildfly-relative/pom.xml b/testsuite/integration-arquillian/tests/adapters/wildfly-relative/pom.xml index 6c78ff2cf4..30cf25a46b 100644 --- a/testsuite/integration-arquillian/tests/adapters/wildfly-relative/pom.xml +++ b/testsuite/integration-arquillian/tests/adapters/wildfly-relative/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-tests-adapters - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/adapters/wildfly/pom.xml b/testsuite/integration-arquillian/tests/adapters/wildfly/pom.xml index 81d98047a0..1e7a0bec90 100644 --- a/testsuite/integration-arquillian/tests/adapters/wildfly/pom.xml +++ b/testsuite/integration-arquillian/tests/adapters/wildfly/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-tests-adapters - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/adapters/wildfly8/pom.xml b/testsuite/integration-arquillian/tests/adapters/wildfly8/pom.xml index 06fe9624f7..f6378e8242 100644 --- a/testsuite/integration-arquillian/tests/adapters/wildfly8/pom.xml +++ b/testsuite/integration-arquillian/tests/adapters/wildfly8/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-tests-adapters - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/base/pom.xml b/testsuite/integration-arquillian/tests/base/pom.xml index 5c409ab304..093459a6b6 100644 --- a/testsuite/integration-arquillian/tests/base/pom.xml +++ b/testsuite/integration-arquillian/tests/base/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian-tests - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration-arquillian/tests/pom.xml b/testsuite/integration-arquillian/tests/pom.xml index 13a2059f82..064e588127 100644 --- a/testsuite/integration-arquillian/tests/pom.xml +++ b/testsuite/integration-arquillian/tests/pom.xml @@ -4,7 +4,7 @@ org.keycloak.testsuite integration-arquillian - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/testsuite/integration/pom.xml b/testsuite/integration/pom.xml index 2865040b35..44d1e5045d 100755 --- a/testsuite/integration/pom.xml +++ b/testsuite/integration/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/broker/AbstractKeycloakIdentityProviderTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/broker/AbstractKeycloakIdentityProviderTest.java index f88cf0bbbb..dbf761ea77 100644 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/broker/AbstractKeycloakIdentityProviderTest.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/broker/AbstractKeycloakIdentityProviderTest.java @@ -441,6 +441,9 @@ public abstract class AbstractKeycloakIdentityProviderTest extends AbstractIdent authenticateWithIdentityProvider(identityProviderModel, "test-user", true); + brokerServerRule.stopSession(session, true); + session = brokerServerRule.startSession(); + UserModel federatedUser = getFederatedUser(); RealmModel realm = getRealm(); Set federatedIdentities = this.session.users().getFederatedIdentities(federatedUser, realm); diff --git a/testsuite/integration/src/test/resources/broker-test/test-realm-with-broker.json b/testsuite/integration/src/test/resources/broker-test/test-realm-with-broker.json index 0b8b79e947..816aa49e02 100755 --- a/testsuite/integration/src/test/resources/broker-test/test-realm-with-broker.json +++ b/testsuite/integration/src/test/resources/broker-test/test-realm-with-broker.json @@ -147,7 +147,7 @@ "clientId": "clientId", "clientSecret": "clientSecret", "prompt": "prompt", - "authorizationUrl": "http://localhost:8082/auth/realms/realm-with-oidc-identity-provider/tokens/login", + "authorizationUrl": "http://localhost:8081/auth/realms/realm-with-oidc-identity-provider/protocol/openid-connect/auth", "tokenUrl": "http://localhost:8081/auth/realms/realm-with-oidc-identity-provider/protocol/openid-connect/token", "userInfoUrl": "http://localhost:8081/auth/realms/realm-with-oidc-identity-provider/protocol/openid-connect/userinfo", "defaultScope": "email profile" @@ -163,10 +163,10 @@ "clientId": "broker-app", "clientSecret": "secret", "prompt": "login", - "authorizationUrl": "http://localhost:8082/auth/realms/realm-with-oidc-identity-provider/tokens/login", + "authorizationUrl": "http://localhost:8082/auth/realms/realm-with-oidc-identity-provider/protocol/openid-connect/auth", "tokenUrl": "http://localhost:8082/auth/realms/realm-with-oidc-identity-provider/protocol/openid-connect/token", "userInfoUrl": "http://localhost:8082/auth/realms/realm-with-oidc-identity-provider/protocol/openid-connect/userinfo", - "logoutUrl": "http://localhost:8082/auth/realms/realm-with-oidc-identity-provider/tokens/logout", + "logoutUrl": "http://localhost:8082/auth/realms/realm-with-oidc-identity-provider/protocol/openid-connect/logout", "defaultScope": "email profile", "backchannelSupported": "true" } diff --git a/testsuite/jetty/jetty81/pom.xml b/testsuite/jetty/jetty81/pom.xml index 49f3246016..000407b422 100755 --- a/testsuite/jetty/jetty81/pom.xml +++ b/testsuite/jetty/jetty81/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/testsuite/jetty/jetty91/pom.xml b/testsuite/jetty/jetty91/pom.xml index 23c14ec463..b6d04d06db 100755 --- a/testsuite/jetty/jetty91/pom.xml +++ b/testsuite/jetty/jetty91/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/testsuite/jetty/jetty92/pom.xml b/testsuite/jetty/jetty92/pom.xml index 0a899e25e7..7f878202f4 100755 --- a/testsuite/jetty/jetty92/pom.xml +++ b/testsuite/jetty/jetty92/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/testsuite/jetty/pom.xml b/testsuite/jetty/pom.xml index 2e5ff64d73..90e0231d2f 100755 --- a/testsuite/jetty/pom.xml +++ b/testsuite/jetty/pom.xml @@ -3,7 +3,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml Keycloak SAML Jetty Testsuite Integration diff --git a/testsuite/performance/pom.xml b/testsuite/performance/pom.xml index 75c1ce2872..cb81985c6f 100755 --- a/testsuite/performance/pom.xml +++ b/testsuite/performance/pom.xml @@ -5,7 +5,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/testsuite/pom.xml b/testsuite/pom.xml index e85e5bf933..8e7d340a8c 100755 --- a/testsuite/pom.xml +++ b/testsuite/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/testsuite/proxy/pom.xml b/testsuite/proxy/pom.xml index e8b0eee480..a5e895fe55 100755 --- a/testsuite/proxy/pom.xml +++ b/testsuite/proxy/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/testsuite/tomcat6/pom.xml b/testsuite/tomcat6/pom.xml index e6e0896c56..6a4b45bc43 100755 --- a/testsuite/tomcat6/pom.xml +++ b/testsuite/tomcat6/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/testsuite/tomcat7/pom.xml b/testsuite/tomcat7/pom.xml index 82c3c9b4c8..7ea9b2ec2a 100755 --- a/testsuite/tomcat7/pom.xml +++ b/testsuite/tomcat7/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/testsuite/tomcat8/pom.xml b/testsuite/tomcat8/pom.xml index ff4e8d7734..7084f09bac 100755 --- a/testsuite/tomcat8/pom.xml +++ b/testsuite/tomcat8/pom.xml @@ -4,7 +4,7 @@ keycloak-testsuite-pom org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml 4.0.0 diff --git a/timer/api/pom.xml b/timer/api/pom.xml index 65784ad8d7..6ba6df0065 100755 --- a/timer/api/pom.xml +++ b/timer/api/pom.xml @@ -3,7 +3,7 @@ keycloak-timer-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/timer/basic/pom.xml b/timer/basic/pom.xml index 61e88eca27..fb7d5a053b 100755 --- a/timer/basic/pom.xml +++ b/timer/basic/pom.xml @@ -3,7 +3,7 @@ keycloak-timer-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT 4.0.0 diff --git a/timer/pom.xml b/timer/pom.xml index 1fbe9353a3..2d4243f42f 100755 --- a/timer/pom.xml +++ b/timer/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml diff --git a/util/embedded-ldap/pom.xml b/util/embedded-ldap/pom.xml index 1db0c5f8d8..2275c645c5 100644 --- a/util/embedded-ldap/pom.xml +++ b/util/embedded-ldap/pom.xml @@ -4,7 +4,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../../pom.xml 4.0.0 diff --git a/util/pom.xml b/util/pom.xml index 7928c9a2f6..1026fbaba8 100644 --- a/util/pom.xml +++ b/util/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT ../pom.xml diff --git a/wildfly/adduser/pom.xml b/wildfly/adduser/pom.xml index 8a2bc8bb1c..3df87fd06e 100755 --- a/wildfly/adduser/pom.xml +++ b/wildfly/adduser/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-wildfly-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT keycloak-wildfly-adduser diff --git a/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java b/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java index 7be53c6473..ff4cf35eed 100644 --- a/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java +++ b/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java @@ -154,9 +154,9 @@ public class AddUser { roles = rolesString.split(","); } else { if (realmName.equals("master")) { - roles = new String[] { "admin" }; + roles = new String[] { "admin", "account/manage-account" }; } else { - roles = new String[] { "realm-management/realm-admin" }; + roles = new String[] { "realm-management/realm-admin", "account/manage-account" }; } } diff --git a/wildfly/extensions/pom.xml b/wildfly/extensions/pom.xml index 82730408c4..654cb153ab 100755 --- a/wildfly/extensions/pom.xml +++ b/wildfly/extensions/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-wildfly-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT keycloak-wildfly-extensions diff --git a/wildfly/pom.xml b/wildfly/pom.xml index 0d24ee8d06..1194e998cf 100755 --- a/wildfly/pom.xml +++ b/wildfly/pom.xml @@ -3,7 +3,7 @@ keycloak-parent org.keycloak - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT Keycloak WildFly Integration diff --git a/wildfly/server-eap6-subsystem/pom.xml b/wildfly/server-eap6-subsystem/pom.xml index a8f2e51f33..1ea7c9f678 100755 --- a/wildfly/server-eap6-subsystem/pom.xml +++ b/wildfly/server-eap6-subsystem/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-wildfly-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT keycloak-eap6-server-subsystem diff --git a/wildfly/server-subsystem/pom.xml b/wildfly/server-subsystem/pom.xml index 5aa082e4da..13408f0911 100755 --- a/wildfly/server-subsystem/pom.xml +++ b/wildfly/server-subsystem/pom.xml @@ -20,7 +20,7 @@ org.keycloak keycloak-wildfly-parent - 1.7.0.Final-SNAPSHOT + 1.8.0.CR1-SNAPSHOT keycloak-wildfly-server-subsystem