When adding security domain using CLI command giving an error as WFLYCTL0155: 'realm' may not be null
Issue
If we add security domain using below cli command it gives ERROR "ERROR as WFLYCTL0155: 'realm' may not be null"
standalone@127.0.0.1:9990 /] test-security-domain add --name=testSD --realms=[\{realm=testrealm,role-decoder=from-roles-attribute},\{realm=local,role-mapper=super-user-mapper}] --default-realm=testrealm --permission-mapper=default-permission-mapper
WFLYCTL0155: 'realm' may not be null
But if we use the alternative CLI command it works,
[standalone@127.0.0.1:9990 /] /subsystem=elytron/security-domain=testSD:add(realms=[\{realm=testrealm,role-decoder=from-roles-attribute},\{realm=local,role-mapper=super-user-mapper}],default-realm=testrealm,permission-mapper=default-permission-mapper)
{"outcome" : "success"}
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.4
- OpenJDK
- 17
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.