Skip to content

Commit

Permalink
Allow two stars as rolename as described in servlet spec
Browse files Browse the repository at this point in the history
  • Loading branch information
punkepa committed Apr 24, 2024
1 parent fb4963a commit ae64f2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ public ServletDeploymentManagerBuildItem build(List<ServletBuildItem> servlets,
if (constraint.getAuthConstraint() == null) {
// no auth constraint means we permit the empty roles
securityConstraint.setEmptyRoleSemantic(PERMIT);
} else if (roleNames.size() == 1 && roleNames.contains("*")) {
} else if (roleNames.size() == 1 && (roleNames.contains("*") || roleNames.contains("**"))) {
securityConstraint.setEmptyRoleSemantic(AUTHENTICATE);
} else {
securityConstraint.addRolesAllowed(roleNames);
Expand Down

0 comments on commit ae64f2c

Please sign in to comment.