adonisjs / ally

AdonisJS Social Authentication Provider
MIT License
159 stars 53 forks source link

Custom provider #118

Closed irwing-reza closed 3 years ago

irwing-reza commented 3 years ago

Hi,

Is there a guide for writing a custom provider for Ally?

Thanks

thetutlage commented 3 years ago

Yup, working on it. Which provider you want to add?

irwing-reza commented 3 years ago

Awesome, facebook and linkedin.

BatuhanK commented 3 years ago

👍 +1 I also need some guidance on this topic

thetutlage commented 3 years ago

Added linkedin and discord in v3.3.0. Facebook + guides for adding a custom social provider will be out soon as well

https://github.com/adonisjs/ally/releases/tag/v3.3.0

stringfold commented 3 years ago

So I recently forked the ally code and implemented the Reddit provider using the same framework as the others already in the project. (Essentially, I duplicated the Discord provider and made the necessary modifications.)

Do you want to include it in the ally project with the other providers or should I just go ahead and publish a standalone npm package following the process you posted earlier this week?

Here's the code:

Reddit Provider

thetutlage commented 3 years ago

We have got a boilerplate repo with docs in README on how to create and test custom drivers https://github.com/adonisjs-community/ally-driver-boilerplate