Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create token authentication plug #2

Open
SimonLab opened this issue Mar 6, 2020 · 0 comments
Open

Create token authentication plug #2

SimonLab opened this issue Mar 6, 2020 · 0 comments
Assignees

Comments

@SimonLab
Copy link
Member

SimonLab commented Mar 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant