Merge pull request #198 from guardicore/bugfix/uuid_to_string

Bugfix JWT expects input of string
This commit is contained in:
Daniel Goldberg 2018-11-18 08:49:04 -08:00 committed by GitHub
commit 05103c21a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ def init_app(mongo_url):
app.config['MONGO_URI'] = mongo_url
app.config['SECRET_KEY'] = uuid.getnode()
app.config['SECRET_KEY'] = str(uuid.getnode())
app.config['JWT_AUTH_URL_RULE'] = '/api/auth'
app.config['JWT_EXPIRATION_DELTA'] = env.get_auth_expiration_time()