Hi,
I am really struggling with how one can use the SearchView in the toolkit on an ArcGIS Enterprise 11.1 portal. I am still at 200.6 for Mobile API and Toolkit.
The problem is that the authentication does not seem to recognize that a logged in user can use location services. I have set in Portal the Configure utility services to use a AGOL user (user is a Creator/Admin). I can use the search in a web map and do a location search which works.
However, when I open the map with the SearchView it will prompt for a login. If I try to enter my portal user, it will fail and ask again. I have logging so I can see that it is the geocode service Url that is requesting authentication. But it does not recognize the portal user as having permission. This makes the SearchView unusable.
I have developed logic to read the Web Map configuration and create and add ISearchSource objects for each layer. Which works really well, but this permission to use locator is making it not useable as a search tool