Title: OAuth fail: http:// vs https:// mismatch!
Last modified: December 7, 2021

---

# OAuth fail: http:// vs https:// mismatch!

 *  Resolved [mirilibre](https://wordpress.org/support/users/mirilibre/)
 * (@mirilibre)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/oauth-fail-http-vs-https-mismatch/)
 * Hello,
 * I would like to use the plugin, however I cannot go through the OAuth process
   without producing a “400: redirect_uri_mismatch”.
 * It is obvious to me that this redirect issue stems from the mismatch between 
   the http:// scheme in the plugin vs. the google app.
    In the backend of the WP
   plugin, it says Authorised JavaScript origin: [http://human-in-progress.com](http://human-in-progress.com)
   Authorised redirect URI: [http://human-in-progress.com/wp-admin/admin.php?page=sgdg_basic&action=oauth_redirect](http://human-in-progress.com/wp-admin/admin.php?page=sgdg_basic&action=oauth_redirect)
   It is not possible to change these URIs in the WP plugin. However, in the Google
   OAuth section, I must put in https:// because if I leave the original [http://](https://wordpress.org/support/topic/oauth-fail-http-vs-https-mismatch/?output_format=md),
   I cannot take the app out of its “testing” status and actually grant permission.
   This leaves me stuck, unable to fix the mismatch on either side. Please advise.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foauth-fail-http-vs-https-mismatch%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/oauth-fail-http-vs-https-mismatch/#post-15189142)
 * Hi,
    the URIs must match. Given that Google now only accepts HTTPS, that means
   you must use HTTPS.
 * Marek
 *  Thread Starter [mirilibre](https://wordpress.org/support/users/mirilibre/)
 * (@mirilibre)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/oauth-fail-http-vs-https-mismatch/#post-15215737)
 * Hi Marek,
 * Yes, I am aware of this. The problem is that the URIs in the plugin are fixed
   and I cannot change them to [https://](https://wordpress.org/support/topic/oauth-fail-http-vs-https-mismatch/?output_format=md)!
   because the fields with the URIs are greyed out and cannot be changed…
    Please
   advise.
 *  Plugin Author [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * (@marekdedic)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/oauth-fail-http-vs-https-mismatch/#post-15217117)
 * Hi,
    the first 3 fields in the plugin basic settings are just there for you to
   copy, they aren’t configurable. If you want to change your website to https, 
   you need to do it in the general settings of your webpage.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘OAuth fail: http:// vs https:// mismatch!’ is closed to new replies.

 * ![](https://ps.w.org/skaut-google-drive-gallery/assets/icon.svg?rev=3264618)
 * [Image and video gallery from Google Drive](https://wordpress.org/plugins/skaut-google-drive-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/skaut-google-drive-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/skaut-google-drive-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/skaut-google-drive-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/skaut-google-drive-gallery/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [mismatch](https://wordpress.org/support/topic-tag/mismatch/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marek Dědič](https://wordpress.org/support/users/marekdedic/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/oauth-fail-http-vs-https-mismatch/#post-15217117)
 * Status: resolved