Sharing content with everyone - Why does some content get a challenge, some doesn't?

903
2
Jump to solution
11-16-2020 12:22 PM
by Anonymous User
Not applicable

I have created a web app, shared with everyone, and sent a link to some people. They can see it fine.

I added a pdf file to my AGOL account, shared with everyone and sent the link and they get challenged.

Why do some items which are shared with everyone generate a sign-in challenge and others don't? Is this documented anywhere?

Is it as simple as: "Apps can be shared without a sign-in challenge, but other content cannot."?

Thank you,

Randy

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

In the case of a pdf, the storage back end is Amazon S3. The original link that you open after you share publicly looks something like this: https://yourorg.maps.arcgis.com/sharing/rest/content/items/6409f8be0e574f1c966196345b6f9ea6/data

When you open that link, it redirects to AWS S3 and appends a short lived token so the link will expire. This looks something like this: https://ago-item-storage.s3.us-east-1.amazonaws.com/6409f8ae0e574f1c966196345b6f9ea6/ArcGIS_Enterpri...

If you share the Amazon S3 link it may initially open for the end user, but it will eventually expire. So what you have to do is share the original ArcGIS Online link (e.g.https://yourorg.maps.arcgis.com/sharing/rest/content/items/6409f8be0e574f1c966196345b6f9ea6/data) which will automatically redirect with the appropriate authentication parameters.

View solution in original post

2 Replies
by Anonymous User
Not applicable

In the case of a pdf, the storage back end is Amazon S3. The original link that you open after you share publicly looks something like this: https://yourorg.maps.arcgis.com/sharing/rest/content/items/6409f8be0e574f1c966196345b6f9ea6/data

When you open that link, it redirects to AWS S3 and appends a short lived token so the link will expire. This looks something like this: https://ago-item-storage.s3.us-east-1.amazonaws.com/6409f8ae0e574f1c966196345b6f9ea6/ArcGIS_Enterpri...

If you share the Amazon S3 link it may initially open for the end user, but it will eventually expire. So what you have to do is share the original ArcGIS Online link (e.g.https://yourorg.maps.arcgis.com/sharing/rest/content/items/6409f8be0e574f1c966196345b6f9ea6/data) which will automatically redirect with the appropriate authentication parameters.

RandyMcGregor1
New Contributor III

Thank you very much.

Seeing your links made me realize that I was using the wrong link. I made a rookie mistake. I opened the items detail page and copied the url from that page and that is why I was getting the challenge.

After reading your message and seeing "/data" at the end, I realized my mistake and I went to the url: section in the items page and copied that.

RandyMcGregor1_0-1605566204063.png

 

That works and will open the item without a challenge.

I saw the behavior you described with a pdf and that is an easy trap to fall into - loading the pdf and then copying the url from the window, rather than the actual url. 

Thanks for your help!