Integration with google in google clould credentials in Authorized javascript origins

Hello Everyone,

When I want to integrate ERPnext with Google Drive, what path should I give in the URL as in the screenshot in the official javascript origins Google Cloud Credentials?

Any idea about this question?

have a look at the official docs , you’ll find your answer

Hi @Runway,

Please check it.
https://docs.erpnext.com/docs/v13/user/manual/en/erpnext_integration/google_settings

Authorized JavaScript origins

https://{yoursite}?cmd=frappe.integrations.doctype.google_drive.google_drive.google_callback

Thank You!

1 Like

Thank You @NCP but this link in attached in Authorized redirect URIs
than come that error how solve that

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={yoursite}/api/method/frappe.integrations.google_oauth.callback
Related developer documentation

First, enable api of the google drive.

like this

Authorized JavaScript origins for check it.

Please re-check your integration.

Thank You!