Method RegisterServer
RegisterServer(ServerInfo)
Register secure servers and the token endpoints. The Authentication Manager makes its best guess to determine the location of the secure server and token endpoint so in most cases calling registerServers is not necessary. However if the location of your server or token endpoint is non-standard use this method to register the location. Additionally if portal uses the OAuth authentication, it needs to be registered by this method.
Declaration
public void RegisterServer(ServerInfo serverInfo)
Parameters
Type | Name | Description |
---|---|---|
ServerInfo | serverInfo | The serverInfo object that defines the secure service and token endpoint. |
Remarks
Most generally, the AuthenticationManager can guess the token endpoint whether the url contains either '/sharing' (portal url) or '/rest/services' (arcgis service).
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |