I'm running into issues when attempting to obtain an OAuth2 authorization token in Postman for the Google Directory Api (this is for an EDU domain)
I have created an Application in the Google developer console and ensured that the API is enabled (Admin SDK), I then created a set of 'Web application' credentials and used 'https://www.getpostman.com/oauth2/callback' as the 'Authorized redirect URI' as below (ID and secret removed):
In Postman I have set the 'Authorization URL' and 'Access token URL' to 'https://accounts.google.com/o/oauth2/auth' and included 'Client ID' and 'Client secret' as obtained from the Developer console. I also included the scope 'https://www.googleapis.com/auth/admin.directory.user' as below (ID and secret removed):
When clicking 'Get Access Token' I am presented with an authorization dialog:
When I click 'Allow' POSTMAN presents:
POSTMAN also provides a debug URL which when clicked passes me through another authorization dialog (as above) before the browser presents the following error:
Can anyone help with this, I'd really appreciate any pointers!? I'm thinking that its actually an error in the returned header, which means that the OAuth2 part may well be functioning correctly. As POSTMAN is installed as a Chrome extension I have no option to test in another browser.