Opened 11 years ago
Closed 11 years ago
#30247 closed defect (bug) (fixed)
Cannot manually set token for wp_set_auth_cookie
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.3 | Priority: | low |
| Severity: | normal | Version: | 4.0 |
| Component: | Login and Registration | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (8)
#3
@
11 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to Future Release
- Owner set to rmccue
- Status changed from new to assigned
Added patch.
Note that this does change a pluggable function, but changing wp_generate_auth_cookie did the same, so I'm not overly concerned about this.
Note: it would be trivial to workaround this if
WP_Session_Manager::createwasn't final :)