mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-22 07:12:36 +00:00
7d7cd32ca7
Wrapped userinfo response in its own class for additional handling and validation. Updated userdetails to take abstract claim data, to be populated by either userinfo data or id token data.
18 lines
315 B
PHP
18 lines
315 B
PHP
<?php
|
|
|
|
namespace BookStack\Access\Oidc;
|
|
|
|
interface ProvidesClaims
|
|
{
|
|
/**
|
|
* Fetch a specific claim.
|
|
* Returns null if it is null or does not exist.
|
|
*/
|
|
public function getClaim(string $claim): mixed;
|
|
|
|
/**
|
|
* Get all contained claims.
|
|
*/
|
|
public function getAllClaims(): array;
|
|
}
|