Revert "feat: adiciona flag disableAuthContentType"
This reverts commit 970ccff48e
.
This commit is contained in:
parent
c4671a5487
commit
3db6514f40
3 changed files with 5 additions and 23 deletions
|
@ -105,24 +105,6 @@ 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