Skip to main content
Skip table of contents

getServiceAccountToken()

Non-static operation.

This operation returns a new valid authorization token for the current service.

 You need a current authenticator service object to call this operation (which you can get using getAuthService()).

You can use this token to authenticate the caller when calling other services.

The returned token is service related, not user related.

Parameters

Name

Type

Direction

Description


String

return

Returns a new service token as provided by the authenticator service.

Related Content

Related Pages:

  • getAuthService()
    This operation returns an instance of the authenticator service.

  • getServiceToken()
    This operation returns a new valid authorization token for the current service. it is the same as getServiceAccountToken() but implemented as a static operation so that you do not need to create an instance of AuthService first.

  • getServiceTokenBearer()
    This operation returns a valid authorization token for the current service. The token is ready to use for authentication headers as it already has the "Bearer " part at the beginning.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.