rubyforgood / playtime

Supporting children and families experiencing homelessness in Washington, DC. Live app - https://wishlist.playtimeproject.org Organization Website:
http://www.playtimeproject.org/
MIT License
89 stars 50 forks source link

Add an easier login method for development #73

Closed leesharma closed 7 years ago

leesharma commented 7 years ago

Logging in with Amazon can be a pain in development (esp. if we want to click around as different users). Adding a simple auth system for development-only would make working on the project much more pleasant.

The developer strategy might be a good place to start: http://www.rubydoc.info/github/intridea/omniauth/OmniAuth/Strategies/Developer

This is probably not an MVP feature.

leesharma commented 7 years ago

The developer strategy's turning out to be more of a pain than I expected. The generated form apparently doesn't include an authenticity token, so I keep getting ActionController::InvalidAuthenticityToken errors on submit.

A quick google suggest disabling csrf protection, but that seems like a very bad plan. I'll look at this again tomorrow. Maybe using a custom view or something would work. Alternatively, maybe a standard login (identity strategy) would be easier.

leesharma commented 7 years ago

Actually, since this isn't going to take the 10-minute solution, I'm going to delay this one. It's not our top priority at the moment.