Create token authentication plug
Open
- 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.