The redirect URI (where the response is returned to) has to be registered in the APIs console, and the error is indicating that you haven’t done that, or haven’t done it correctly.
Go to the console for your project and look under API Access. You should see your client ID
& client secret
there, along with a list of redirect URIs. If the URI you want isn’t listed, click edit settings and add the URI to the list.
EDIT: (From a highly rated comment below) Note that updating the google api console and that change being present can take some time. Generally only a few minutes but sometimes it seems longer.
Related Posts:
- What are the main differences between JWT and OAuth authentication?
- Google OAuth 2 authorization – Error: redirect_uri_mismatch
- Sign in with Google temporarily disabled for this app
- Change GitHub Account username
- How to use OAuth authentication with REST API via CURL commands?
- How to validate a user from ouside wordpress/php?
- Override user authentication with external credentials
- JWT authentication with WP – Approach
- why does WordPress need two cookies for auth/login
- Extend WordPress (4.x) session and nonce
- How to use WordPress authentication on non-WordPress page?
- How does ifttt.com authenticate a supplied WordPress account
- Storing Dropbox Authentication?
- WordPress as a OAuth Provider
- Authentication for wordpress website
- How to leverage authentication outside of WordPress?
- How do I execute a wp_remote_get call using NTLM authentication?
- Outgoing proxy connection problem
- WordPress SSO with MemberPress
- Authenticated request to WP REST API V2 returning 403 error on /users/me [closed]
- Set authentication cookies to be shorter but then extend with every page load
- WordPress user Authentication
- WordPress asking for FTP details when installing plugins
- How to password protect media library files (PDF)?
- How to use Azure AD for authentication?
- implement authentication and authorization to user
- for a role-protected page, programmatically login user and load page
- guest authentication
- wordpress 3.9 remote token auth
- How to set up Shibboleth authentication for a MU site
- Login after “Read More” then return to article
- How to make WordPress use authentication from Parent Site
- auto logout user when user logout on one of the opened tab
- How can I have authenticated WordPress users automatically sign into Moodle?
- Requiring Authentication for Parts of WordPress Site
- WooCommerce OAuth 1.0 + JWT authentication with JS/React
- Authenticating users with usermeta fields
- Getting Authentication required popup
- How can LDAP/Active Directory be integrated in WordPress?
- Authenticate Subdomain
- How to create new users with JWT Auth Plugin?
- Mirgrating a user at signon
- Automate WordPress Login
- Application to Website authentication
- How to authenticate using JWT by ajax?
- Open authenticed WordPress page from mobile app
- Access to customer profile with pin code
- WP link for reset password is not received
- How to make an other web app can login with wordpress authentication?
- How to add additional factor to wordpress authentication
- Adding a “Sign In/My Account” link to an external app
- Check if user is logged in, inside php file in template directory
- Connect my WordPress site users to my public site account without showing my public site credentials
- WordPress Multisite and site speed and scaleability
- Blocking the direct access to images in the upload folder WordPress
- Can you pass user/pass for HTTP Basic Authentication in URL parameters?
- What is the difference between authentication and authorization?
- wp_signon by user’s login by their particular role
- What is an Endpoint?
- Git push results in “Authentication Failed”
- PostgreSQL error: Fatal: role “username” does not exist
- How to check if a user is logged in (how to properly use user.is_authenticated)?
- How to secure or disable the RSS feeds?
- WordPress “Link has expired” error on updating posts
- WordPress custom authentication implementation
- Authentication/API Questions
- Authentication for a mobile app connected via wp-rest api?
- Calling wp_signon doesn’t log the user in
- Configuring WordPress Auth Cookie Expiration
- wp-admin AJAX with Fetch API is done without user
- current_user_can Not Always Working Properly
- How to get the ID of the currently logged in user?
- Authenticating with REST API
- Make authorization mandatory on custom routes
- WP REST API – Nonce passes wp_verify_nonce even after logout
- Problem with getting RSS because of authentication
- Blocks Rest API rest_cannot_delete
- Can’t view ‘More details’ on plugins pop up is blank and Authy pop up
- Two factor authentication
- Custom Login Form – Redirect user to login page if not logged in
- Can I “protect” a page with a form asking for an email address?
- WordPress HTTP API NTLM Authentication
- Where is the php file, that does the checks for login information?
- How to verify which WordPress user requested the API in ASP .NET Core?
- Change auth_cookie_expiration for specific roles and specific login times
- How to store a secret for a plugin inside public_html
- Login cookies blocked after customizing hashing method
- Custom user roles are unable to login
- The same session information for peer users on two different WordPress servers
- Extend Cookie with auth_cookie_expiration not working
- After upgrading to WP 5.1.1 sometimes I need to reauth infinitively
- is_user_logged_in() returns different values on different pages
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- Random authentication failures on a load balanced WP setup
- Custom user creation and auto login problem
- Multisite authorization error 401
- How do I make ssh fail rather than prompt for a password if the public-key authentication fails?
- Not able to set userId and email at wp_set_current_user in Worpdress
- Login and register by API
- wordpress rest api authentication failed