dwyl / dwyl/app-api

Create token authentication plug

Open
#2 0 comments 0 reactions 1 assignee Claimed by @SimonLab View on GitHub
Dominant language
Elixir
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

For requests requiring a jwt token (e.g. creating a new capture for a person), we want the api to validate the token of the user.
We can do this by creating an authentication plug which will be used on specific endpoints.
This plug will send get request to the dwyl auth service server which will validate the jwt header token and return the the information about the person linked to the token.
The person info will then be assigned to the connection (id_person, email...) which will then be used to linked for example captures to the person id.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.