pow-auth / pow

Robust, modular, and extendable user authentication system
https://powauth.com
MIT License
1.59k stars 153 forks source link

POW with MongoDB #724

Open shahryarjb opened 7 months ago

shahryarjb commented 7 months ago

Hello, I want to migrate to POW library because I have an auth provider that supports the JWT with auth2 protocol, however updating this part of my software will be quite difficult. I have few inquiries.

Since my database is mongodb, how can I personalize every POW feature for this kind of database? where should I begin with this?

My provider library has three different methods of authentication, and I'm wondering if POW can handle them all.

I have read this link https://hexdocs.pm/pow/api.html, I think it gives me full access to api for creating tokens and refresh it, without needing Postgres or stored user? am I right?


  1. My big problem is forcing the POW get user data from my mongodb, how can do it (CRUD)?

  2. and my second requirement is how can I be able to create server side cookie on another domain for the known front websites that want to communicate with me?


I appreciate all of your work; maintaining an authentication library is challenging and requires a lot of resources.

Thank you in advance

shahryarjb commented 7 months ago

@danschultzer can I have your help please?

Schultzer commented 7 months ago

If you search hex, then you will find a Postgres store: https://hex.pm/packages?search=Pow&sort=recent_downloads

That should have everything you’ll need to write your own MongoDB store.