WordPress.org

Ready to get started?Download WordPress

Forums

multiwp single signon (11 posts)

  1. vurea
    Member
    Posted 5 years ago #

    anyone know how to do single signon across multiple wordpress blogs within the same domain for 2.6?

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    1. WP Hive Plugin - http://wp-hive.com/overview/
    2. WordPress MultiUser platform - http://mu.wordpress.org/
    3. WordPress Codex which includes the two above and other alternatives
    http://codex.wordpress.org/Installing_Multiple_Blogs

  3. vurea
    Member
    Posted 5 years ago #

    already checked those solutions out, the issue im having is cookie related.

    i already have one database of users integrated.. just need to fix cookie issuing across domain.

  4. Dgold
    Member
    Posted 5 years ago #

    Check this thread, especially the posts by Otto42,

    http://wordpress.org/support/topic/206509?replies=17

    He tells a way to use 1 DB user table for multiple sites. He also says somethin' about cookies in there.

  5. vurea
    Member
    Posted 5 years ago #

    indeed that topic was started by me, i already searched through the whole wordpress forums just seeing if anyone has new ideas.

    to better explain.

    I already have single users integrated across multiple blog meaning they all share one login/password for all userss. they are already using same database. now the problem im having is cookies..

    2nd blog and third blog needs to accept cookies from first blog to assign single logon.. im even willing to pay someone to do this:P

  6. taffeljohan
    Member
    Posted 5 years ago #

    I think the problem is in the salt used to authorize cookies. See wp_salt() in pluggable.php. The salt is stored as a wordpress option, which means it depends on your wordpress installation, and even if you have shared user tables, the salt used will be different.

    Looking at the code, there seem to be three ways to circumvent this:

    1. Define AUTH_SALT and LOGGED_IN_SALT in your wp-config.php for each installation using the same values for each (if you have a shared wp-config.php, this is simple).
    2. Use the 'salt' filter to alter the output of wp_salt() so it is the same for each installation.
    3. Write your own wp_salt(). It's pluggable.

    The first option is definitely easiest, although it means having more keys and stuff in the same place.

    I'll try this out when I get a chance.

  7. taffeljohan
    Member
    Posted 5 years ago #

    Update: defining AUTH_SALT and LOGGED_IN_SALT in `wp-config.php' as suggested in my previous post works for me. You also have to have code that defines COOKIE_HASH in the same way for all blogs; the default is a hash of the siteurl.

  8. seocoalition
    Member
    Posted 5 years ago #

    Update: defining AUTH_SALT and LOGGED_IN_SALT in `wp-config.php' as suggested in my previous post works for me. You also have to have code that defines COOKIE_HASH in the same way for all blogs; the default is a hash of the siteurl.

    Could it be possible to write a tutorial real quick?

    I am using several different subdomains but one database and for usability purposes being able to login in one blog and be able to carry over to others can really be useful.

    Any help would be greatly appreciated.

    TIA

  9. vurea
    Member
    Posted 5 years ago #

    wow thx for the reply! im gonan try this real quick!

  10. taffeljohan
    Member
    Posted 5 years ago #

    I've written about this in a bit more detail here:

    http://engine.taffel.se/2008/11/18/multiblog-single-login-in-wp-26/

  11. vurea
    Member
    Posted 5 years ago #

    thx alot taffeljohan!

    now i gotta figure out how to integrate comments from multi blog ><

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.