Skip to content

Commit cbd491f

Browse files
committed
support variables in deny message
1 parent 71dc2d1 commit cbd491f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/instipod/keycloakauthenticators/DenyLoginAuthenticator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public void authenticate(AuthenticationFlowContext authenticationFlowContext) {
2626
if (authConfig!=null && authConfig.getConfig()!=null) {
2727
//make sure the authenticator is configured
2828
String errorMessage = authConfig.getConfig().get(DenyLoginAuthenticatorFactory.DENIAL_MESSAGE);
29+
errorMessage = AuthenticatorUtils.variableReplace(authenticationFlowContext, errorMessage);
2930

3031
if (errorMessage.length() == 0) {
3132
logger.error("Denial message is not configured!");

0 commit comments

Comments
 (0)