diff --git a/README.md b/README.md index ab877f2d05ad5b25838c8b9d95bc45835e031a53..9957d0a8cddac87e570298517fdf0e1b6d8e6ee7 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ uw-php-security is a PHP companion to [uw-spring-security](https://git.doit.wisc.edu/adi-ia/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 `UserDetailsService`, and uw-php-security provides implementations suitable for both local and preauth (Shibboleth) environments. +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 <?php -use edu\wisc\doit\PreauthUserDetailsService; // or LocalUserDetailsService for local development +use edu\wisc\doit\PreauthUserDetailsProvider; // or LocalUserDetailsProvider for local development ... -$userDetailsService = new PreauthUserDetailsService(); -$user = $userDetailsService->loadUser(); +$userDetailsProvider = new PreauthUserDetailsProvider(); +$user = $userDetailsProvider->loadUser(); if ($user == null) { // handle error }