Google APIs - Android - OAuth Credentials Consent

2,641 views
Skip to first unread message

Pedro Luis Fernández

unread,
Dec 17, 2018, 3:13:30 PM12/17/18
to Google Cloud Developers
Hi all,

I implemented an Android App that integrates with Google Drive API. It basic app that shows GDrive folders and files and allows the user to upload new files and create directories.

I am not accesing other domains other than those of Google (I only access Google Drive API after authenticating)

I don't manage to fill the OAuth credentials consent screen to submit it for verification.
- In Authorized Domains I write google.com
- In Application Homepage link and in Application Privacy Policy link I can not write URLs that sit under google.com (for example: https://sites.google.com/view/xxx). I get this error: "Invalid domain: URL must be hosted on a domain listed in the "Authorized domains" section. "


QuestionCommunityOAuth.PNG

Omair(Cloud Platform Support)

unread,
Jan 3, 2019, 1:32:48 PM1/3/19
to Google Cloud Developers
Hi Pedro,

Please see the documentation for Authorized Domain. You will first have to verify your domain and only then can you proceed with OAuth Consent Screen. 

Jigar Padalia

unread,
Jul 22, 2019, 9:37:56 AM7/22/19
to Google Cloud Developers
Hello Omair,

I got the same error while adding my domain home page and privacy policy link in google console for my mobile app that "website URL must be hosted on a domain listed in the "Authorized domains" section".
I have already authorized my domain with google webmaster. Still I got this error. Please Help.

Regards,
Jigar

Harmit Rishi (Cloud Platform Support)

unread,
Jul 23, 2019, 11:14:41 AM7/23/19
to Google Cloud Developers
Hello, 

Thank you for using Google Groups!

@Pedro - Using a Google domain will not work. You will have to use your own custom one. 

@Jijar - Would you be able to confirm if you have any sensitive or restricted scopes? For further information about this, you may refer to the FAQ page here made by the OAuth verification team. 

Ankit Pareek

unread,
Jan 14, 2020, 10:06:25 AM1/14/20
to Google Cloud Developers
Hi , I am having the same problem . I am using sensitive scopes (https://www.googleapis.com/auth/youtube.force-ssl) . My app is in development phase and i need oAuth Client IDs to test functionality . Now what should i put in Authorized Domain ? 

Jad El Houssami

unread,
Jan 15, 2020, 1:44:49 PM1/15/20
to Google Cloud Developers
Hello Ankit, 

Can you provide further clarification on what exactly you are encountering?

A consent screen is required in order to create OAuth Client IDs, and an Authorized domain is required to set up the consent screen. As per this page regarding OAuth Client Verification, Authorized domains “is a whitelist of domains containing information about your app. All your application's links (such as its required privacy policy page) must be hosted on authorized domains.” Keep in mind that you must first verify your domain in order to be able to use it under Authorized domains. 

If you require Client IDs for testing, you may create and use them once the consent screen is created and before it’s verified, however you will encounter the unverified app screen and be limited to a quota of 100 new users in total.

Mary Struck

unread,
Aug 6, 2020, 4:05:28 AM8/6/20
to Google Cloud Developers
I pulled my hair out with this until I figured out that it was only happening in Firefox. When I switched to Chrome it worked. 
Reply all
Reply to author
Forward
0 new messages