hackdash icon indicating copy to clipboard operation
hackdash copied to clipboard

Add Google & Auth0 authentication

Open eraviart opened this issue 9 years ago • 3 comments
trafficstars

I added support for Auth0 authentication because this is an easy way to add login/password authentication to HackDash.

To implement it, I had to add two optional fields to providers: name and icon.

You can see it running on https://hackathon.ogpsummit.org (try "Email" authentication).

Caution: provider_id returned by Auth0 are strings instead of numbers. So I changed the type of the provider_id attribute of User but I didn't write the script to convert existing provider_id to strings.

eraviart avatar Nov 05 '16 14:11 eraviart

@eraviart this is really cool! my only concern is, who is paying for the auth0 auth?

impronunciable avatar Nov 06 '16 15:11 impronunciable

My understanding of Aut0 site, is that the service is free until we reach 7000 active users per month.

Since we use Auth0 service only for email authentication, I believe I won't reach this limit, even for our "huge" hackathon :-)

eraviart avatar Nov 06 '16 19:11 eraviart

@eraviart Awesome. Thank you very much. I'll take a look and merge if everything is okay.

Thank you very much for the contribution

impronunciable avatar Nov 07 '16 14:11 impronunciable