root / snf-cyclades-app / synnefo / app_settings / default / aai.py @ 9c0ac5af
History | View | Annotate | Download (989 Bytes)
1 |
# -*- coding: utf-8 -*-
|
---|---|
2 |
from synnefo.util.entry_points import extend_list_from_entry_point |
3 |
#
|
4 |
# AAI configuration
|
5 |
#####################
|
6 |
|
7 |
# Unauthenticated HTTP requests to the UI get redirected to this URL
|
8 |
LOGIN_URL = "/login"
|
9 |
|
10 |
# Set the expiration time of newly created auth tokens
|
11 |
# to be this many hours after their creation time.
|
12 |
AUTH_TOKEN_DURATION = 30 * 24 |
13 |
|
14 |
# Enable receiving a temporary auth token (using the ?test URL parameter) that
|
15 |
# bypasses the authentication mechanism.
|
16 |
#
|
17 |
# Make sure there is an actual user in the db whose token matches
|
18 |
# BYPASS_AUTHENTICATION_SECRET_TOKEN.
|
19 |
#
|
20 |
# WARNING, ACHTUNG, README, etc: DO NOT ENABLE THIS ON DEPLOYED VERSIONS!
|
21 |
#
|
22 |
BYPASS_AUTHENTICATION = False
|
23 |
BYPASS_AUTHENTICATION_SECRET_TOKEN = '5e41595e9e884543fa048e07c1094d74'
|
24 |
|
25 |
# Urls that bypass Shibboleth authentication
|
26 |
AAI_SKIP_AUTH_URLS = ['/api', '/plankton', '/invitations/login'] |
27 |
AAI_SKIP_AUTH_URLS = extend_list_from_entry_point(AAI_SKIP_AUTH_URLS, \ |
28 |
'synnefo', 'web_skip_urls') |