Adds a login view to MyTardis which allows users to log in with LDAP credentials, or using the Australian Access Federation or Google OAuth via OpenID Connect.
These instructions assume that you have installed and configured MyTardis. If you haven't please follow the instructions in the latest MyTardis documentation.
Install the latest version of the Monash_OpenID_Login
app:
pip install git+https://github.com/monash-merc/Monash_OpenID_Login@master#egg=monash_openid_login
If using a virtualenv, remember to activate it first.
Add the following to your MyTardis settings file eg. /path/to/mytardis/tardis/settings.py
:
Add tardis.apps.social_auth
and Monash_OpenID_Login
to your INSTALLED_APPS
:
INSTALLED_APPS = INSTALLED_APPS + (
'tardis.apps.social_auth',
'monash_openid_login',
)
Also in your MyTardis settings, override the login view:
LOGIN_VIEWS = {
1: 'monash_openid_login.views.LoginView'
}
If you need to provide custom message on Login page, please add following settings to your setting.py
file.
LOGIN_PAGE_MESSAGE = "A sample message"
For more information on overriding MyTardis's login view, see: https://mytardis.readthedocs.io/en/develop/apps/contextual_views.html#custom-login-view