mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-23 17:30:35 +00:00
* Fix #11348: Return a proper error message when a token with wrong keyID is sent * Fix #11348: Return a proper error message when a token with wrong keyID is sent * fix formatting --------- Co-authored-by: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com>
This commit is contained in:
parent
f2d202eaf8
commit
809fbbf536
@ -31,7 +31,8 @@ final class MultiUrlJwkProvider implements JwkProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Jwk get(String keyId) throws JwkException {
|
public Jwk get(String keyId) throws JwkException {
|
||||||
JwkException lastException = new SigningKeyNotFoundException("No key found in with kid " + keyId, null);
|
JwkException lastException =
|
||||||
|
new SigningKeyNotFoundException("JWT Token keyID doesn't match the configured keyID.", null);
|
||||||
for (UrlJwkProvider jwkProvider : urlJwkProviders) {
|
for (UrlJwkProvider jwkProvider : urlJwkProviders) {
|
||||||
try {
|
try {
|
||||||
return jwkProvider.get(keyId);
|
return jwkProvider.get(keyId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user