-
Notifications
You must be signed in to change notification settings - Fork 36
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
Cycle session ID on login #2813
Merged
Merged
Commits on Feb 29, 2024
-
Cycle sessionid when changing account
Does not do antyhing for logging out(i.e. removing account) just when changing from either no account to an account or from one account to another
Configuration menu - View commit details
-
Copy full SHA for fe9cfce - Browse repository at this point
Copy the full SHA fe9cfceView commit details -
this func is imported alot of places, makes no sense for this to be marked as private
Configuration menu - View commit details
-
Copy full SHA for ae36aa5 - Browse repository at this point
Copy the full SHA ae36aa5View commit details -
have to mock away the cycle_key thingy else existing tests fail. Will probably need separate integration tests to test session ID cycling
Configuration menu - View commit details
-
Copy full SHA for df41516 - Browse repository at this point
Copy the full SHA df41516View commit details -
Configuration menu - View commit details
-
Copy full SHA for 783d5c0 - Browse repository at this point
Copy the full SHA 783d5c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for be8b1f5 - Browse repository at this point
Copy the full SHA be8b1f5View commit details -
Do not cycle session id in ensure_account
Avoids session id changing on every request. session will still be cycled on login by the functions that directly handle login. ensure_account either just sets the request.account field to the match the already logged in user, or sets the account to be the anonymous user. Neither should trigger a session_id.
Configuration menu - View commit details
-
Copy full SHA for 1897710 - Browse repository at this point
Copy the full SHA 1897710View commit details -
Configuration menu - View commit details
-
Copy full SHA for 467e48d - Browse repository at this point
Copy the full SHA 467e48dView commit details -
Set client fixture as function scoped
got some issues testing session stuff when the client was shared amongst all tests, maybe it got old or something as well. Getting a fresh client for each test was a lot better
Configuration menu - View commit details
-
Copy full SHA for ee92404 - Browse repository at this point
Copy the full SHA ee92404View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72c46d0 - Browse repository at this point
Copy the full SHA 72c46d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c23abd - Browse repository at this point
Copy the full SHA 1c23abdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef7eca5 - Browse repository at this point
Copy the full SHA ef7eca5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c46e2b - Browse repository at this point
Copy the full SHA 3c46e2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96190ff - Browse repository at this point
Copy the full SHA 96190ffView commit details -
Co-authored-by: Morten Brekkevold <morten.brekkevold@sikt.no>
Configuration menu - View commit details
-
Copy full SHA for 3714383 - Browse repository at this point
Copy the full SHA 3714383View commit details -
Add message to assert statements
Co-authored-by: Morten Brekkevold <morten.brekkevold@sikt.no>
Configuration menu - View commit details
-
Copy full SHA for 19c5d84 - Browse repository at this point
Copy the full SHA 19c5d84View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.