You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to perform something like this:
User goes to settings -> clicks Esri authentication -> Load Authenticator -> Authenticates
User then goes to map sources screen-> chooses Arcgis portal -> writes the portal id.
Then -> Map tries to load the portal
If it fails -> just show Toast with auth error.
But it seems like it can only be triggered once the sdk comes across Authentication Challenge.
Is there a way I can achieve the former, just want to make the app behave similar to a desktop app written in C#?
The text was updated successfully, but these errors were encountered:
nishankhadka09
changed the title
Can a user not trigger the Authenticator without coming across an authentication challenge?
Can a user trigger the Authenticator without coming across an authentication challenge?
Aug 29, 2024
The Authenticator toolkit component will only be displayed when the user is trying to load a secured resource, meaning that it does not support preemptive prompting.
This is because the authenticator needs to know the resource's security type (either ArcGIS or Network) so that it is able to display the correct type of prompt.
In your case, if you know before hand what kind of portal the user is trying to load and what kind of security it supports, then you can create a credential, prompt the user, and add it to the credential cache for future use.
I wanted to perform something like this:
User goes to settings -> clicks Esri authentication -> Load Authenticator -> Authenticates
User then goes to map sources screen-> chooses Arcgis portal -> writes the portal id.
Then -> Map tries to load the portal
If it fails -> just show Toast with auth error.
But it seems like it can only be triggered once the sdk comes across Authentication Challenge.
Is there a way I can achieve the former, just want to make the app behave similar to a desktop app written in C#?
The text was updated successfully, but these errors were encountered: