-
Create an elytron properties realm "DemoPropsRealm":
/subsystem=elytron/properties-realm=DemoPropsRealm:add(groups-attribute=groups,\ groups-properties={path=demo-roles.properties,relative-to=jboss.server.config.dir},\ users-properties={path=demo-users.properties,relative-to=jboss.server.config.dir,plain-text=true})
-
Create an elytron security domain "DemoDomain" related to "DemoPropsRealm":
/subsystem=elytron/security-domain=DemoDomain:add(realms=[{realm=DemoPropsRealm,role-decoder=groups-to-roles}],\ default-realm=DemoPropsRealm,permission-mapper=default-permission-mapper)
-
Create an elytron http authentication factory related to "DemoDomain":
/subsystem=elytron/http-authentication-factory=demo-http-auth:add(\ http-server-mechanism-factory=global,\ security-domain=DemoDomain,\ mechanism-configurations=[\ {mechanism-name=BASIC, mechanism-realm-configurations=[{realm-name=DemoApplicationDomain}]}])
-
Map an ejb3 subsystem application security domain to our DemoDomain:
/subsystem=ejb3/application-security-domain=DemoApplicationDomain:add(security-domain=DemoDomain)
-
Link an undertow subsystem application security domain to our http-authentication-factory:
/subsystem=undertow/application-security-domain=DemoApplicationDomain:add(http-authentication-factory=demo-http-auth)
-
Notifications
You must be signed in to change notification settings - Fork 0
sfcoy/jax-rs-basic-auth
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Demonstration of BASIC authentication using the Elytron subsystem in WildFly 15
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published