Skip to content
Snippets Groups Projects
Andy Summers's avatar
Andy Summers authored
Chore: replace EPPN with email

This PR fixes an error in `PreauthUserDetailsProvider` where EPPN was being passed to the constructor in place of email, an artifact of the email attribute not being delivered by Shib until recently.

Please review: @ahoffmann @weizhong-wang @KJOYNER

See merge request !9
677edb73
History

uw-php-security

uw-php-security is a PHP companion to uw-spring-security for Java. Its purpose is to ease development of PHP applications needing details about UW users provided through Shibboleth.

Like uw-spring-security, uw-php-security provides a class called UWUserDetails for easily accessing common UW user attributes. This model is provided to applications through a UserDetailsProvider, and uw-php-security provides implementations suitable for both local and preauth (Shibboleth) environments.

<?php

use edu\wisc\doit\PreauthUserDetailsProvider; // or LocalUserDetailsProvider for local development
...
$userDetailsProvider = new PreauthUserDetailsProvider();
$user = $userDetailsProvider->loadUser();
if ($user == null) {
    // handle error
}
...

Developer Requirements

Building

To build the project and execute tests, run the following command at the root of the project:

php phing.phar