Skip to content

ArcGISCredential

Namespace: GameEngine.Authentication
Class: GameEngine/Authentication/ArcGISCredential
Since: 1.1.0
Implements: ArcGISInstanceId, ArcGISJSONSerializable<ArcGISCredential>

Summary

A base class for types of ArcGIS credentials used to access secured resources.

Properties

PropertyTypeNullableReadonlySummary
RefererstringNoYes

The referer used to generate a token.

ServerContextstringNoYes

The URL by which the root of a server is accessed.

UsernamestringNoYes

The user associated with the credential.

Referer

string Referer

The referer used to generate a token.

  • TokenCredential - The referer is app://arcgis-maps/<application identifier>.
  • PregeneratedTokenCredential - The referer passed to the constructor should match the referer used to generate the token, or empty string if none was used.
  • ArcGISOAuthUserCredential and OAuthApplicationCredential - The referer is an empty string.

ServerContext

string ServerContext

The URL by which the root of a server is accessed.

This is the URL against which rest endpoints are resolved. For example, "https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0" would have a server context of "https://sampleserver3.arcgisonline.com/ArcGIS", on which we could add "/rest/info" or "/rest" to fetch the server information.

Username

string Username

The user associated with the credential.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.