You are here: Using REST > v2006.1 services > REST v2006.1 authentication

REST v2006.1 authentication requests and parameters

Authentication requests

To start using REST with ArcWeb Services, you need an active subscription to ArcWeb Services. Then, you need an authentication token or UserID to verify you are authorized to access ArcWeb Services.

Request ArcWeb Services authentication for REST maps using an HTTP GET or HTTP POST getToken or getUserID request. Use a renewToken request in a Rich Client Application (RCA) to renew an ArcWeb Services authentication token.

Most ArcWeb requests, regardless of authentication method, consume credits from a user account. See Understanding credits and costs for more information.

Authentication parameters

Authentication (getToken or getUserID) and map are the main parameters for REST mapping URLs and are required. Use renewToken parameters in an RCA to renew a token.

Authentication (actn=getToken) Gets an ArcWeb Services authentication token with an expiration

Parameter

Description

Valid Values

usr
(required)

ArcWeb Services account user name

String containing valid user name. Case sensitive.

pswd
(required)

ArcWeb Services account password

String containing valid password. Case sensitive.

tout
(optional)

Expiration time of token, in minutes

Minutes to expiration. Default value is 60. Maximum value is 1440.

ip
(optional)

IP address of client application viewing ArcWeb maps. Only use if the client machine getting the token is different from the machine requesting the maps. Use the IP utility to view the IP address seen by ArcWeb.

IP address in format xxx.xxx.xx.xxx such as 198.102.62.126.

 

Authentication (actn=getUserID) Gets an ArcWeb services authentication UserID

Parameter

Description

Valid Values

usr
(required)

ArcWeb Services account user name

String containing valid user name. Case sensitive.

pswd
(required)

ArcWeb Services account password

String containing valid password. Case sensitive.

 

Authentication (actn=renewToken) Renews an ArcWeb services authentication token for 60 minutes

Parameter

Description

Valid Values

tkn
(required)

Authentication token from a getToken request

ArcWeb Services token from a valid getToken request. Average length of string is 72–80 characters.


 

See also


Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.

ArcWeb site | ArcWeb support | support.esri.com

Copyright © ESRI