Skip to main content

Hi im trying to integrate an org to google api spreadsheet.

I followed the instruction on documentation and finished the setup in the Auth. provider and Name Credentials, when i save the name credentials to start the authentication flow,

I get an error in Consent Screen indicating:

 

"Error 400: redirect_uri_mismatch

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. If you're the app developer, register the redirect URI in the Google Cloud Console.

Request details: redirect_uri=https://ra-dev-ed.my.salesforce.com/services/authcallback/GoogleTest".

 

has anyone experience it before? Would really appreciate your help :)

2 件の回答
  1. 2022年10月30日 21:17

    Hi @reiner asis ,

     

    This error typically means the Client Redirect URL was not properly added to the OAuth Web Application in the Google Cloud Console. To resolve this, the user will need to copy the Client Redirect URL from the Single Sign-On Settings page from ThinkCentral, my.hrw.com, or HMH Ed.

     

    https://support.hmhco.com/s/article/Authorization-Error-Error-400-redirect-uri-mismatch-Google-Single-Sign-On

     

    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.

     

    https://stackoverflow.com/questions/11485271/google-oauth-2-authorization-error-redirect-uri-mismatch

0/9000