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

Add guide for absinthe integration #6

Open
danschultzer opened this issue Sep 18, 2019 · 4 comments
Open

Add guide for absinthe integration #6

danschultzer opened this issue Sep 18, 2019 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@danschultzer
Copy link
Collaborator

A guide could be added that details how to get Pow working with absinthe.

Since absinthe doesn't expose conn there are some caveats on how to deal with user sessions. It has been discussed in Pow repo issues previously.

This issue has sample code that could be useful: pow-auth/pow#61

@danschultzer danschultzer added enhancement New feature or request help wanted Extra attention is needed labels Sep 18, 2019
@dlobo
Copy link

dlobo commented Mar 5, 2021

Since we've worked on getting absinthe and pow working across websockets, HTTP and absinthe resolvers, i'd be happy to contribute back and write the first version of the guide. If you can give me a couple of high level guidelines I can start work on it

@danschultzer
Copy link
Collaborator Author

@dlobo I would love that! I would like something pretty similar to the API guide https://hexdocs.pm/pow/1.0.22/api.html#content

It should show the basic authentication and authorization using Pow so clients can register, sign in, and use authorization token for protected endpoints. It also needs to detail token renewal. I prefer to add complete tests for the code shown in guides to ensure full code coverage and encourage good practices.

@amitvchaudhary
Copy link

amitvchaudhary commented Apr 28, 2022

@danschultzer @dlobo Any updates on this? I am finding it difficult to make it work with Absinthe.

@jacobwarren
Copy link

@danschultzer - I have this working very well. My use cause is very specific, though.

I use PowAssent for Oauth 2.0, PowPersistentSession.Plug.Cookie, and Absinthe.

Would it be helpful for me to create a guide, despite the specificity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants