Skip to content

Commit

Permalink
Update some classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 28, 2019
1 parent f1c3643 commit ff78081
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Protocol/Eulogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ public function supportAuthentication(): bool
*/
public function withServerRequest(ServerRequestInterface $serverRequest): CasInterface
{
return $this->cas->withServerRequest($serverRequest);
$clone = clone $this;
$clone->cas = $clone->cas->withServerRequest($serverRequest);

return $clone;
}
}
8 changes: 8 additions & 0 deletions src/Security/Core/User/EuloginUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ public function getAttributes(): array
return $this->user->getAttributes();
}

/**
* {@inheritdoc}
*/
public function getAuthenticationFactors(): array
{
return $this->user->getAttribute('authenticationFactors', []);
}

/**
* {@inheritdoc}
*/
Expand Down
5 changes: 5 additions & 0 deletions src/Security/Core/User/EuloginUserInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ interface EuloginUserInterface extends CasUserInterface
*/
public function getAssuranceLevel(): ?string;

/**
* @return array
*/
public function getAuthenticationFactors(): array;

/**
* @return string|null
*/
Expand Down

0 comments on commit ff78081

Please sign in to comment.