-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support AuthProtect combinator #9
Comments
I did not know about it. What is it about? Anyway - I will look into it, when I have some time. If you need it sooner - I would love a pull request! :-) You are welcome! I am happy if people find it useful! |
Docs: http://haskell-servant.readthedocs.io/en/stable/tutorial/Authentication.html Until someone (e.g. me) gets to fixing this, you can use an authentication scheme like I do for my application: I simply use a plain Authorization header and create an API like this: type FullAPI = "public" :> "endpoint" :> Get '[JSON] Text
:<|> "private" :> Header "Authorization" AuthToken :> AuthAPI
type AuthAPI = my protected handlers Then I use servant's Hope that helps - it took me a while to notice that you can handle authentication pretty well with Best regards, Robert |
In fact I am quite happy with this |
Thanks. I ended up doing something similar with a real API and a fake one, like this. However, your idea is quite interesting! |
Correct me if I am wrong, but I think the AuthProtect combinator is not supported by servant-purescript. Do you have any plan to add this support?
Anyway, thank for this awesome project!
The text was updated successfully, but these errors were encountered: