This question relates to using OAuth with ArcGIS Online.
The standard workflow using OAuth as I understand it is:
- Attempt to hit the AGOL url (e.g. https://myagol.maps.arcgis.com/sharing/rest/oauth2/authorize?client_id=12345678912&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob ).
- AGOL will display a page with a button to click – click this and it redirects you off to the external identity provider for authentication and displays an external login page.
- Enter username and password and click login.
- Login occurs and user is redirected back with a OAuth refresh token etc.
My question is, how do you skip the first step? I want an application to jump straight to displaying the external login page.
I can't seem to figure out how to trigger the OAuth workflow without the user first seeing the AGOL page and manually clicking the button to launch the external login page.