• Resolved Marc Nilius

    (@zottto)


    Hi!

    I’m using UpDraft Plus 1.9.17 with WP 3.9.2 and wanted to save my backups to Google Drive. First I thought, my OAuth credentials were wrong, but than I found out, that the authentication URL is kind of mis-formatted:

    After adding Client ID and Secret I clicked the link to authenticate my Google account. I got an error like this:
    Invalid response_type: code;client_id=1063 …

    The Google server did not accept the parameter response_type because the separator semicolon was not recognized. I replaced all semicolons with “&” and than the authentication worked well.

    I know that parameter separation with “;” is a valid possibility but somehow the Google server does not like this.

    Could you please check this?

    Thanks,
    Marc

    https://wordpress.org/plugins/updraftplus/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi Marc,

    Have you seen this? http://updraftplus.com/support/configuring-google-drive-api-access-in-updraftplus/

    I’m having trouble working out from your report which bits of the instructions the things you are describing correspond to – can you clarify, please?

    Best wishes,
    David

    Thread Starter Marc Nilius

    (@zottto)

    Hi David,

    I have created a new client ID in the Google Developer Console and than:

    – added client ID and Secret to the plugins settings page
    – saved the settings
    – got back to the settings page to click the link to authorize the google account

    Clicking this link I got the error message (from the google servers). I grabbed the URL which was listed in the adress bar and replaced all “;” by “&” and than the URL worked, which means that I also saw the dialog to allow Updraft Plus the access to my Google account.

    So now, my Google Drive settings are all working fine and the backup is working, too. I just had to manually correct the authorize URL.

    I hope that description was a little bit clearer.

    Marc

    Plugin Author David Anderson

    (@davidanderson)

    When you set up the client ID in the Google console, what URL did you enter?

    David

    Thread Starter Marc Nilius

    (@zottto)

    Thread Starter Marc Nilius

    (@zottto)

    As an update:

    I have these lines in my php.ini:
    arg_separator.output=”;”
    arg_separator.input=”;&”

    If I remove them, the Google Drive authentication works well. With these two lines included in the php.ini, the above mentioned error occurs while trying to authenticate my google account. (But I need these two lines because of another project, so it is no option two remove them).

    Marc

    Plugin Author David Anderson

    (@davidanderson)

    Hi Marc,

    As far as I know, there’s no way to persuade Google to use a different separator in the URLs that it calls as part of its authentication procedure. But, you only have to authenticate once, so, if you’ve succeeded, then it should keep working in future.

    Best wishes,
    David

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Google Drive Authentication URL wrong’ is closed to new replies.