Skip to content

Commit

Permalink
Fixes #4341 - Upgrade to Exousia 3.0.0-M3 (#4400)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Dec 15, 2024
1 parent e6548c7 commit dd986fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import jakarta.servlet.ServletException;
import java.util.Set;
import org.glassfish.exousia.AuthorizationService;
import org.glassfish.exousia.modules.def.DefaultPolicyConfigurationFactory;
import org.glassfish.exousia.modules.def.DefaultPolicyFactory;

/**
Expand Down Expand Up @@ -119,6 +120,12 @@ private void createAuthorizationService(WebApplication context) throws ServletEx

PolicyFactory.setPolicyFactory(new DefaultPolicyFactory());

/*
* Required since Exousia 3.0.0-M3.
*/
System.setProperty("jakarta.security.jacc.PolicyConfigurationFactory.provider",
DefaultPolicyConfigurationFactory.class.getName());

// No need for the previous policy (likely the Java SE "JavaPolicy") to be consulted.
// Policy.setPolicy(null);

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<crac.version>0.1.3</crac.version>
<eclipselink.version>5.0.0-B04</eclipselink.version>
<epicyro.version>3.1.0</epicyro.version>
<exousia.version>3.0.0-M2</exousia.version>
<exousia.version>3.0.0-M3</exousia.version>
<expressly.version>6.0.0-M2</expressly.version>
<free-port-finder.version>1.1.1</free-port-finder.version>
<glassfish-client-ee11.version>1.6.1</glassfish-client-ee11.version>
Expand Down

0 comments on commit dd986fe

Please sign in to comment.