-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add "remember me" option for log in #1310
Conversation
Passes on whether the user has selected the "remember me" option by setting a cookie, and if so, the jwt cookie set at login is set to be valid for 6 months instead of one week. Related: #1302
Your Testserver will be ready at https://1310.test.live.mm.rbg.tum.de in a few minutes. Logins
|
Help wanted: This feature has not been tested under saml login, how can I do it locally or in some other way? |
This would involve copying the saml configuration part from the production config.yaml as well as the certificates to your local computer (I have done this before but it's not a great & secure way of doing this...) I'd argue that the saml provider (login.tum.de) also has a remember me button that should be respected by gocast when it's checked and this feature therefore only should apply to the internal login. Then we additionally should implement handling the saml login preference. |
Thank you!
But the "remember me" option provided by TUM saml is supposed to be valid only "for the time your browser is opened". I'd say this seems to go against the requirement mentioned in #1302, since the valid period of the login status is even shorter. (That would come out like Moodle where one needs to login a hundred times per day... Or is that instead the correct configuration for saml login?) |
I don't know if Moodle does this correct. GoCast implements its own session management and I'm all for going against implementation references for SAML if that provides a smoother UX. But maybe we shouldn't issue jwts that are valid for 60 days but instead implement a way of refreshing sessions for logged in users who regularly visit the site. Maybe you can do some research on best practices of managing such sessions? I imagine there must be a way of having an indefinite session that
|
Thanks very much for the hint! I'll do further research on this in the next couple of days. |
Motivation and Context
Provide users with the option to make the login status valid for a longer period of time (6 months instead of 1 week).
Related: #1302
Description
Passes on whether the user has selected the "remember me" option by setting a cookie, and if so, the jwt cookie set at login is set to be valid for 6 months instead of one week.
Steps for Testing
Screenshots
Change of UI on login page:

