Option to check JWT Signature (#183)
This commit is contained in:
parent
2a33f67155
commit
27225cfe86
@ -106,9 +106,11 @@ sub extractFormInfo {
|
|||||||
$self->lmLog( "ID token: $id_token", 'debug' );
|
$self->lmLog( "ID token: $id_token", 'debug' );
|
||||||
|
|
||||||
# Verify JWT signature
|
# Verify JWT signature
|
||||||
unless ( $self->verifyJWTSignature($id_token) ) {
|
if ( $self->{OIDCRPCheckJWTSignature} ) {
|
||||||
$self->lmLog( "JWT signature verification failed", 'error' );
|
unless ( $self->verifyJWTSignature($id_token) ) {
|
||||||
return PE_ERROR;
|
$self->lmLog( "JWT signature verification failed", 'error' );
|
||||||
|
return PE_ERROR;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get ID token content
|
# Get ID token content
|
||||||
|
Loading…
Reference in New Issue
Block a user