Haha, the timing 🤣 I just spent the last day building a custom "portal widget" web component to handle this. It actually works pretty well so I'm not too upset. I've been playing around with the web components a bit. One of the things I've noticed is that there doesn't seem to be a way to create a map component using an enterprise portal item, at least yet? I imagine I can do it by building the map in js and then feeding it to the component, but I think that kind of defeats the purpose of using the component. Is there a better way to handle that, or just a feature that is "to come".
This is similar to the global esriConfig. You can set an `esriConfig.portalUrl` for your enterprise, and it's now the global portal for your app. You can also create the webmap ahead of time in regular JS and assign it to the map property of the map element. The components will allow you to be mostly declarative, but when it comes to portal and auth, you still need to get your hands dirty. There might be something declarative for this down the road, but not planned yet.
sorry, professional services web dev here. Your videos have been a lifesaver in many ways. even so, ive run into a bit of a pickle. the Identitymanager documentation says you can share auth between an experience builder app and an embedded Maps SDK app, just by assigning some url parameters. however it doesnt seem to work by default, the only way ive been able to get it to work is by pulling the exb app's session storage token and loading it into the identity manager manually, which doesnt seem to require the url parameters. is there another mechanism for it that I am unaware of? the identitymanager is a bit of a black box.
Hey Rene, I am using cdn service of Arcgis Js . So before, I am using client Id and secret Id to authenticate and through both of them I generate a token which I was using in entire project but currently I am switching it to API key. So I have added in my configs but whenever I use it to authenticate in different layer always I get "Invalid token". Can you help me If there is some doc or git hub repository where I will find all thing?.
Just saw this. Make sure you have given the api key access to that item - developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/api-key-credentials/
When this will be stable I mean not in beta stage and thank you very much im looking forward to see you again more about react and arcgis api ❤
Haha, the timing 🤣 I just spent the last day building a custom "portal widget" web component to handle this. It actually works pretty well so I'm not too upset.
I've been playing around with the web components a bit. One of the things I've noticed is that there doesn't seem to be a way to create a map component using an enterprise portal item, at least yet? I imagine I can do it by building the map in js and then feeding it to the component, but I think that kind of defeats the purpose of using the component. Is there a better way to handle that, or just a feature that is "to come".
This is similar to the global esriConfig. You can set an `esriConfig.portalUrl` for your enterprise, and it's now the global portal for your app. You can also create the webmap ahead of time in regular JS and assign it to the map property of the map element. The components will allow you to be mostly declarative, but when it comes to portal and auth, you still need to get your hands dirty. There might be something declarative for this down the road, but not planned yet.
sorry, professional services web dev here. Your videos have been a lifesaver in many ways. even so, ive run into a bit of a pickle.
the Identitymanager documentation says you can share auth between an experience builder app and an embedded Maps SDK app, just by assigning some url parameters. however it doesnt seem to work by default, the only way ive been able to get it to work is by pulling the exb app's session storage token and loading it into the identity manager manually, which doesnt seem to require the url parameters. is there another mechanism for it that I am unaware of? the identitymanager is a bit of a black box.
Hey Rene, I am using cdn service of Arcgis Js . So before, I am using client Id and secret Id to authenticate and through both of them I generate a token which I was using in entire project but currently I am switching it to API key. So I have added in my configs but whenever I use it to authenticate in different layer always I get "Invalid token". Can you help me If there is some doc or git hub repository where I will find all thing?.
Just saw this. Make sure you have given the api key access to that item - developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/api-key-credentials/
@@odoenet thanks rene for your reply but I am facing some licence issue on my arcgis. It was fixed now thanks 👍