Skip to content

Commit f28c528

Browse files
authored
Merge pull request #17 from djw8605/fix-ec-detect
Fix EC curve detection
2 parents 5f56481 + 61a04a4 commit f28c528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scitokens_internal.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ Validator::get_public_key_pem(const std::string &issuer, const std::string &kid,
431431
if (iter3 == key_obj.end() || !iter3->second.is<std::string>()) {
432432
throw JsonException("EC key is missing curve name");
433433
}
434-
auto crv = iter2->second.get<std::string>();
434+
auto crv = iter3->second.get<std::string>();
435435
if (crv == "P-256") {
436-
alg = "EC256";
436+
alg = "ES256";
437437
} else {
438438
throw JsonException("Unsupported EC curve in public key");
439439
}

0 commit comments

Comments
 (0)