Select to view content in your preferred language

Connect with SSO on Experience Builder application deployed in Enterprise

5081
28
10-25-2023 07:14 AM
JasonBOCQUET
Frequent Contributor

Hello, I try to develop my application in Experience Builder Developer.

 

I I successfully deployed my application to my Portal but when I share the link to my colleagues, they can't access to my application.

I set the share parameter of the layer in the application to "Organization only" because we don't want to publish data.

So when they click on the link, a pop-up asks them to enter their username/password to access to the application. But we use SSO with our Windows session IDs. If we use it to log in and use the app, it doesn't work.

 

How can we configure all of this so that the login/password request is SSO?

0 Kudos
28 Replies
XiaodongWang
Esri Contributor

Agree with abureaux, I think this problem is caused by the lack of clientId. Please double check that the clientId has been set on the config.json. Since the app is deployed under portal, you can try clientId 'experienceBuilder'.

0 Kudos
JasonBOCQUET
Frequent Contributor

hi @XiaodongWang now it works very well. Each time i have a new version of my exb i create a new folder on my wwwroot folder (i'm on arcgis enterprise so it's on the portal server) and add the client ID on the config.json

 

The only thing that is annoying me it's i'm forced to create another folder "App v1.2 > App v1.3"so the link for the user change every time. If i want to delete a folder called "App" to replace with the new version unziped with the same name my users have tons of problem : they see the old version, they forced to clear cache (and some of them doesn't know how to do that).

0 Kudos
XiaodongWang
Esri Contributor

This problem might be caused by Service worker cache , please try steps and see if it solves the problem.

0 Kudos
JasonBOCQUET
Frequent Contributor

hi @XiaodongWang i understand your point but here is my question : i have to do this manipulation before importing a new version of my application (so copy/paste the content of the zip on the same folder) or after that ?

 

and i don't understand those steps : 

To get better performance, here are some recommended settings for the cache header:

  • Cache index.html for a very short period such as one minute or no cache.
  • Cache the cdn folder for a long period such as one year.

what does mean "cache index.html" it's an attribute to modify ?

0 Kudos
XiaodongWang
Esri Contributor

Download new version, unzip, copy, paste and replace the old app in the 'folder called "App" ', then 

1, Rename cdn/0 to cdn/1.
2, Open index.html on your application's root folder.

  • Change <base href="./cdn/0/"/> to <base href="./cdn/1/"/> .
  • Change the buildNumber = '0' to buildNumber = '1'.

Make sure the number (CDN folder and build) is different from the previous app.

what does mean "cache index.html" it's an attribute to modify ?
This can be set in ‘web.config’,  it does not have to be changed, just use the default value.

0 Kudos
JasonBOCQUET
Frequent Contributor

Ok, I understand more now.

 

But I have a last point that confused me. Each time I make an extract, the CDN of the folder and in the index.html il already "1". Sometimes I have "2", but never "0".

So if I have already "1" when I extract my ZIP, what I have to do ? change it to "0" ? or "2" ? 

0 Kudos
XiaodongWang
Esri Contributor

So if I have already "1" when I extract my ZIP, what I have to do ? change it to "0" ? or "2" ? 

0 and 2 are both OK, or even any number, as long as they are not 1.

0 Kudos
JasonBOCQUET
Frequent Contributor

Ok so if I resume, the only way to not have any problem with the cache it's only to change one number ? If I do that my users do not have anymore problem with that ?

 

i want to be sure before to do that because the last time i'll try to paste another version in the same folder of the oldest version, i have like 30 people who called me because they don't understand why they do not see the new version. 

0 Kudos
XiaodongWang
Esri Contributor

It should resolve the problem, but I can't guarantee it with 100% certainty.

0 Kudos