Constructs a TokenAuthenticationInfo.
Authentication token. This should be acquired from the DOIP service using whatever method is provided by that service.
Optional
clientId: stringOptional clientId to send in requests using this token
Optional
asUserId: stringIf present, instructs the DOIP service to perform operations as this user
Optional
clientOptional Client ID or username for this token.
Authentication token. This should be acquired from the DOIP service using whatever method is provided by that service.
Optional
asIf present, operations will be preformed as this user.
Returns the clientId property to be used in DOIP requests made with this AuthenticationInfo.
Returns the authentication token.
Returns (async) the authentication property to be used in DOIP requests made with this AuthenticationInfo.
Used for token-based authentication.
Example