Using the same log-in credentials you use for WordPress.com, you’ll now be able to register for and sign in to self-hosted WordPress.org sites quickly and securely.
Benefits
- Millions of users: By adding WordPress.com Single Sign On, you’ll become part of a large family that makes it easy for WordPress.com users to explore new sites.
- Compatible with your existing sign-in system: WordPress.com Single Sign On is used as a complementary sign-in option to your existing registration system. Once a user connects, they’ll have a user account on your site.
- Respects your Registration Settings: WordPress.com Single Sign On follow the directives in Settings → General, with respect to whether or not you enable new user registrations. If you don’t, existing users can still use it to log in.
- Trusted relationship: Allow users to sign-in with the same credentials they use every day on WordPress.com. This takes the pain out of having to remember and manage a new log-in for another service.
Setting things up
Once you’ve activated the module in Jetpack, you’re done! All the back-end authentication requests use your site’s already-established link to WordPress.com.
Custom Settings
There are two custom overrides that you can do, and both are done by defining constants in your wp-config.php
file.
By default, if there isn’t already a local account linked to the WordPress.com account, Single Sign On will automatically link the verified WordPress.com account to a new local account with a matching email address, and log the user in. If you’d prefer to disable this functionality, and require your users to log in to their pre-existing local accounts to manually link the accounts, add this line to your wp-config.php
file just before /* That's all, stop editing! Happy blogging. */
define( 'WPCC_MATCH_BY_EMAIL', false );
The WordPress.com Single Sign On module will also respect your default settings with regard to New User Registration. If you have registration disabled, then WPCC will not create a new user account if someone is trying to log in with an unrecognized email. If you have registration turned on, though, it will automatically create a new user for them, and log them in. If you would like to allow users to register for your site with a WordPress.com account, even though you disallow normal registrations, add this line to your wp-config.php
file just before /* That's all, stop editing! Happy blogging. */
define( 'WPCC_NEW_USER_OVERRIDE', true );
Single Sign On is a replacement for the (now deprecated) WordPress.com Connect (WPCC) module. To provide backward compatibility, it uses the same prefix on the override constants.
