ArmedGuy/discourse_sso_php — pull request #4 by adamcapriola (2014-04-30 18:38:11+00:00)
Title: Fixed invalidated payload

Figured out that `wp_sanitize_redirect` was invalidating the payload (which is why I had a redirect back to `/session/sso`). This code is a little better since now the user will be sent to the Discourse `return_path` if they were not originally logged in to WordPress.

(I'm now just awaiting logout SSO functionality to be added and this will be pretty tight!)