Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.