We now have a central sign-on system for our web pages. When a user logs into one section of our web site, they do not have to log in to other sections. You can use the central sign-on for your official web pages, if you are using PHP for your web pages. All official web pages are, under the redesign, using PHP.
The single sign-on system handles requesting passwords via secure server and authorizes pages for you automatically.
The central system updates immediately after someone changes their password, unlike the .htaccess system which can take up to an hour to reflect password changes.
Unlike the .htaccess system, this system protects pages, not directories. Protecting one page with this system does not protect the rest of the pages in that directory, even if it is the index page. You must follow these steps on every page that you want protected. This system cannot protect images, PDF files, or any files other than PHP files. If you wish to password-protect non-PHP documents, use the File Downloads plug-in.
Password-protecting your PHP page
Require a login on your USD web page using this PHP snippet at the very top of your web page:
<? require_once('/web/includes/sso_portal.phpi'); $sso->authenticate(); ?>
This will require a portal login before proceeding. That line must be at the very top of your page, above the <html> tag. Otherwise, the server can’t redirect the visitor to the portal for login, and they’ll see your page.
If you want to display a logout button (and it’s a good idea), put this code on your page where you want the logout button to be:
You can provide a page name to the button:
The button will read “Logout from my site”.
If you prefer a link to a button, use $sso->link() instead. It has the same site name option.
Allowing individual visitors
If there is only a short list of USD community members who should have access to this page, you can provide access using $sso->allow(). You can provide it a single account name, or a list of names. You can also use it more than once to conditionally add multiple allowed visitors.
<? $sso->allow('jerry'); $sso->allow(array('george', 'elaine')); IF ($timeForCrazy): $sso->allow('cosmo'); ENDIF; ?>
If your web page is on home.sandiego.edu, you cannot use sso_portal. You must use sso_www.
Please logout when done
Please remember to log out when you are finished, especially if you are on a public terminal.
Forgot your password?
You may reset your password with our online password reset tool. If you have questions or need technical support, please contact the ITS Help Desk (formerly the Tech Support Center). Contact us 24 hours/day at (619) 260-7900 or at firstname.lastname@example.org. Walk-in support is also available weekdays in UC 117, near One Stop Services. Visit our website for our current hours!