TypeScript API / contentia/storage/gitlab / GitlabAuth
Interface: GitlabAuth
Authentication for the GitLab REST API. Exactly one of token/oauthToken/jobToken is used.
Properties
headers?
ts
readonly headers?: Readonly<Record<string, string>>;Extra headers merged into every request.
jobToken?
ts
readonly jobToken?: string;CI job token. Sent as the JOB-TOKEN header.
oauthToken?
ts
readonly oauthToken?: string;OAuth2 bearer token. Sent as Authorization: Bearer ….
token?
ts
readonly token?: string;Personal access token. Sent as the PRIVATE-TOKEN header.