Teradata REST service - keeping session alive without password

Teradata Applications

Teradata REST service - keeping session alive without password

Hi,

 

I am using the Teradata REST service for a web application I am developing.

Currently, for each request I am sending I add the authentication header with the username and password (base64 format).

 

Here is how the request look like (using a node application):

{
  url: `http://${host}:${port}/tdrest/systems/${name}/queries`,
  gzip: true,
  json: true,
  headers: {
    'Authorization': userAuth,
    'Accept': 'application/vnd.com.teradata.rest-v1.0+json',
    'Accept-Encoding': 'gzip',
    'Content-Type': 'application/json'
  },
  body: {
    query: query,
    params: params,
    format: 'array',
    includeColumns: true
  }
};

Is it possible to keep a session alive for a user without sending the Authentication header everytime?

If so, where can I set the session expiration time?

  • rest service
  • session