Skip to content

Commit

Permalink
fixed clientAuthorization
Browse files Browse the repository at this point in the history
  • Loading branch information
vzakharchenko committed Jun 17, 2021
1 parent 17d4919 commit 6da7546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/src/clientAuthorizationTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('testing clientAuthorization', () => {
});
restCalls.sendData.mockImplementation(async (url, method, data) => {
if (url === 'token_endpoint') {
if (data === 'grant_type=client_credentials&client_id=lambda&client_secret=772decbe-0151-4b08-8171-bec6d097293b') {
if (data === 'grant_type=client_credentials&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_id=lambda&client_secret=772decbe-0151-4b08-8171-bec6d097293b') {
return JSON.stringify({ access_token: 'access_token' });
}
if (data === 'grant_type=client_credentials&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_id=lambda-jwks&client_assertion=jwsSignature') {
Expand Down

0 comments on commit 6da7546

Please sign in to comment.