Title: Authentication failed
Last modified: September 27, 2023

---

# Authentication failed

 *  Resolved [denrosse](https://wordpress.org/support/users/denrosse/)
 * (@denrosse)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/authentication-failed-33/)
 *  Photonics failed on the ‘Authentication’
 * I followed the documentation to get credentials, which worked.
   Name: Web client
   1Authorized JavaScript origins: (none)Authorized redirect URIsURIs 1: [https://pastorijtuinbertem.be](https://pastorijtuinbertem.be)
   URIs 2: [https://pastorijtuinbertem.be/wp-admin/admin.php?page=photonic-auth&source=google](https://pastorijtuinbertem.be/wp-admin/admin.php?page=photonic-auth&source=google)
 * Thanks for your help
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fauthentication-failed-33%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/authentication-failed-33/#post-17082816)
 * Where are you seeing the error for authentication failure?
 *  Thread Starter [denrosse](https://wordpress.org/support/users/denrosse/)
 * (@denrosse)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/authentication-failed-33/#post-17083525)
 * Web browser: vivaldi
   Website: pastorijtuinbertem.beVia Photonic -> Authentication:
   Google Photos -> step 1: Authentication
 * Log in with Google
   Access blocked: This app’s request is invalid.[ptuinbertem@gmail.com](https://wordpress.org/support/topic/authentication-failed-33/ptuinbertem@gmail.com?output_format=md)
   You can’t log in because this app sent an invalid request. Please try again later
   or contact the developer regarding this issue. Learn more about this errorIf 
   you are the developer of this app, view the error details.Error 400: redirect_uri_mismatch
 * You can’t sign into the app because it doesn’t comply with Google’s OAuth 2.0
   policy.
 * If you are the app developer, register the redirect URI in the Google Cloud Console.
   
   Request details: redirect_uri=https://www.pastorijtuinbertem.be/wp-admin/admin.
   php?page=photonic-auth&source=google
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/authentication-failed-33/#post-17083541)
 * You have specified in your app configuration in Google that your redirect URI
   is `https://pastorijtuinbertem.be/wp-admin/admin.php?page=photonic-auth&source
   =google`, but when you are making the request, you are making it from `https://
   www.pastorijtuinbertem.be/wp-admin/admin.php?page=photonic-auth&source=google`.
   Basically, your site has a “www” in front of it (maybe your domain registrar 
   has set it up to automatically add “www”), but you have configured your redirect
   URI without the “www”. That is causing the mismatch.
 * You can add another entry to the redirect URI list with `https://www.pastorijtuinbertem.
   be/wp-admin/admin.php?page=photonic-auth&source=google`, which should take care
   of this.
    -  This reply was modified 2 years, 8 months ago by [Sayontan Sinha](https://wordpress.org/support/users/sayontan/).

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

The topic ‘Authentication failed’ is closed to new replies.

 * ![](https://ps.w.org/photonic/assets/icon.svg?rev=1972449)
 * [Photonic Gallery & Lightbox for Flickr, SmugMug & Others](https://wordpress.org/plugins/photonic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photonic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photonic/)
 * [Active Topics](https://wordpress.org/support/plugin/photonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photonic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photonic/reviews/)

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/authentication-failed-33/#post-17083541)
 * Status: resolved