Generate ArcGIS Token Activity

Description

The Generate ArcGIS Token activity generates an access token for secured ArcGIS Server services.

Usage

A workflow in a client application could use the Run Workflow activity to run a server workflow. The server workflow could use the Generate ArcGIS Token activity to generate an access token followed by a Set Workflow Output activity to return the token to the client application. Finally, the client application could use the access token with ArcGIS related activities like the Query Layer activity to access secured services.

Environment

The Generate ArcGIS Token activity is a server activity. It can only be used in server workflows, which require on-premises Workflow.

Offline Support

This activity does not work when the device is offline.

Inputs

Generate Token Url

Required

Type: String

The URL of the ArcGIS generate token service.

The URL should use HTTPS.

For example, https://server/arcgis/tokens/generateToken.

User Name

Required

Type: String

The user name of the user to generate the token for.

Password

Required

Type: String

The password of the user to generate the token for.

IP Address

Optional

Type: String

The IP address of the machine that will use the access token.

For example, 120.0.0.1.

If both the Referrer and IP Address inputs are specified only the Referrer will be used.

Referrer

Optional

Type: String

The base URL of the web application that will use the access token.

For example, https://myserver/mywebapp.

If both the Referrer and IP Address inputs are specified only the Referrer will be used.

Expiration

Optional

Type: Number

The token expiration time in minutes.

The default is 60 minutes.

The maximum value of the expiration time is controlled by the server.

Timeout

Optional

Type: Number

The time span in milliseconds to wait for the request's results.

Outputs

token

Type: String

The generated access token.

expires

Type: String

The expiration time of the token in milliseconds since January 1st, 1970.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

© 2018 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.9