We need to get an "access_token" so we can load private data after signing in using OAuth/AGOL user. How can we do that?
We have a workflow that works for our web app, it is as follows:
{host}/sharing/rest/oauth2/token
, and as parameters we send the client_id
, the code
, the redirect_url
, and the grant_type
of authorization_code
.access_token
and a refresh_token
, which we retrieve from the returned object.We see information like esri username and organization ID after we sign in, but no access_token. We also don't see a code, so we can't request it like we do in our web app.
Any help would be appreciated!
Thanks,
Matt
Hi Matt,
Can you please provide more detail around why you need to do this with the Survey123 app and your overall workflow. I can understand how or why this may be done with a web app, but not sure I understand the relevant workflow with Survey123 field app?
Phil.
I found it. It is oAuthAccessTokenFromAuthCodeRequest in the Portal.qml file. Thanks!