From 2a03d230984f473a48da217a53f7453c1d7ee7a0 Mon Sep 17 00:00:00 2001 From: mposolda Date: Wed, 2 Dec 2015 08:50:58 +0100 Subject: [PATCH] Fix typos --- .../auth-server-docs/reference/en/en-US/modules/auth-spi.xml | 2 +- .../org/keycloak/services/resources/IdentityBrokerService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/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); }