Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2013
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. I didn't want the plugin to automatically delete preexisting user accounts, so it just fails. That's about as graceful as it gets right now. You could delete the old users, and they'll be recreated as SSO users. If you need to keep those user accounts in place (e.g: If they have posts attributed to them), you could change their WP passwords to match what the SSO plugin is expecting.
  2.  
  3. Wordpress users can't login without a password, so the plugin has to make one up on behalf of the user and log them in using that. The way it does this is by creating a SHA-256 HMAC hash of the user's login name, with the Wordpress AUTH_KEY constant as the hash password. Wordpress does some additional hashing and salting beyond that.
  4.  
  5. If you're interested in source code, the relevant lines are here:
  6. http://plugins.svn.wordpress.org/saml-20-single-sign-on/tags/0.9.1/lib/classes/saml_client.php line 28
  7. http://plugins.svn.wordpress.org/saml-20-single-sign-on/tags/0.9.1/lib/classes/saml_client.php line 125
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement