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
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.6 |
.NET | 200.0 - 200.6 |
.NET Windows | 200.0 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 200.0 - 200.6 |
UWP | 200.0 - 200.6 |