joshcarty / google-searchconsole

A wrapper for the Google Search Console API.
MIT License
222 stars 79 forks source link

Access blocked: This app’s request is invalid #69

Open ayubkhansafi opened 3 months ago

ayubkhansafi commented 3 months ago

I am getting the following error when I click on the URL for authorization. OAuth 2.0 Client Application type Web Application

{"web":{"client_id":"{}","project_id":"{}","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"{}","redirect_uris":["http://localhost/authorize/"]}}

Access blocked: This app’s request is invalid You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error If you are a developer of this app, see error details. Error 400: redirect_uri_mismatch

Error 400: redirect_uri_mismatch The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob, can only be used by a Client ID for native application. It is not allowed for the WEB client type. You can create a Client ID for native application at https://console.developers.google.com/apis/credentials/oauthclient Request details: flowName=GeneralOAuthFlow Related developer documentation

image image


And get the following error when I click on the URL for authorization. OAuth 2.0 Client Application type Desktop App

{"installed":{"client_id":"{}","project_id":"{}","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"{}","redirect_uris":["http://localhost/authorize/"]}}

Error 400: invalid_request The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method. Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob flowName=GeneralOAuthFlow

image image

carwlyjoe commented 2 months ago

There's no "Other" type in the available options for Oauth client id credential.