-
-
Notifications
You must be signed in to change notification settings - Fork 988
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
flows: clear flow state before redirecting to final URL #12788
Conversation
Signed-off-by: Jens Langhammer <[email protected]>
/cherry-pick version-2024.12 |
✅ Deploy Preview for authentik-storybook canceled.
|
✅ Deploy Preview for authentik-docs canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #12788 +/- ##
==========================================
+ Coverage 92.70% 92.77% +0.07%
==========================================
Files 769 769
Lines 38912 38920 +8
==========================================
+ Hits 36072 36109 +37
+ Misses 2840 2811 -29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
35ce708
to
48c020b
Compare
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-95fd34d9c0960cfae4454e6c85c0ccceeafb5c96
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s Afterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-95fd34d9c0960cfae4454e6c85c0ccceeafb5c96 Afterwards, run the upgrade commands from the latest release notes. |
Signed-off-by: Jens Langhammer <[email protected]>
* providers/oauth2: clear flow state before redirecting to final URL Signed-off-by: Jens Langhammer <[email protected]> * make flow executor invocation correct Signed-off-by: Jens Langhammer <[email protected]> * actually we can do this centrally Signed-off-by: Jens Langhammer <[email protected]> * make sure the state is really clean Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]>
…12788) (#12801) flows: clear flow state before redirecting to final URL (#12788) * providers/oauth2: clear flow state before redirecting to final URL * make flow executor invocation correct * actually we can do this centrally * make sure the state is really clean --------- Signed-off-by: Jens Langhammer <[email protected]> Co-authored-by: Jens L. <[email protected]>
Details
If a user re-loads the flow URL of an authorization flow after having used it, there may be left overs from the OAuth2 provider in the context which causes the flow to error. This PR clears the state before redirecting away.
Checklist
ak test authentik/
)make lint-fix
)If an API change has been made
make gen-build
)If changes to the frontend have been made
make web
)If applicable
make website
)