Skip to content

Add support for OKP key type validation #297

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 (com.nimbusds.jose.jwk.OctetKeyPair), 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 signed with OKP (FIPS-compliant) key type?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions