Skip to content

Commit

Permalink
Specify the error msg of missing signing key in jwtvendor
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Aug 23, 2023
1 parent ca95380 commit d0ebe91
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ static JsonWebKey createJwkFromSettings(Settings settings) throws Exception {
Settings jwkSettings = settings.getAsSettings("jwt").getAsSettings("key");

if (jwkSettings.isEmpty()) {
throw new Exception("Settings for key is missing. Please specify at least the option signing_key with a shared secret.");
throw new Exception(
"Settings for signing key is missing. Please specify at least the option signing_key with a shared secret."
);
}

JsonWebKey jwk = new JsonWebKey();
Expand Down

0 comments on commit d0ebe91

Please sign in to comment.