diff options
author | maxbr <maxbr@mi.fu-berlin.de> | 2016-08-19 17:15:28 +0200 |
---|---|---|
committer | maxbr <maxbr@mi.fu-berlin.de> | 2016-08-19 17:15:28 +0200 |
commit | 114a6fb65e14f15487bc8db33cedae011fc42cac (patch) | |
tree | b0e2db7a0876ade38e7780468b367a30b48b6036 /pharos-dashboard/pharos_dashboard/settings.py | |
parent | 217e6dd3c193b5f576ade7581775993c8ed82294 (diff) |
Use Jira Oauth for user authentication
JIRA: RELENG-12
Users can use their jira accounts for the dashboard. This also allows
the dasboard to open jira tickets for bookings.
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'pharos-dashboard/pharos_dashboard/settings.py')
-rw-r--r-- | pharos-dashboard/pharos_dashboard/settings.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pharos-dashboard/pharos_dashboard/settings.py b/pharos-dashboard/pharos_dashboard/settings.py index 7717501..a482f95 100644 --- a/pharos-dashboard/pharos_dashboard/settings.py +++ b/pharos-dashboard/pharos_dashboard/settings.py @@ -56,6 +56,7 @@ MIDDLEWARE = [ 'account.middleware.TimezoneMiddleware', ] + ROOT_URLCONF = 'pharos_dashboard.urls' TEMPLATES = [ @@ -144,3 +145,11 @@ djcelery.setup_loader() BROKER_URL = 'django://' CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler' +JIRA_URL = 'http://localhost:8080' + +OAUTH_CONSUMER_KEY = 'oauth-pharos-dashboard-consumer' +OAUTH_CONSUMER_SECRET = 'development_secret' + +OAUTH_REQUEST_TOKEN_URL = JIRA_URL + '/plugins/servlet/oauth/request-token' +OAUTH_ACCESS_TOKEN_URL = JIRA_URL + '/plugins/servlet/oauth/access-token' +OAUTH_AUTHORIZE_URL = JIRA_URL + '/plugins/servlet/oauth/authorize'
\ No newline at end of file |