Skip to content

Commit a54fa08

Browse files
committed
#102 Add ES algos also to the exception list
1 parent b9528b3 commit a54fa08

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/jwt/impl/jwt.ipp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ inline verify_result_t jwt_signature::check_for_algo_confusion_attack(
211211
case algorithm::RS256:
212212
case algorithm::RS384:
213213
case algorithm::RS512:
214+
case algorithm::ES256:
215+
case algorithm::ES384:
216+
case algorithm::ES512:
214217
return {false, std::error_code{}};
215218
default:
216219
// For all other cases make sure that the secret provided

0 commit comments

Comments
 (0)