diff --git a/src/KeycloakGuard.php b/src/KeycloakGuard.php index 6d30208..11d7bda 100644 --- a/src/KeycloakGuard.php +++ b/src/KeycloakGuard.php @@ -12,11 +12,11 @@ class KeycloakGuard implements Guard { - private $config; - private $user; - private $provider; - private $decodedToken; - private Request $request; + protected $config; + protected $user; + protected $provider; + protected $decodedToken; + protected Request $request; public function __construct(UserProvider $provider, Request $request) { @@ -34,7 +34,7 @@ public function __construct(UserProvider $provider, Request $request) * * @return mixed */ - private function authenticate() + protected function authenticate() { try { $this->decodedToken = Token::decode($this->getTokenForRequest(), $this->config['realm_public_key'], $this->config['leeway']); @@ -179,7 +179,7 @@ public function validate(array $credentials = []) * * @return void */ - private function validateResources() + protected function validateResources() { if ($this->config['ignore_resources_validation']) { return;