ConservationInternational / COA001

COASST Database App & API
0 stars 0 forks source link

Basic auth primitives #8

Closed seansu4you87 closed 9 years ago

seansu4you87 commented 9 years ago

Here are some basic tools for Authentication. Given the ambiguity around how the legacy app currently handles logins (multiple "accounts" per email), I'm going to punt on implementing the actual endpoints until we figure that out. It should be fairly easy after this pull though.

The Authenticating context reimplements the auth algorithm used in the legacy app. It's fairly simple, and based on SHA1 as a primitive. The test includes using data actually from the legacy database, to ensure that this reimplementation will actually work for existing users.