User name, password, and security token
IBM Spectrum LSF Application Center supports web console and web service clients through the same RESTful web services. The authentication mechanism for web services is same as the IBM Spectrum LSF Application Center web console. The user name and password are from the current IBM Spectrum LSF Application Center server configuration.
Before calling any service, a security token must be obtained through the logon service. The logon service requires a user name and password, and returns an encrypted security token string.
The request must set a cookie in the form platform_token=<token> along with
the HTTP request.
The token is an encrypted string for single sign-on and includes user name, password, and expiry data. You cannot modify the contents of the token or parse them.
The following is an example of a token that is returned:
platform_token=lsfadmin"2010-04-03T09:31:02Z"UihSStsCCyv9yXJ+1hyiaJXrHr6wtc4ZT+V0lVWKEe99L3Ht4RJBXr7h
fzd0nNaJWVmWP5I2kyuPZZAcFDIalVwAlSOmhqKLcwLcAfadHpgB1LYf3/g1V8pDUIngGbCe"054LJVyt
YAa7QagStQiqdw==
When using the token, you need to encrypt double quotes("). For example:
lsfadmin#quote#2010-04-03T09:31:02Z#quote#UihSStsCCyv9yXJ+1hyiaJXrHr6wtc4ZT+V0lVWKEe99L3Ht4RJBXr7h
fzd0nNaJWVmWP5I2kyuPZZAcFDIalVwAlSOmhqKLcwLcAfadHpgB1LYf3/g1V8pDUIngGbCe#quote#054LJVyt
YAa7QagStQiqdw==
After all web service requests are done, the client must call the logout service to release the token. Otherwise, the token will be occupied for a period of time (by default 60 minutes), then IBM Spectrum LSF Application Center will log the user out and release the token automatically.