I am trying to open my experience builder with a Token.
I have data residing in Portal that is referenced in AGOL and saved with a password.
I create the web map and the experience builder.
I then try and use this URL format to open the Experience with the token which should provide the Authentication. But it still asks for AGOL Auth.
Example: not a working URL
https://experience.arcgis.com/experience/32bed8f9546f4xxxxxxxxcff397c?token=mzFcMRqhxxxxxx2MJj3k2Hw6...
I then read this... That the Request required an Application and Secret to Auth
Can anyone speak on this and provide an example of the URL including the Org and App ID...
I am assuming that I can use the token and NOT have this Feature Layers, Web Map and Experience builder App shared publicly as the TOKEN should provide all the Auth I need...
Is this correct?
The token, is a token usually generated by arcGIS for authenticating a user.
When it asks about an App ID, Secret, or Client ID, its is referencing portal item it expected that created those.
I think its under New Application > Other Apps> And then you configure the redirect url (usually https://localhost:3001)
And it generates both of them for you. This is used the first time you open EXP when building locally with Experience Builder.
What bothers me, is I'm not sure why its a requirement for the AGOL/Portal/Experience to load, that one threw me.
I know WebAppBuilder did allow token authentication to a degree, I don't remember if EXB did this.
As suggested by this thread: https://community.esri.com/t5/arcgis-experience-builder-questions/url-parameter-token/td-p/1052306
I'll keep looking to see if anything this year has been done about this yet, but I don't recall seeing it.
Hi,
EXB does not support passing token like that way like WAB does, for security concern.
To pass auth through URL of EXB app, you may try this format:
https://www.arcgis.com/sharing/rest/oauth2/authorize/sso?redirect_uri=https://experience.arcgis.com/...
See more discussion here https://community.esri.com/t5/arcgis-experience-builder-questions/url-parameter-token/m-p/1410074/hi...