Embedded user user credentials in the app without user to type

204
2
Jump to solution
10-06-2021 05:14 PM
RaymondLi
New Contributor III

I need to build an mobile for user to access the webmap that hosted in company enterprise portal server. The webmap is password protected. How can I pass the credential with popup user to access it?

 

let map = AGSMap(url: url)
// add the map to the map view
mapView.map = map
mapView.touchDelegate = self
mapView.setViewpoint(AGSViewpoint(latitude: 43.69295, longitude: -72.987547, scale: 2027.977411))

0 Kudos
1 Solution

Accepted Solutions
Ting
by Esri Contributor
Esri Contributor

Hi Raymond,

Seems your question is similar to this: https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/is-it-possible-to-enter-credentia... 

Would you mind to give AGSAuthenticationManager a try?

Thanks.

View solution in original post

0 Kudos
2 Replies
Ting
by Esri Contributor
Esri Contributor

Hi Raymond,

Seems your question is similar to this: https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/is-it-possible-to-enter-credentia... 

Would you mind to give AGSAuthenticationManager a try?

Thanks.

View solution in original post

0 Kudos
RaymondLi
New Contributor III

Thank Ting. The solution is work for me.

0 Kudos