Skip to content

Ensure JWT auth token response from OIDC server is validated #33

@agrski

Description

@agrski

Right now we do not explicitly validate the JWT tokens returned from whatever OIDC provider is in use.
We should confirm that either:

  1. authlib handles this for us, or
  2. We explicitly validate the returned tokens (in particular the id_token, as this is what is used)

I prefer the latter, as the implementation of authlib may change, even if it handles validation now.

Steps required:

  • Download JWK key-set from well-known endpoint
  • Load key-set in authlib as an OAuth key
  • Validate the id_token or the entire response from the token endpoint, as appropriate

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