Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stateless authentication #49

Merged
merged 2 commits into from
Jan 24, 2017
Merged

Commits on Jan 24, 2017

  1. Add stateless authentication

    add stateless token authentication. The user must be logged in by '/login' by sending a JSON form with user and pass, and in case the authentication is successful, a token is returned in the Header 'X-AUTH-TOKEN', otherwise an authenticated error is sent. Also, when trying to access a resource which is not '/login' or '/' and no token is provided, a 401 unauthorized error will be returned.
    
    - implement login authentication filter
    - implement authentication filter for logged users
    - implement handler to return unauthorized message
    [NOT TESTED] implement stateless authentication filter with JWT token obtention
    
    [WORKING] implement stateless login filter && restricted access to resources only to authenticated users, except for LOGIN
    
    [WORKING] replaced 403 (forbidden) return value for 401 (unauthorized)
    gibarsin committed Jan 24, 2017
    Configuration menu
    Copy the full SHA
    a3bfaba View commit details
    Browse the repository at this point in the history
  2. Add codecov config

    gibarsin committed Jan 24, 2017
    Configuration menu
    Copy the full SHA
    210052e View commit details
    Browse the repository at this point in the history