Update the CLI installation scripts for the SAML Elytron adapter so they work with WildFly 25 and later

Closes #11551
This commit is contained in:
Farah Juma 2022-04-20 15:49:19 -04:00 committed by Hynek Mlnařík
parent 0e9f2badff
commit 37e2298006
2 changed files with 9 additions and 3 deletions

View file

@ -54,5 +54,8 @@ end-if
if (outcome != success) of /subsystem=undertow/application-security-domain=other:read-resource if (outcome != success) of /subsystem=undertow/application-security-domain=other:read-resource
/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=keycloak-http-authentication) /subsystem=undertow/application-security-domain=other:add(http-authentication-factory=keycloak-http-authentication)
else else
echo Undertow already configured with Keycloak batch
/subsystem=undertow/application-security-domain=other:undefine-attribute(name=security-domain)
/subsystem=undertow/application-security-domain=other:write-attribute(name=http-authentication-factory,value=keycloak-http-authentication)
run-batch
end-if end-if

View file

@ -52,5 +52,8 @@ end-if
if (outcome != success) of /subsystem=undertow/application-security-domain=other:read-resource if (outcome != success) of /subsystem=undertow/application-security-domain=other:read-resource
/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=keycloak-http-authentication) /subsystem=undertow/application-security-domain=other:add(http-authentication-factory=keycloak-http-authentication)
else else
echo Undertow already configured with Keycloak batch
end-if /subsystem=undertow/application-security-domain=other:undefine-attribute(name=security-domain)
/subsystem=undertow/application-security-domain=other:write-attribute(name=http-authentication-factory,value=keycloak-http-authentication)
run-batch
end-if