@@ -26,7 +26,7 @@ describe('Back-Channel Logout 1.0', () => {
2626 const header = JSON . parse ( base64url . decode ( RegExp . $1 . split ( '.' ) [ 0 ] ) ) ;
2727 expect ( header ) . to . have . property ( 'typ' , 'logout+jwt' ) ;
2828 const decoded = JSON . parse ( base64url . decode ( RegExp . $1 . split ( '.' ) [ 1 ] ) ) ;
29- expect ( decoded ) . to . have . all . keys ( 'sub' , 'events' , 'iat' , 'aud' , 'iss' , 'jti' , 'sid' ) ;
29+ expect ( decoded ) . to . have . all . keys ( 'sub' , 'events' , 'iat' , 'exp' , ' aud', 'iss' , 'jti' , 'sid' ) ;
3030 expect ( decoded ) . to . have . property ( 'events' ) . and . eql ( { 'http://schemas.openid.net/event/backchannel-logout' : { } } ) ;
3131 expect ( decoded ) . to . have . property ( 'aud' , 'client' ) ;
3232 expect ( decoded ) . to . have . property ( 'sub' , 'subject' ) ;
@@ -45,7 +45,7 @@ describe('Back-Channel Logout 1.0', () => {
4545 . filteringRequestBody ( ( body ) => {
4646 expect ( body ) . to . match ( / ^ l o g o u t _ t o k e n = ( ( [ \w - ] + \. ? ) { 3 } ) $ / ) ;
4747 const decoded = JSON . parse ( base64url . decode ( RegExp . $1 . split ( '.' ) [ 1 ] ) ) ;
48- expect ( decoded ) . to . have . all . keys ( 'sub' , 'events' , 'iat' , 'aud' , 'iss' , 'jti' ) ;
48+ expect ( decoded ) . to . have . all . keys ( 'sub' , 'events' , 'iat' , 'exp' , ' aud', 'iss' , 'jti' ) ;
4949 expect ( decoded ) . to . have . property ( 'events' ) . and . eql ( { 'http://schemas.openid.net/event/backchannel-logout' : { } } ) ;
5050 expect ( decoded ) . to . have . property ( 'aud' , 'no-sid' ) ;
5151 expect ( decoded ) . to . have . property ( 'sub' , 'subject' ) ;
0 commit comments