-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Implement a new impersonation flow that uses action tokens #40767
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com>
5d9238a
to
684fe84
Compare
Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com>
Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com>
684fe84
to
4d22240
Compare
Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com>
I'm switching this PR to draft while the build is failing to allow maintainers to unsubscribe. Please ping individual maintainer (including me) if you need help. |
5811d25
to
9599fb5
Compare
Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com>
9599fb5
to
2e74209
Compare
Signed-off-by: twobiers <22715034+twobiers@users.noreply.github.com>
Thanks and sorry for notification spam, I didn't think about that. Will try to remember that. Anyway, I should be done by now and am happy to receive feedback. |
@@ -116,4 +116,11 @@ default Predicate<? super T>[] getVerifiers(ActionTokenContext<T> tokenContext) | |||
* @return see above | |||
*/ | |||
boolean canUseTokenRepeatedly(T token, ActionTokenContext<T> tokenContext); | |||
|
|||
/** | |||
* Returns {@code true} when a validity check needs to be beformed before invoking the action, {@code false} when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"beformed" -> "performed"
@@ -28,6 +28,7 @@ loginTitle=Sign in to {0} | |||
loginTitleHtml={0} | |||
impersonateTitle={0} Impersonate User | |||
impersonateTitleHtml=<strong>{0}</strong> Impersonate User | |||
impersonateError=Error happend while impersonating user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"happend" -> "happened"
This PR implements a new flow impersonation flow that uses action tokens.
Previously, the impersonation endpoint immediately creates an identity cookie and returns that to the Browser. This has a couple of downsides:
In this implementation with action tokens, the impersonation will happen once the returned redirect URI is opened in a browser, removing the limitations.
Fixes #10655