I am using ArcGIS for Server 10.6.1.
I have a third party that needs to connect their application to a REST service url used on our unfederated (stand alone) ArcGIS Server; We also have a federated ArcGIS Server. Both are behind our firewall. I have issued the third party app a username and password. Next I need to generate token from our unfederated server. Our unfederated ArcGIS Server, in ArcGIS Server Administrator Directory - Services Directory is disabled. Not sure if this will be an issue, will it?
First step I went into the ArcGIS Server Administrator Directory - security - tokens - supported operations - update and I added the longtimeout and shortimeout parameters to the JSON like so:
{
"type": "xyz",
"properties": {
"sharedKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"longTimeout": "1440",
"shortTimeout": "60",
"allowHttpPostQueryParams": "true",
"allowHttpGet": "true"
}
}
I see 1440 is the minutes in a single day, since I want the connection authorized for 365 days, do I change the 1440 to 525600 (the number of minutes in 1 year)?
Using the screenshot below (from ArcGIS Server Administrator Directory) for reference, and not having done this before, I do the following:
1) enter the username
2) enter the password
3) client remains HTTP Referer
4) HTTP referer, I add the the url like so https://myname.mydomain/myservername/rest/services
5) Expiration (minutes), the connection that will use the token is intended to be long term, let's say 1 year. Do I need to enter the number of minutes in a single year in this box? (I also need to make sure that ArcGIS Server Manager - Security - Token Settings - Lifespan of Long-lived Tokens is set to 365 days, correct?)
6) Then I choose GENERATE.
Is there something else I need to do? Am I missing anything?