WordPress.org

Ready to get started?Download WordPress

Forums

Simple Google Connect
[resolved] Odd 'state' issue (2 posts)

  1. kiakanpa
    Member
    Posted 1 year ago #

    Interesting issue here:

    I'm looking in the function sgc_oauth_catcher():

    in sgc-base.php there is the following check
    if ( !empty( $_REQUEST['state'] ) )

    Now, checking the URL returned by google, there is a state=popup_profile_connect - but strangely the $_REQUEST['state'] is null.

    If I replace the final redirect in sgc_oauth_catcher():

    wp_redirect(home_url());

    Which should obviously never be reached, with:

    do_action('sgc_state_popup_profile_connect', $oauth );

    which would be called if $_REQUEST['state'] wasn't returning null it works fine.

    So... any ideas why $_REQUEST['state'] is returning null to php when I can clearly see it in the url, and why $_REQUEST['code'] is returning the correct value (which is also visible in the url)?

    http://wordpress.org/extend/plugins/simple-google-connect/

  2. kiakanpa
    Member
    Posted 1 year ago #

    lol - ignore me, it was an issue with the redirect being included in the variable.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.