[wp-trac] [WordPress Trac] #30247: Cannot manually set token for wp_set_auth_cookie

WordPress Trac noreply at wordpress.org
Tue Nov 4 06:04:46 UTC 2014


#30247: Cannot manually set token for wp_set_auth_cookie
------------------------------------+-----------------------------
 Reporter:  rmccue                  |      Owner:
     Type:  defect (bug)            |     Status:  new
 Priority:  low                     |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  4.0
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 While the underlying `wp_generate_auth_cookie` accepts passing in a token
 rather than generating one, `wp_set_auth_cookie` does not.

 This is problematic if developing an SSO plugin, as you'll end up with
 different tokens for the differing cookie domains (unless you reimplement
 `wp_set_auth_cookie`). Being able to pass the token in when calling would
 allow cookies to be invalidated automatically across all cookie domains on
 logout.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30247>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list