-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Do not logout on auth on public share page #9756
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
Conversation
If the user is authenticated to cloudA. And then visits a password protected public link where we authenticate. We should rotate the token to the new session id. Else they have to reauthenticate Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
c81f991 to
8da4fe3
Compare
Codecov Report
@@ Coverage Diff @@
## master #9756 +/- ##
=============================================
- Coverage 51.72% 29.96% -21.77%
+ Complexity 25753 24452 -1301
=============================================
Files 1638 1478 -160
Lines 96052 79956 -16096
Branches 1385 0 -1385
=============================================
- Hits 49682 23955 -25727
- Misses 46370 56001 +9631
|
| $this->session->regenerateId(); | ||
| $newId = $this->session->getId(); | ||
| try { | ||
| $this->tokenProvider->renewSessionToken($oldId, $newId); |
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.
Do we really want to work with the provider directly here? IMO it should be handled via some kind of manager service. What do you think?
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.
This is just the quick fix. Once #9518 is in this all abstracted away from the users.
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.
But fair enough. Some manager in the public I terface to tackle this makes sense...
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.
Maybe an extra manager is overkill here. Can't we just add a parameter (or new function) to the ISession?
|
#9823 is probably better. |
If the user is authenticated to cloudA. And then visits a password
protected public link where we authenticate. We should rotate the token
to the new session id. Else they have to reauthenticate
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl