Specifying the number of days before a token expires
You can use the ‑daysToLive option when you create an authentication token to specify the number of days before it expires.
The following example command generates an analysis upload token that expires after two days:
fortifyclient token ‑url <host.url> ‑gettoken AnalysisUploadToken -user Developer1 -password <password> -daysToLive 2
You must type the case-sensitive daysToLive parameter exactly as shown in the previous example.
See Also