The IDM tools should only be used for informational purposes only (i.e., as an indicator that a user may be logged in).
Until the login server can start sessions for the end-user, applications using CAS/SSO can tell the UNL template that a user is logged in. This is started by calling the setUser();
method of the idm
module with the username (uid
) of the user that is currently logged in.
Click here to indicate Brett Bieber is logged in.
By default the logout URL will end the session with the CAS server. This URL can be customized so the session with the current application can be ended. To customize the logout URL, use WDN.setPluginParam('idm', 'logout', '?logout');
<script>
WDN.setPluginParam('idm', 'login', '?login');
WDN.setPluginParam('idm', 'logout', '?logout');
</script>
<script>
require(['idm'], function(idm) {
idm.displayNotice('bbieber2');
idm.setLogoutURL('?logout');
idm.renderAsLoggedOut();
})
</script>
Cookies are used to indicate whether login notification should be displayed to the end user. As a result, this feature will only work for websites containing .unl.edu
within the domain portion of the URL.