pow-auth / pow_site

Website for Pow
https://powauth.com
MIT License
4 stars 2 forks source link

Add guide for absinthe integration #6

Open danschultzer opened 4 years ago

danschultzer commented 4 years ago

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: https://github.com/danschultzer/pow/issues/61

dlobo commented 3 years ago

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 commented 3 years ago

@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 commented 2 years ago

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

jacobwarren commented 1 year ago

@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?