Skip to content
Snippets Groups Projects
Andy Summers's avatar
Andy Summers authored
Remove tests from edu\wisc\doit namespace

The tests were auto-added to the `edu\wisc\doit` namespace by IntelliJ, bundling them as a classes in our released package. Since downstream apps don't need to instantiate the tests, this removes them from the namespace.

Please review: @ahoffmann 

See merge request !5
854bea31
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