Giter Site home page Giter Site logo

Comments (10)

glassfishrobot avatar glassfishrobot commented on July 27, 2024

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
Reported by elygre

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
@shingwaichan said:
According to JSR 115 MR2, "*" means all the roles defined for the web app.
It is not any users there.

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
elygre said:
Shing Wai Chan Yes, that is correct. This issue is an enhancement request for a new auth-constraint that does not require roles, but instead just requires any valid user.

The use case is very common. As show above, the google app-engine deviates from the servlet spec and redefines this aspect of web.xml to support the use case. That should be a strong argument that there is a market requirement.

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
@shingwaichan said:
"*" is for any roles rather than users as defined in JSR 115.
We need to investigate a backward compatible solution.

One way to achieve this is to have the realm to add a universal role to any authenticated users. This is how GlassFish resolve this issue.
You can find more details in
https://blogs.oracle.com/swchan/entry/assign_groups

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
elygre said:
I totally agree that we need a backward compatible solution. The jira issue does not suggest using the role name "*" at all, but clearly states that this "conflicts with the current spec", and suggests that something else is needed, "maybe the something like this would work":

<auth-constraint anyAuthenticatedUserAllowed="true" />

The GlassFish solutions is interesting. I would hope for a servlet-level solution (which would then be supported by all appservers), but at least it serves to further validate the requirement

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
@shingwaichan said:
A special role "**" is added to achieve this in the spec.
Please see section 13.3 of the Servlet 3.1 PFD for details.

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
@shingwaichan said:
See also section 13.4.1.3 in Servlet 3.1 PFD.

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
This issue was imported from java.net JIRA SERVLET_SPEC-34

from servlet.

glassfishrobot avatar glassfishrobot commented on July 27, 2024

@glassfishrobot Commented
Marked as fixed on Thursday, February 28th 2013, 4:29:20 pm

from servlet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.