Skip to content

SEC-2364: Keep authorities fresh #2586

Open
@spring-projects-issues

Description

@spring-projects-issues

ZhangLiangliang (Migrated from SEC-2364) said:

A commons requirment is : Admin A update user B's authorities while user B has logged in,
and require user B could apply his new new authorities immediately without relogin.

My first thought is implementing custom UserDetailsService and UserDetails.
Make every call UserDetails#getAuthorities() is call DAO.

But whitout custom AuthenticationProvider this is could not reached.
Because AuthenticationProviders SEC provideed ( DaoAuthenticationProvider、CasAuthenticationProvider etc)
will copy authorities form UserDetails, apply AuthoritiesMapper and store them in Authentication object,
this will make authorities is cached.

Should/Could this be improved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: casAn issue in spring-security-casin: coreAn issue in spring-security-coretype: enhancementA general enhancementtype: jiraAn issue that was migrated from JIRA

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions