feat: adiciona flag disableAuthContentType
This commit is contained in:
parent
e100d9cb7b
commit
970ccff48e
3 changed files with 23 additions and 5 deletions
|
@ -105,6 +105,24 @@ describe("Get Access Token", () => {
|
|||
})
|
||||
);
|
||||
});
|
||||
|
||||
it("Shoud Get with Credentials without ContentType", async () => {
|
||||
const cli = getOauthClient({
|
||||
...baseClientParams,
|
||||
disableAuthContentType: true,
|
||||
});
|
||||
await accessTokenValidator(cli);
|
||||
expect(mockedAxios.request).toBeCalledWith(
|
||||
expect.objectContaining({
|
||||
url: authUrl,
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: basicAuth,
|
||||
},
|
||||
data: `grant_type=${defaultGrantValue}`,
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Request", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue