I am developing a custom WordPress plugin to retrieve the page views and URL of posts. According to gaDataAuthorization, Plugin is an installed application.
And ouath2InstalledApp. Here I read it is same as Using OAuth 2.0 for Web Server Applications, having three differences.
But when I am trying to use urn:ietf:wg:oauth:2.0:oob
as the redirect URI, it is not working. Can anybody give me any idea?
In the developer console it alerts:
Must have a protocol. Cannot contain URL fragments or relative paths. Cannot be a public IP address. '
redirect_uri
| One of the redirect_uri values obtained from the Google Developers Console. | Determines where the response is sent. The value of this parameter must exactly match one of the values that appear in the Credentials page in the Google Developers Console (including the http or https scheme, case, and trailing slash). You may choose between urn:ietf:wg:oauth:2.0:oob, urn:ietf:wg:oauth:2.0:oob:auto, or an http://localhost port. For more details, see Choosing a redirect URI.