Show / Hide Table of Contents

Method AddServerInfo

AddServerInfo(IAuthenticationConfiguration, 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
[Obsolete("Use AddOAuthUserConfiguration to configure OAuth for a server.")]
public static IAuthenticationConfiguration AddServerInfo(this IAuthenticationConfiguration configuration, ServerInfo serverInfo)
Parameters
Type Name Description
IAuthenticationConfiguration configuration

Authentication Configuration.

ServerInfo serverInfo

The serverInfo object that defines the secure service and token endpoint.

Returns
Type Description
IAuthenticationConfiguration

Authentication Configuration.

Remarks

Most generally, the AuthenticationManager can guess the token endpoint whether the url contains either '/sharing' (portal url) or '/rest/services' (arcgis service).

See Also
RegisterServer(ServerInfo)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.0 - 200.8
.NET200.0 - 200.8
.NET Windows200.0 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework200.0 - 200.8
UWP200.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.