Skip to content

POW with MongoDB #724

@shahryarjb

Description

@shahryarjb

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.

  • Server side sessions and cookies on user client websites such as nextjs and reactjs;
  • Auth2 (access token and refresh token)
  • a simple session for my LiveView(default phoenix)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions