Skip to content

Add JWKS-based validation support #150

@jmdacruz

Description

@jmdacruz

Looking at the introspection code in handler.lua, it seems that the code uses the instrospect function in resty.openidc. This function relies on the token introspection endpoint, even when the provider may also support JWKS allowing local validation of tokens (no need to call the token introspection endpoint). It seems this could be achieved by using the bearer_jwt_verify function in resty.openidc, which has a similar API to the introspect function.

Should there be a configuration option on the plugin to allow users to switch to bearer_jwt_verify?

(This seems to be related to #106)

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