Skip to content

Add support for OKP key type validation #297

@orelmaliach

Description

@orelmaliach

As per

if (jwk instanceof ECKey) {
publicKey = ((ECKey) jwk).toPublicKey();
} else if (jwk instanceof RSAKey) {
publicKey = ((RSAKey) jwk).toPublicKey();
} else {
log.warn("Unsupported JWK key type: {}", jwk.getKeyType());
continue;
}

when an auth server returns JWK key whose type is OKP, it's not being added to validator cache, and later kafka fails to authenticate with error:
Failed authentication - Token validation failed: Unknown signing key. Only RSA/EC key types are supported.

Would it be possible to add support for validating JWTs with OKP key type?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions