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
Best answer by Anonymous
Hi @Ho Trung The "Sign in with Google" on the developers.ringcentral.com 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 https://developers.ringcentral.com/guide/authentication/quick-start#javascriptdepending 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 https://developers.ringcentral.com/guide
Did this thread help you find an answer to your question?
A
Anonymous
April 8, 2022
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.
Hi @Ho Trung The "Sign in with Google" on the developers.ringcentral.com 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 https://developers.ringcentral.com/guide/authentication/quick-start#javascriptdepending 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 https://developers.ringcentral.com/guide
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.