OAuth2SubjectType uses ConstantsTrait
Enumeration of OpenID Connect Subject Identifier types.
A subject type controls how the sub claim is computed for a relying party
(OIDC Core §8). It appears in the subject_types_supported discovery field
and in the subject_type client registration metadata.
Example:
if ( in_array( OAuth2SubjectType::PAIRWISE , $metadata[ OidcDiscoveryField::SUBJECT_TYPES_SUPPORTED ] , true ) )
{
// provider can issue per-client pseudonymous subject identifiers
}
References:
- OpenID Connect Core 1.0 §8 (Subject Identifier Types)
Tags
Table of Contents
Constants
- PAIRWISE : string = 'pairwise'
- `pairwise` — A different, pseudonymous `sub` value is returned to each client (or sector), so identifiers cannot be correlated across clients (OIDC Core §8).
- PUBLIC : string = 'public'
- `public` — The same `sub` value is returned to all clients (OIDC Core §8).
Constants
PAIRWISE
`pairwise` — A different, pseudonymous `sub` value is returned to each client (or sector), so identifiers cannot be correlated across clients (OIDC Core §8).
public
string
PAIRWISE
= 'pairwise'
PUBLIC
`public` — The same `sub` value is returned to all clients (OIDC Core §8).
public
string
PUBLIC
= 'public'