Method RegisterServer
RegisterServer(ServerInfo)
Configures a secured server and its token endpoints manually. In most cases, this is unnecessary as the Authentication Manager can automatically discover the location of the secure server and its token endpoints.
Declaration
public void RegisterServer(ServerInfo serverInfo)
Parameters
Type | Name | Description |
---|---|---|
ServerInfo | serverInfo | The ServerInfo object that describes the secure service and token endpoint. |
Remarks
Typically, the AuthenticationManager can infer the token endpoint if the URL contains either '/sharing' (portal URL) or '/rest/services' (ArcGIS service). However if the location of your server or token endpoint is non-standard use this method to register the location. If your portal uses OAuth user authentication, create an OAuthUserConfiguration and add it to OAuthUserConfigurations.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |