Skip to content

Commit

Permalink
chore: set token type for workflow bearer tokens
Browse files Browse the repository at this point in the history
* set the access token type to acsm for workflow bearer tokens
  • Loading branch information
skeppeler committed Jun 27, 2024
1 parent c195cab commit 46c8d50
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ export function generateHeaders(authentication: CodeCatalystAuthentication, iden
}
return headers;
} else {
return {
const headers = {
authorization: authentication.token,
};
if (authentication.type == 'workflowtoken') {
headers['Access-Token-Type'] = 'acsm';
}
return headers;
}
}

Expand Down

0 comments on commit 46c8d50

Please sign in to comment.