oauth/settings/oauth_settings.py.tmpl
author durandn
Thu, 10 Mar 2016 13:32:18 +0100
changeset 15 8004d8fc9b38
parent 5 4407b131a70e
permissions -rw-r--r--
Corrected settings to support deployment in a subdirectory + protected front_list and front_delete so only staff users can access it + added version display in front_list


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'