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

Sample code for authenticated api. (Docs) #13

Open
wpoosanguansit opened this issue Oct 18, 2016 · 2 comments
Open

Sample code for authenticated api. (Docs) #13

wpoosanguansit opened this issue Oct 18, 2016 · 2 comments

Comments

@wpoosanguansit
Copy link

Hi,

I am new to both snap and servant. Would be possible to request a sample code for authenticated api access (possibly with oauth2)? Thank you for your help.

@imalsogreg
Copy link
Contributor

imalsogreg commented Oct 19, 2016

This is a great question. I will have to do a little research because I've only used Snap's auth snaplet for authentication (cookie auth). I wrote a little in this project's README.md about the current difficulty of providing auth servant combinators for servant-snap, so the answer will probably involve adding a new combinator custom to your application.

@wpoosanguansit
Copy link
Author

Appreciate your help.

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

2 participants