Skip to content

Commit

Permalink
update eve to 0.7.4 to workaround the lowercase token bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Jun 2, 2017
1 parent 992fa1b commit 1c8abb8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dockereve-master/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ nginx:
links:
- eve:eve
- swagger_ui:swagger_ui

swagger_ui:
image: swaggerapi/swagger-ui:v3.0.12
environment:
Expand Down
7 changes: 4 additions & 3 deletions dockereve-master/eve-app/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:

from eve import Eve
from eve.auth import TokenAuth
from eve_swagger import swagger
from settings import my_settings as ms
import os
script_dir = os.path.dirname(os.path.abspath(__file__))

class TokenAuth(TokenAuth):
def check_auth(self, token, allowed_roles, resource, method):
Expand All @@ -22,4 +24,3 @@ def check_auth(self, token, allowed_roles, resource, method):

if __name__ == '__main__':
app.run(host='0.0.0.0')

2 changes: 1 addition & 1 deletion dockereve-master/eve-app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gunicorn==19.3.0
eve==0.6.3
eve==0.7.4
eve-swagger==0.0.7

0 comments on commit 1c8abb8

Please sign in to comment.