Skip to content

Base64 encoding incorrectly applied to application/jwk-set+json #265

Closed
@jeremyhewett

Description

@jeremyhewett

It seems the adapter treats a response with Content-Type header application/jwk-set+json as binary and base64 encodes it. The response should actually be plain JSON.

Specific scenario: I'm deploying an application based on node-oidc-provider, and the /jwks endpoint returns a base64 encoded string instead of plain JSON. The Content-Type header set by node-oidc-provider is application/jwk-set+json which is not configurable (and is apparently the correct value for this response). When I do change it to application/json (with a hack), then I get the correct response in plain JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions