OIDC: return id_token in hybrid flow (#2120)

This commit is contained in:
Maxime Besson 2020-03-18 21:03:52 +01:00
parent 569d1bf8af
commit 168dc75f96
2 changed files with 7 additions and 1 deletions

View File

@ -383,6 +383,11 @@ sub buildHybridAuthnResponse {
? ( token_type => 'bearer', access_token => $access_token )
: ()
),
(
$id_token
? ( id_token => $id_token )
: ()
),
( $expires_in ? ( expires_in => $expires_in ) : () ),
( $state ? ( state => $state ) : () ),
( $session_state ? ( session_state => $session_state ) : () )

View File

@ -193,9 +193,10 @@ my %prms = map { split /=/, $_ } split /&/, $query;
ok( $prms{token_type}, ' token_type found' );
ok( $prms{session_state}, ' session_state found' );
ok( $prms{access_token}, ' access_token found' );
ok( $prms{id_token}, ' id_token found' );
ok( $prms{state}, ' state found' );
ok( $prms{session_state}, ' session_state found' );
count(5);
count(6);
my $at;
ok( $at = $rp->p->_userDB->getUserInfo( 'op', $prms{access_token} ),