Skip to content

Commit

Permalink
allow the KeycloakGuard to be extended (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
SolveSoul authored Apr 27, 2023
1 parent cccb3ea commit 042483a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/KeycloakGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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']);
Expand Down Expand Up @@ -179,7 +179,7 @@ public function validate(array $credentials = [])
*
* @return void
*/
private function validateResources()
protected function validateResources()
{
if ($this->config['ignore_resources_validation']) {
return;
Expand Down

0 comments on commit 042483a

Please sign in to comment.