Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author hectavex

    (@hectavex)

    Dan, thanks for trying the plugin. I’d like to make sure WP-OAuth works for Google Apps domains. I’ll need to do some research/testing and get back to you with an answer. Is there anything unique about your domain setup that I should know about?

    Plugin Author hectavex

    (@hectavex)

    In re-reading your question, my reply was hasty. I see that you want to be able to restrict access to a domain, thus limiting the group of people who can register/login.

    That is a great idea for a feature. I’ve added it as an issue tagged ‘Enhancement’ at the Github repo here. Refer to that issue if you want to track development on this feature. I’m going to mark this resolved.

    it can easily be done by editing the plugin login-google.php file
    find the get_oauth_code function and update the params array
    add hd parameter to array and mention your domain name.

    $params = array(
    ‘response_type’ => ‘code’,
    ‘client_id’ => CLIENT_ID,
    ‘scope’ => SCOPE,
    ‘hd’ => ‘example.com’,
    ‘state’ => uniqid(”, true),
    ‘redirect_uri’ => REDIRECT_URI,
    );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to limit login to specific google-apps domain’ is closed to new replies.