rossta / opensesame-github

Company walled-garden authentication via github organizations
https://github.com/rossta/opensesame-github
1 stars 0 forks source link

Enhancement to support both github and password authentication #1

Open sandys opened 10 years ago

sandys commented 10 years ago

hi, quick question - can this gem be enhanced to support both password as well as the omniauth authentication mechanisms ?

the usecase is to either use a locally created username/password OR a github organization based. I'm unsure of how to support both for the same model

rossta commented 10 years ago

You won't be able to do that with this project, but you might want to take a look at this repo's original parent project, OpenSesame. It's a Rails engine built on top of the warden. What you're suggesting could be a separate warden authentication strategy, similar to https://github.com/rossta/opensesame/blob/master/lib/open_sesame/github_warden.rb. Patches are welcome.