kawa-kokosowa / msg

A simple, but powerful RESTful messaging library.
MIT License
3 stars 0 forks source link

implement token-based auth #49

Open kawa-kokosowa opened 8 years ago

kawa-kokosowa commented 8 years ago

Add resource Authentication to /auth. A user will request a token with their base64 creds (typical HTTPBasicAuth) to /auth. Further, the username part of the base64 creds should be the token, whereas the password's value is completely ignored.

Using application context for user/database stuff in Authentication.

Some requests need to use this flask.g application context for user. I'll leave that to QA to find out hehehehe.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.3%) to 93.671% when pulling 88e2307b399fe3d93c497ef8017c750eba731d5b on feature-token-based-auth into 8f7cfc72fb39073bbd6db0d407ea1350e6f94586 on master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-6.3%) to 93.671% when pulling afbf31c037c528108a3114fdf99f3d0aac63d52b on feature-token-based-auth into 8f7cfc72fb39073bbd6db0d407ea1350e6f94586 on master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-2.5%) to 97.468% when pulling 5a96a95954bcac5c2e54465c9c8301bf797af721 on feature-token-based-auth into 8f7cfc72fb39073bbd6db0d407ea1350e6f94586 on master.