File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -169,12 +169,14 @@ describe('LineAdapter', function () {
169169 ) ;
170170 } ) ;
171171
172- it ( 'should reject an unsupported signing algorithm' , async function ( ) {
173- spyOn ( authUtils , 'getHeaderFromToken' ) . and . returnValue ( { alg : 'RS256' } ) ;
172+ it ( 'should reject unsupported id_token signing algorithms' , async function ( ) {
173+ spyOn ( authUtils , 'getHeaderFromToken' ) . and . returnValue ( { kid : '123' , alg : 'none' } ) ;
174+ spyOn ( jwt , 'verify' ) ;
174175
175176 await expectAsync ( adapter . verifyIdToken ( { id_token : 'the_token' } ) ) . toBeRejectedWithError (
176- 'Unsupported Line id_token signing algorithm: RS256 '
177+ 'Unsupported Line id_token signing algorithm: none '
177178 ) ;
179+ expect ( jwt . verify ) . not . toHaveBeenCalled ( ) ;
178180 } ) ;
179181 } ) ;
180182
You can’t perform that action at this time.
0 commit comments