Optional
options: {Optional
cookieCalled by the SDK to get the authentication headers for a specific audience. The audience is a string that identifies the API endpoint that the SDK is trying to access. The SDK will use the provided headers on requests to the Camunda 8 API endpoint.
A promise that resolves to an object containing the authentication headers.
Forces a new login by resetting the cookie. This method is useful for scenarios where the cookie has expired or when you want to refresh the authentication. It will reset the cookie to undefined, which will trigger a new login the next time the getToken method is called.
The
CookieAuthProvider
is an implementation of IHeadersProvider that supports the authentication used in C8run 8.7. It retrieves a cookie from the C8run login endpoint, and passes it in thecookie
header for subsequent requests.It does not handle token expiration or renewal. The cookie may be reset manually by calling the
setToken
method.