• Henrique

    (@deprosanacoreia)


    I am trying to contact [ email deleted ], but it seems that this email is inactive
    How I can contact with their support?
    I am trying to implement SSO. Once the user logs in a WordPress, the access is automatically granted on a non-WordPress site.
    I followed the docs at wp-oauth.com/docs/how-to/setup-wp-oauth-server-for-single-sign-on-with-wordpress
    I also followed the instructions of this video: https://www.youtube.com/watch?v=VWLXMd2m4XI
    I have successfully requested the access token, but for some reason I am not able to get the user data.
    Could it be related to some security tools in this case? Or the endpoint is wrong?

    Here is the part that is not working
    // Fetch user details
    $userUrl = 'https://wp-site/oauth/me?access_token='.$accessToken;
    $ch = curl_init($userUrl);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_POST, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $userResponse = curl_exec($ch); // Execute the request
    curl_close($ch);
    // Decode the user data
    if (!$userResponse) {
    exit('Error fetching user details:');
    }
    $userDetails = json_decode($userResponse, true);

    Nothing is coming out of userResponse

    The page I need help with: [log in to see the link]

The topic ‘Oauth server plugin support needed for SSO’ is closed to new replies.