Generate Token Activity

Description:

Generates tokens that grant access to secured ArcGIS Server services.

This activity will throw an ESRI.ArcGIS.Client.Tasks.ServiceException or System.Net.WebException "(403) Forbidden" if the credentials are invalid.

Inheritance Hierarchy:

System.Object
  System.Activities.Activity
    System.Activities.CodeActivity
      Geocortex.Workflow.Activities.GenerateToken

Function:

This activity obtains the a token for accessing secured ArcGIS Server services.

In a Workflow:

You would use this activity if you need to use another ArcGIS Server activity with a secured service, such as the Query Task activity. This activity will generate the token needed as input to the other activity.

Properties:

Name Description

In Arguments

Token Service Url

The Url of the ArcGIS Server token service. For example: https://myserver/arcgis/tokens.

User Name

The user name for the user on the system.

Password

The password for the user on the system.

IP Address

The IP address of the client that will use this token. For example: 10.14.102.85.

Referrer

The base URL of the web application where this token will be used. For example: http://myserver/mywebapp.

Expiration

The duration in minutes specifying how long the token will be valid from the time issued. If this parameter is not included, expiration will use the short-lived token time-out setting. The expiration cannot be longer than the maximum allowed time for a long-lived token.

Misc

Display Name

GenerateToken

You can change the name of an activity to one that describes what it does. A descriptive name can make a workflow easier to interpret and maintain.

Use Legacy Request Mode

Request tokens from the token service using the legacy request mode.

The ArcGIS Server token service supports multiple ways of requesting tokens. The default mode returns a JSON object containing the token result. The legacy mode returns a raw text value that represents the token.

Out Arguments

Token

The token generated by ArcGIS Server.

Version Information:

Supported from: Geocortex Essentials 3.6.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 4.11