Ensure client secret is encoded properly in Authorization
header (#20000)
Closes #19879
This commit is contained in:
parent
edb292664c
commit
7502a31421
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ export const getToken = async (settings: Settings): Promise<TokenResponse> => {
|
|||
if (credentials.clientSecret) {
|
||||
headers.set(
|
||||
"Authorization",
|
||||
atob(credentials.clientId + ":" + credentials.clientSecret)
|
||||
`Basic ${btoa(`${credentials.clientId}:${credentials.clientSecret}`)}`
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue