Redwood: Implement authentication client for a non supported third party API

Created on 25 Jun 2020  路  2Comments  路  Source: redwoodjs/redwood

The current situation requires us to use a third party authentication api for one of our projects.

I'm wondering if it's possible to implement our own authentication client, that is completely custom for us. We would like to use the Private routes and useAuth hook throughout the project without having to use react-router for example.

Is it possible? I looked through the documentation for Authentication but could only find examples of implementing netlify, firebase or Auth0. What we want to do is to create and adapt for a third party api and utilize the built in authentication methods.

Thank you for working on redwood, looking forward to future updates and follow along on this journey.

auth

Most helpful comment

Hey @xeloader thanks for trying out Redwood.

I'm pretty sure it's possible. The way we're able to support multiple providers already is via its plug-in architecture, so I think the idea is you'd basically following the instructions in the auth's contributing section without actually make it a part of redwood (that is, submitting a PR).

You might find this topic in the forum to be a better resource, it's really in-depth:

It might also be helpful to look at the PRs for magic link and firebase which are the providers we most recently added (thanks to the community!):

We also have a lot more docs incoming for auth, namely a cookbook on getting the database involved: https://github.com/redwoodjs/redwoodjs.com/issues/212.

All 2 comments

Hey @xeloader thanks for trying out Redwood.

I'm pretty sure it's possible. The way we're able to support multiple providers already is via its plug-in architecture, so I think the idea is you'd basically following the instructions in the auth's contributing section without actually make it a part of redwood (that is, submitting a PR).

You might find this topic in the forum to be a better resource, it's really in-depth:

It might also be helpful to look at the PRs for magic link and firebase which are the providers we most recently added (thanks to the community!):

We also have a lot more docs incoming for auth, namely a cookbook on getting the database involved: https://github.com/redwoodjs/redwoodjs.com/issues/212.

Howdy @xeloader ! In case you're still working on this, I recently wrote a tutorial on custom auth. Let me know if it helps, and good luck! https://community.redwoodjs.com/t/custom-auth-web3-ethereum/1618

Was this page helpful?
0 / 5 - 0 ratings

Related issues

josteph picture josteph  路  3Comments

peterp picture peterp  路  4Comments

thedavidprice picture thedavidprice  路  3Comments

jeliasson picture jeliasson  路  3Comments

weaversam8 picture weaversam8  路  3Comments