We are creating Experience apps and would like to send out direct links to individual apps. This requires an extra step for our SAML users since they have to manually specify the organization before they can click a SAML login button. Is there a way to specify the organization in the URL itself, perhaps as a URL parameter?
I'm using a URL alias inside of AGOL to the URL site as a workaround, but that's not efficient either.
Thanks!
Solved! Go to Solution.
Hi Erik,
I ran into the same issue as you and solved it (ungracefully) by tearing apart the URL that gets sent once a user is verified.
What I did was to send users a URL that includes the organization URL within it so that they don't have to fill it out themselves (most don't know it).
Here is my example:
https://<insert_your_org_short_name>.maps.arcgis.com/sharing/rest/oauth2/authorize?client_id=arcgisonline&display=default&response_type=token&state=%7B%22portalUrl%22%3A%22https%3A%2F%2F<insert_your_org_short_name>.maps.arcgis.com%22%2C%22useLandingPage%22%3Afalse%7D&expiration=20160&locale=en-us&redirect_uri=https%3A%2F%2Fexperience.arcgis.com%2Fexperience%2F<insert_ExperienceBuilder_ItemID_Here>&force_login=false&hideCancel=true&showSignupOption=false&canHandleCrossOrgSignIn=true&signuptype=esri&redirectToUserOrgUrl=false
The important variables:
Important parameters:
I really hope this is helpful.
Thanks,
Kevin
Url parameters also work for this, since one of the latests updates:
Use:
https://experience.arcgis.com/experience/<AppId>/?org=<yourorgshortname>
More info:
Use URL parameters—ArcGIS Experience Builder | Documentation
Hi Erik,
I ran into the same issue as you and solved it (ungracefully) by tearing apart the URL that gets sent once a user is verified.
What I did was to send users a URL that includes the organization URL within it so that they don't have to fill it out themselves (most don't know it).
Here is my example:
https://<insert_your_org_short_name>.maps.arcgis.com/sharing/rest/oauth2/authorize?client_id=arcgisonline&display=default&response_type=token&state=%7B%22portalUrl%22%3A%22https%3A%2F%2F<insert_your_org_short_name>.maps.arcgis.com%22%2C%22useLandingPage%22%3Afalse%7D&expiration=20160&locale=en-us&redirect_uri=https%3A%2F%2Fexperience.arcgis.com%2Fexperience%2F<insert_ExperienceBuilder_ItemID_Here>&force_login=false&hideCancel=true&showSignupOption=false&canHandleCrossOrgSignIn=true&signuptype=esri&redirectToUserOrgUrl=false
The important variables:
Important parameters:
I really hope this is helpful.
Thanks,
Kevin
Hi Kevin,
Thank you for your amazingly detailed response; ungraceful or not, this seems to be what I need. I will try it out and update the post with results.
Erik
Update: Worked like a charm - thanks! FYI I dropped the expiration, display and state parameters and it's still working.
Url parameters also work for this, since one of the latests updates:
Use:
https://experience.arcgis.com/experience/<AppId>/?org=<yourorgshortname>
More info:
Use URL parameters—ArcGIS Experience Builder | Documentation
I forgot about this post, but I have been using this solution successfully too - confirmed as solution