Skip to content

SEC-2902: "Missing" class: obtain pre-auth roles from request headers #3119

@spring-projects-issues

Description

@spring-projects-issues

Jeff Jensen (Migrated from SEC-2902) said:

I recently configured pre-auth with request headers only for both user id and roles. I did not find an example of this situation and all examples I found either did not load roles or roles were not loaded from request headers.

While Spring has a generic class for obtaining the user id from headers, I also did not find a generic class for obtaining the roles from headers.

Attached is a simple generic class for obtaining roles from request headers that Spring should have to complete the pair: PreAuthenticatedGrantedAuthoritiesWebAuthenticationDetailsSource

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementA general enhancementtype: jiraAn issue that was migrated from JIRA

    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