Skip to content

[Doc] Clarify that disabling principal parameter also disables JSR-250 annotations #2763

@Allen-wick

Description

@Allen-wick

Search before asking

Documentation Related

Currently, the documentation for the shiro-jaxrs module does not clearly state the cascading effects of the org.apache.shiro.web.disable-principal configuration parameter.

Specifically, if an operator sets this parameter to disable the principal, it inherently disables the processing of JSR-250 annotations (such as @RolesAllowed, @DenyAll), because these annotations require a valid principal to evaluate against.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions