Merge branch 'master' of gitlab.ow2.org:lemonldap-ng/lemonldap-ng
This commit is contained in:
commit
97a7f73012
|
@ -1154,8 +1154,10 @@ sub createJWT {
|
||||||
|
|
||||||
# JWT header
|
# JWT header
|
||||||
my $jwt_header_hash = { typ => "JWT", alg => $alg };
|
my $jwt_header_hash = { typ => "JWT", alg => $alg };
|
||||||
$jwt_header_hash->{kid} = $self->conf->{oidcServiceKeyIdSig}
|
if ( $alg eq "RS256" or $alg eq "RS384" or $alg eq "RS512" ) {
|
||||||
if $self->conf->{oidcServiceKeyIdSig};
|
$jwt_header_hash->{kid} = $self->conf->{oidcServiceKeyIdSig}
|
||||||
|
if $self->conf->{oidcServiceKeyIdSig};
|
||||||
|
}
|
||||||
my $jwt_header = encode_base64( to_json($jwt_header_hash), "" );
|
my $jwt_header = encode_base64( to_json($jwt_header_hash), "" );
|
||||||
|
|
||||||
if ( $alg eq "none" ) {
|
if ( $alg eq "none" ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user