Skip to content

bioscience-data-platform/mytardis-app-auth-aaf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mytardis-app-auth-aaf

OAuth2 based MyTardis authorize (used to authenticate with the Australian Access Federation)

Note

This is made to work with a custom server (yet to be released) that's composed of:

Installing

git clone <url> aaf tardis/apps (with the custom name aaf)

Example: /opt/mytardis/current/tardis/apps/aaf/..

Add to tardis/settings.py

INSTALLED_APPS = ("tardis.apps.aaf",) + INSTALLED_APPS

# For both localdb and aaf auth.
AUTH_PROVIDERS = (
    ('localdb', 'Local DB', 'tardis.tardis_portal.auth.localdb_auth.DjangoAuthBackend'),
    ('aaf', 'Australian Access Federation', 'tardis.apps.aaf.auth.aaf_auth.DjangoAuthBackend'),
)

AAF_OAUTH2_AUTHORIZE_URL = 'https://my-oauth2-server/oauth-aaf/authorize.php'
AAF_OAUTH2_CLIENT_ID = 'my-oauth2-client-id'

# url used to retrieve user credentials from auth server using auth code
AAF_OAUTH2_CODE_URL = 'http://my-oauth2-server/code.php'

About

OAuth2 based MyTardis authorize (used to authenticate with the Australian Access Federation)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published