Skip to content

Commit 16374a7

Browse files
authored
Merge pull request #13 from djw8605/fix-alg-parsing
Fix algorithm naming
2 parents bff8175 + 9d0a8fc commit 16374a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scitokens_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class SciTokenKey {
8989
if (m_name == "RS256") {
9090
jwt::algorithm::rs256(m_public, m_private).verify(data, signature);
9191
} else if (m_name == "ES256") {
92-
jwt::algorithm::rs256(m_public, m_private).verify(data, signature);
92+
jwt::algorithm::es256(m_public, m_private).verify(data, signature);
9393
} else {
9494
throw jwt::signature_verification_exception("Provided algorithm is not supported.");
9595
}

0 commit comments

Comments
 (0)