Restricted Scopes OAuth verification

淺唱寂寞╮ 提交于 2021-01-28 14:34:16

问题


I have received a mail from noreply-apps-developer@google.com with the subject “[Action Required] Submit your app(s) for Restricted Scopes OAuth verification”. In the email body, there is a link to the Google API Console. After I am in the Google API Console, under the tab named “Credentials” 2 fields are highlighted. Following is the screenshot of the same.

Link to screenshot

I would like to know the reason for the error “Invalid domain”. Also, would be great if you can help me resolve the issue.

Please note: In the sections highlighted in red color, the site URL is present. I have removed it from the screenshot for security concerns.

Edit1:

As suggested, I have added the links for privacy policy, domain, etc. When I click on the "Submit for verification" button, a modal appears. I am unable to identify what information I need to add here. The details are as follows: link for the screenshot of the modal which appears when I click on the submit button. The application interacts with gmail in 2 instances: 1. Sending emails. 2. Reading emails received (emails having a particular subject line) and accessing the attachments present in it.

There is not other use of the gmail connectivity. I am confused whether I should mark the application as "Internal" or should I submit it for verification. If I have to submit it for verification, then what details should I insert in the modal that appears on click of the "submit for verification" button (screenshot has been shared). Request you to help me resolve the issue.


回答1:


All URLs in your project must match one of your Authorized Domains. But your screenshot shows this field to be blank. You will need to tell Google which domains your app is allowed to run on.

For example, let's assume your homepage is at https://www.example.com/ and your privacy policy is at https://www.example.com/privacy. You'll need to include example.com in the first field under Authorized Domains.

In this screenshot below, I've added a matching Authorized Domain and the errors are resolved.




回答2:


Check the "Learn more". It was stated in bold text that:

Add your Authorized Domains before you add your redirect or origin URIs, your homepage URL, your terms of service URL, or your privacy policy URL.

Looking into your screenshot, something is missing and it is your Authorized domains.



来源:https://stackoverflow.com/questions/54532498/restricted-scopes-oauth-verification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!