News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Google: Authorization - Error - redirect_uri_mismatch
Tags: google, oauth2, authentication
Apr 7, 2022 at 11:36pm   •   2 replies  •  0 likes
Ho Trung

I am in Authorization Code Flow to get access token. i tried to sign in with Google but it gave me an error: "Authorization Error 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." so How to setup correct redirect URL for Google? or what should i do to solve it?. Thanks


on Apr 8, 2022 at 3:15am   •  1 likes

Could you share more details on what you are doing?
In general, OAuth works where there is an OAuth Authorization Server that will authorize the app and provide the access token that can be used to fetch resources from the Resource Server.

In this case, the Authorization Server is the RingCentral Authorization Server server.
This is how you can authorize against the RingCentral Authorization Server

on Apr 8, 2022 at 3:47am   •  0 likes

Thank you for your reply Yatin Gera.

In my application, I want the Authorization Server to be RingCentral (Authorization Code Flow) to get the access token so that the next api can be called, e.g. "/restapi/v1.0/account/~/extension". I have set OAuth redirect URI in my app settings

When i sign in with the email account i registered in everything works fine but i sign in with google account it gives me the above error

1 Answer
answered on Apr 8, 2022 at 5:34am  

Hi @Ho Trung
The "Sign in with Google" on the is for signing in to the portal and not for your app to be able to consume the API.
When you need to consume any RingCentral API, you need to get an access token
For getting the access token, there are multiple ways and one of them is OAuth.
What that means is that you need an app that will implement auth flow as explained here on what language you are writing to code your app.
After implementing authentication, you will be the access token and you can use that to fetch resources.
You should be able to find examples in the guide

Hope this is helpful.



on Apr 8, 2022 at 6:54am   •  0 likes

Hi @Yatin Gera
Ok I got it . Thank you a lot

A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us