Skip to content
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

WordPress "remember me" is ignored by Duo #72

Open
jasonmarlin opened this issue Jun 14, 2024 · 0 comments
Open

WordPress "remember me" is ignored by Duo #72

jasonmarlin opened this issue Jun 14, 2024 · 0 comments

Comments

@jasonmarlin
Copy link

The "remember me" checkbox is not honored when the Duo Universal plugin is active.

Description

Some investigation into the Duo classes shows that "remember me" is ignored by Duo and therefore results in all users having default session cookies set rather than longer term.

Expected Behavior

Expect that checking "remember me" in the login interface for WordPress would create auth cookies that are - by default - 14 days until expiration.

Actual Behavior

Regardless of "remember me," auth cookies are set to short duration session cookies.

Steps to Reproduce

  1. With Duo active, check the "remember me" checkbox on the WP login screen
  2. Note that rather than the 14 day expiration expected upon successful login, wordpress_login and wordpress_sec cookies are short lived session cookies

Workarounds

My current workaround is to override the pluggable core function wp_set_auth_cookie and force the desired cookie expiration. This isn't ideal for reasons of maintainability over time and I would rather let the user determine if they'd like to have longer sessions or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant