Skip to content

Reactive SwitchUserWebFilter for user impersonation #8687

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

Conversation

aotrzonsek
Copy link

Before:
It was not possible to switch the user context by using Spring WebFlux Security

After:
Added an appropriate filter that allows switch the user context in Spring WebFlux Security

Closes gh-8599

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 12, 2020
@eleftherias eleftherias self-assigned this Jun 16, 2020
Copy link
Contributor

@eleftherias eleftherias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @aotrzonsek!
I have left some feedback inline.

@aotrzonsek aotrzonsek force-pushed the gh-8599-switch-user branch from b9d5eb5 to 5590f29 Compare July 7, 2020 10:01
Copy link
Contributor

@eleftherias eleftherias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates @aotrzonsek!

I have left a few more comments.

There are also some comments from the previous review that are unresolved (test names and Javadocs)


/**
* Switch User processing filter responsible for user context switching.
* It is a reactive reimplementation of the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have the full explanation of the filter here, rather than directing the users to look at SwitchUserFilter.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


/**
* @author Artur Otrzonsek
* @since 5.2.6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to add @since for test classes.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@eleftherias eleftherias added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 10, 2020
Before:
It was not possible to switch the user context by using Spring WebFlux Security

After:
Added an appropriate filter that allows switch the user context in Spring WebFlux Security

Closes spring-projectsgh-8599
@aotrzonsek aotrzonsek force-pushed the gh-8599-switch-user branch from 5590f29 to 98b472b Compare July 22, 2020 08:05
@eleftherias
Copy link
Contributor

Thanks @aotrzonsek! This is now merged into master via b22c50c.

@eleftherias eleftherias added the status: duplicate A duplicate of another issue label Jul 22, 2020
@eleftherias eleftherias added this to the 5.4.0-RC1 milestone Jul 22, 2020
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

Successfully merging this pull request may close these issues.

Missing Reactive SwitchUserWebFilter for user impersonation
3 participants