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
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.0 - 200.8 |
| .NET | 200.0 - 200.8 |
| .NET Windows | 200.0 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 200.0 - 200.8 |
| UWP | 200.0 - 200.8 |