Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 2.37 KB

Elytron_and_Jakarta_Authorization.adoc

File metadata and controls

65 lines (49 loc) · 2.37 KB

Elytron and Java Authorization Contract for Containers (JACC)

This document will guide you on how to enable JACC for your deployments using the default policy defined in the Elytron subsystem.

Defining a JACC Policy Provider

Elytron subsystem provides a built-in policy provider based on JACC specification. This policy provider is active by default in the default configuration.

Enabling JACC to a Web Deployment

You can enable JACC to web deployments by executing the following command:

[standalone@localhost:9990 /] /subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication,enable-jacc=true)

The command above defines a default security domain for applications if none is provided in jboss-web.xml. In case you already have a application-security-domain defined and just want to enable JACC you can execute a command as follows:

[standalone@localhost:9990 /] /subsystem=undertow/application-security-domain=my-security-domain:write-attribute(name=enable-jacc,value=true)

Enabling JACC to a EJB Deployment

You can enable JACC to EJB deployments by executing the following command:

[standalone@localhost:9990 /] /subsystem=ejb3/application-security-domain=other:add(security-domain=ApplicationDomain,enable-jacc=true)

The command above defines a default security domain for EJBs. In case you already have an application-security-domain defined and just want to enable JACC you can execute a command as follows:

[standalone@localhost:9990 /] /subsystem=ejb3/application-security-domain=my-security-domain:write-attribute(name=enable-jacc,value=true)
ℹ️
References in this document to Java Authorization Contract for Containers (JACC) refer to Jakarta Authorization unless otherwise noted. References in this document to Enterprise JavaBeans (EJB) refer to the Jakarta Enterprise Beans unless otherwise noted.