Add jwt auth in LMS

ECOM-3419
This commit is contained in:
Ahsan Ulhaq
2016-01-13 16:26:54 +05:00
parent 8798ee0f53
commit bcb8afb2c4
33 changed files with 120 additions and 253 deletions

View File

@@ -224,6 +224,13 @@ CORS_ALLOW_CREDENTIALS = True
CORS_ORIGIN_WHITELIST = ()
CORS_ORIGIN_ALLOW_ALL = True
# JWT settings for devstack
JWT_AUTH.update({
'JWT_ALGORITHM': 'HS256',
'JWT_SECRET_KEY': 'lms-secret',
'JWT_ISSUER': 'http://127.0.0.1:8000/oauth2',
'JWT_AUDIENCE': 'lms-key',
})
#####################################################################
# See if the developer has any local overrides.