oauth/settings/oauth_settings.py.tmpl
author durandn
Fri, 01 Apr 2016 12:56:16 +0200
changeset 43 425a2f1e08ea
parent 5 4407b131a70e
permissions -rw-r--r--
added error handling if token validation response is not a valid JSON string


class OAuthSettings(object):
    
    # MOCK GED CONFIG
    MOCK_GED_REDIRECT_URIS = [
        'http://localhost:8000/authorized',
        'http://127.0.0.1:8000/authorized',
        'http://127.0.1:8000/authorized',
        'http://127.1:8000/authorized',
    ]
    MOCK_GED_CLIENT_ID = ''
    MOCK_GED_CLIENT_SECRET = ''
    MOCK_GED_SERVER_USER = 'mock_ged_server'
    
    # RENKAN CONFIG
    RENKAN_REDIRECT_URIS = [
        'http://127.0.0.1:8001/accounts/mtdc/login/callback/',
        'http://127.0.0.1:8001/accounts/mtdc/login/callback/',
        'http://127.0.1:8001/accounts/mtdc/login/callback/',
        'http://127.1:8001/accounts/mtdc/login/callback/',
    ]
    RENKAN_CLIENT_ID = ''
    RENKAN_CLIENT_SECRET = ''
    RENKAN_SERVER_USER = 'renkan_server'