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

How to integrate servant-auth for JWT based authentication? #79

Open
bdoering opened this issue Mar 8, 2020 · 0 comments
Open

How to integrate servant-auth for JWT based authentication? #79

bdoering opened this issue Mar 8, 2020 · 0 comments

Comments

@bdoering
Copy link

bdoering commented Mar 8, 2020

Thank you for this starter project! Being relatively new to Haskell, the structure seems clear and easy to follow with nice separation of concerns.

I would like to integrate the servant-auth library for easy JWT authentication, but whatever I try, I do not get it to compile. Could maybe somebody give me an indication about the general approach that would be necessary?
What I tried:

Maybe I have approached this all wrong? How would you use JWT authentication without repeating authentication logic for each handler?

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