From f14f4096a339fb1d05f4dec3696052939ff2c5d4 Mon Sep 17 00:00:00 2001 From: Andres Rosado Date: Fri, 23 Jul 2021 10:28:39 -0400 Subject: [PATCH] Update SamlUserProvider.php On the file SamlAuth/Auth/SamlAuth.php, an object of SamlUserProvider is created and 3 parameters are passed, while the constructor expects 4. I couldn't find a way to extract the information on roles at the point I was looking on. This proposed change would leave the call in SamlAuth/Auth/SamlAuth.php unaltered while adding the default value other UserProviders return. --- User/SamlUserProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/User/SamlUserProvider.php b/User/SamlUserProvider.php index b790a56..f2d4c2e 100644 --- a/User/SamlUserProvider.php +++ b/User/SamlUserProvider.php @@ -36,7 +36,7 @@ class SamlUserProvider implements UserProviderInterface * @access public * @param string $username */ - public function __construct($username, $email, $name, $role) + public function __construct($username, $email, $name, $role = '') { $this->username = $username; $this->email = $email;