We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e0e7c2 commit af348d0Copy full SHA for af348d0
1 file changed
spec/Adapters/Auth/line.spec.js
@@ -169,12 +169,14 @@ describe('LineAdapter', function () {
169
);
170
});
171
172
- it('should reject an unsupported signing algorithm', async function () {
173
- spyOn(authUtils, 'getHeaderFromToken').and.returnValue({ alg: 'RS256' });
+ it('should reject unsupported id_token signing algorithms', async function () {
+ spyOn(authUtils, 'getHeaderFromToken').and.returnValue({ kid: '123', alg: 'none' });
174
+ spyOn(jwt, 'verify');
175
176
await expectAsync(adapter.verifyIdToken({ id_token: 'the_token' })).toBeRejectedWithError(
- 'Unsupported Line id_token signing algorithm: RS256'
177
+ 'Unsupported Line id_token signing algorithm: none'
178
179
+ expect(jwt.verify).not.toHaveBeenCalled();
180
181
182
0 commit comments