-
Notifications
You must be signed in to change notification settings - Fork 153
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
feat(Cookies): Updates WP Cookie Expiration to Same as Session Length #514
feat(Cookies): Updates WP Cookie Expiration to Same as Session Length #514
Conversation
Signed-off-by: Menno van den Ende <50165380+menno-ll@users.noreply.github.com>
Hi @timnolte, thanks! |
…ion_length Signed-off-by: Menno van den Ende <50165380+menno-ll@users.noreply.github.com>
Hi @timnolte, I have resolved the conflict. |
@menno-ll yeah, there is an issue with the Coverage Report GitHub Action I'm using when PRs are opened from forks. I have an issue opened with the GitHub Actions maintainer in it. Thanks for fixing the conflict! |
Thanks, this will be of good use. |
@menno-ll I was sort of hoping to have the PKCE support in the next release but I will probably just go ahead and cut a new release this week at some point. Might be over the weekend. |
All good! But no need to work in the weekend, everybody deserves some days off in a week 😄 . |
@menno-ll ah, well, since I really don't have the provisions to work on this during my day job, all of my work and support for this plugin happens during my nights and weekends. 😉 |
All Submissions:
Changes proposed in this Pull Request:
Closes #512 .
This change allows the user to, using a filter, make the WP user session length the same as the refresh token expiration.
So if a refresh token is valid for 30 days, the wordpress login cookies will then be set for 30 days instead of the default of 14 days. Please note that the remember-me option needs to be enabled as well, as wordpress does not allow changing the cookie expiration if remember-me is not used.
Please note that this PR requires the code of PR #513 , and also includes that code for now untill PR #513 is merged.
How to test the changes in this Pull Request:
add_filter( 'openid-connect-generic-remember-me', '__return_true' );
to the functions.php file.add_filter( 'openid-connect-generic-use-token-refresh-expiration', '__return_true' );
to the functions.php file.Other information:
Changelog entry