J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Get Google access code > 400. That’s an error (1 viewing) 
Go to bottom
TOPIC: Get Google access code > 400. That’s an error
#7466
AH&MRC of NSW
Fresh Boarder
Posts: 1
User Offline
Get Google access code > 400. That’s an error Karma: 0  
Hi, the button "Get Google access code" in the Google Analytics stats throws this error below:

400. That’s an error.

Error: 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

The generated link JSitemap created (I blocked out sensitive data with ***):
https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&client_id=***scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.readonly+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fwebmasters&access_type=offline&approval_prompt=auto

Could you please fix the open up the correct link?
 
Logged Logged  
  The administrator has disabled public write access.
#7468
John Dagelmore
Admin
Posts: 3716
User Offline
Re:Get Google access code > 400. That’s an error Karma: 79  
Hi,
there is nothing to fix, this happens because you chosen to create your own Google App but you did it incorrectly.
You chosen the wrong type, it must be not a 'web application' but of type 'Other' as reported in the docs.
Duplicated here: https://storejextensions.org/forum/view/10-jsitemap/3402-solved-google-app-client-id-credentials.html

NOTICE: you don't need to create your own Google Application, JSitemap already works with the default built in Google App so you can make your life easier and leave all settings empty as by default to use the built in Google app
 
Logged Logged  
  The administrator has disabled public write access.
Go to top