OAuth consent screen - ability to remove application logo

后端 未结 6 1868
渐次进展
渐次进展 2020-12-16 09:13

I added an application logo by mistake on the OAuth consent screen (URL: https://console.cloud.google.com/apis/credentials/consent), and now it says my consent screen requir

相关标签:
6条回答
  • 2020-12-16 09:35

    For those who were unable to update it using the 'PUT' method (as answered by @Chris32 )and are ready to delete the consent screen and create a new one, can simply replace 'PUT' with 'DELETE' and remove --data-binary section (as delete doesn't take any payload) and can run it using a regular bash shell.

    0 讨论(0)
  • 2020-12-16 09:36

    I have tried all the above solutions, and see that we no longer can send "DELETE" requests, as cURL sends 404 responses.

    My solution is that I submitted my app for verification (you don't have to pay unless you request sensitive/restricted scopes, and even then, they will send you an email with a confirmation of pricing etc).

    This allows you to use the consent screen as before, without the icon, but without verification. (When you're verified, they will let you use your icon).

    Once a representative gets back, let them know you intend your app to be used internally, and you just want them to delete the image.

    0 讨论(0)
  • 2020-12-16 09:39

    In order to delete the logo, follow these steps:

    • Open the OAuth Consent Screen Configuration in Chrome or a Chromium derivative. https://console.cloud.google.com/apis/credentials/consent
    • Upload any image that differs from the one previously uploaded.
    • Open your Developer Tools (F12 or Ctrl+Shift+I).
    • Open the Network tab.
    • (Optional) Press the Clear button to make it easier to search later.
    • Click the Save button on the website to upload the new logo. (If the Save button is disabled, go through the full "Submit for Verification" process.)
    • In the Network tab, look for a request similar to "123456789987?alt=json&key=...".
    • Click on the entry and ensure that the Request Method is PUT.
    • Right-Click the entry and select "Copy"->"Copy as cURL (bash)".
    • Paste it into a text editor and search for the text "iconUrl":"https://...".
    • Change the text to read like the following: "iconUrl":"".
    • Back on the site, open up a Cloud Console session (The terminal icon in the top menu bar) and paste the modified command, then run it.
    • Verify that logo got removed from consent screen and verification status has changed.

    Please keep in mind that this may require you to verify your app again.

    Since June 11th of 2020 there's a Feature request open requesting the adition of a remove logo button to make this process easier. Please leave your comment, star the issue and leave a +1 if you are also affected by this issue.

    0 讨论(0)
  • 2020-12-16 09:43

    From my research so far, there is no way to remove the application logo from the consent screen.

    You don't have to submit the account for verification unless you are asking for a permission mandating a verification.

    0 讨论(0)
  • 2020-12-16 09:44

    The methods above did not work for me, I kept getting INVALID_ARGUMENT. This is because I had client credentials in the project. I had to delete the client credentials and the DELETE request method (without data-binary) worked for me.

    0 讨论(0)
  • 2020-12-16 09:54

    [UPDATE] - 2020

    Is still possibile to delete your previously uploaded logo through an API call, although it requires a little modification of the answer Abhishek Srivastava suggested.

    You need to:

    1. "Copy as cURL (bash)" as for the original answer
    2. Replace the PUT method with DELETE
    3. Do not remove the --data-binary section, instead clean it all up until it looks like this and nothing else: --data-binary '{"brandId":"<your_brand_id>"}'

    This will remove your consent screen entirely,

    0 讨论(0)
提交回复
热议问题