Skip to content

Missing JSON session support for "impersonate" (SwitchUserGrantedAuthority) #11775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
markusheiden opened this issue Aug 31, 2022 · 2 comments
Closed
Assignees
Labels
in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@markusheiden
Copy link
Contributor

Expected Behavior

"Impersonate" (SwitchUserGrantedAuthority) is supported by JSON session serialization (SecurityJackson2Modules).

Current Behavior

Not supported -> Exception.

Context

I want to use JSON sessions. SwitchUserGrantedAuthority is the only missing element that our application is using.

@sjohnr
Copy link
Member

sjohnr commented Sep 6, 2022

Hi @markusheiden, thanks for opening.

I'm wondering whether you have tried registering your own mixin(s) as a workaround for having the mixin in the framework itself? I would not expect switch user to be very common, which is possibly why it's not included.

@sjohnr sjohnr added in: web An issue in web modules (web, webmvc) and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 6, 2022
@sjohnr sjohnr self-assigned this Sep 6, 2022
@markusheiden
Copy link
Contributor Author

Hi @sjohnr,

I did register it myself in our application and it works fine.

I try to always contribute back the stuff that fixes my problems with OSS, so I did the MR.

IMO this functionality is well-documented "standard" Spring Web stuff and should be supported. I think that nobody noticed it missing because not that many people know about JSON serialization.

@sjohnr sjohnr removed their assignment May 12, 2023
@sjohnr sjohnr closed this as completed in 5c55039 Feb 29, 2024
@sjohnr sjohnr self-assigned this Feb 29, 2024
@sjohnr sjohnr added the status: duplicate A duplicate of another issue label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants