Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

GraphQL authentication middleware #96

Closed
pedro-gutierrez opened this issue Nov 4, 2020 · 0 comments · Fixed by #97
Closed

GraphQL authentication middleware #96

pedro-gutierrez opened this issue Nov 4, 2020 · 0 comments · Fixed by #97
Labels
eleven enhancement New feature or request

Comments

@pedro-gutierrez
Copy link
Contributor

pedro-gutierrez commented Nov 4, 2020

Is your feature request related to a problem? Please describe.

We need to authenticate and authorise our GraphQL queries and mutations.

Describe the solution you'd like

A set of Phoenix plugs and Absinthe middleware in order to:

  • Detect the presence of a bearer token in the authorisation HTTP header.
  • Decode the token as a JWT.
  • Verify the signature and expiration of that token.
  • Decode and extract any claims or user information from that token and put them in the current context.

Authorisation is not in scope in this ticket.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
eleven enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant