OAuth2ClientResponse
in package
implements
JsonSerializable
OAuth2 client response -- omits client_secret_hash.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $clientId : string
- $createdAt : string
- $dpopBoundAccessTokens : bool
- $dpopRequireNonce : bool
- $grantTypes : array<string|int, mixed>
- $id : string
- $jwks : string|null
- $jwksUri : string|null
- $name : string
- $profile : ClientProfile
- $redirectUris : array<string|int, mixed>
- $requirePar : bool
- $scopes : array<string|int, mixed>
- $selfSignedTlsClientAuthThumbprints : array<string|int, mixed>
- $tenantId : string
- $tlsClientAuthSanDns : string|null
- $tlsClientAuthSanUri : string|null
- $tlsClientAuthSubjectDn : string|null
- $tlsClientCertificateBoundAccessTokens : bool
- $tokenEndpointAuthMethod : ClientAuthMethod
- $updatedAt : string
Methods
- __construct() : mixed
- Constructs a OAuth2ClientResponse.
- fromArray() : self
- Rebuilds a OAuth2ClientResponse from one decoded JSON object.
- jsonSerialize() : array<string, mixed>
- Renders this object for `json_encode()`.
- toArray() : array<string, mixed>
- Renders this object back to its wire form.
Properties
$clientId read-only
public
string
$clientId
$createdAt read-only
public
string
$createdAt
$dpopBoundAccessTokens read-only
public
bool
$dpopBoundAccessTokens
$dpopRequireNonce read-only
public
bool
$dpopRequireNonce
$grantTypes read-only
public
array<string|int, mixed>
$grantTypes
$id read-only
public
string
$id
$jwks read-only
public
string|null
$jwks
= null
$jwksUri read-only
public
string|null
$jwksUri
= null
$name read-only
public
string
$name
$profile read-only
public
ClientProfile
$profile
$redirectUris read-only
public
array<string|int, mixed>
$redirectUris
$requirePar read-only
public
bool
$requirePar
$scopes read-only
public
array<string|int, mixed>
$scopes
$selfSignedTlsClientAuthThumbprints read-only
public
array<string|int, mixed>
$selfSignedTlsClientAuthThumbprints
$tenantId read-only
public
string
$tenantId
$tlsClientAuthSanDns read-only
public
string|null
$tlsClientAuthSanDns
= null
$tlsClientAuthSanUri read-only
public
string|null
$tlsClientAuthSanUri
= null
$tlsClientAuthSubjectDn read-only
public
string|null
$tlsClientAuthSubjectDn
= null
$tlsClientCertificateBoundAccessTokens read-only
public
bool
$tlsClientCertificateBoundAccessTokens
$tokenEndpointAuthMethod read-only
public
ClientAuthMethod
$tokenEndpointAuthMethod
$updatedAt read-only
public
string
$updatedAt
Methods
__construct()
Constructs a OAuth2ClientResponse.
public
__construct(string $clientId, string $createdAt, bool $dpopBoundAccessTokens, bool $dpopRequireNonce, array<int, string> $grantTypes, string $id, string $name, ClientProfile $profile, array<int, string> $redirectUris, bool $requirePar, array<int, string> $scopes, array<int, string> $selfSignedTlsClientAuthThumbprints, string $tenantId, bool $tlsClientCertificateBoundAccessTokens, ClientAuthMethod $tokenEndpointAuthMethod, string $updatedAt[, string|null $jwks = null ][, string|null $jwksUri = null ][, string|null $tlsClientAuthSanDns = null ][, string|null $tlsClientAuthSanUri = null ][, string|null $tlsClientAuthSubjectDn = null ]) : mixed
Parameters
- $clientId : string
-
the server's
client_idfield - $createdAt : string
-
the server's
created_atfield - $dpopBoundAccessTokens : bool
-
the server's
dpop_bound_access_tokensfield - $dpopRequireNonce : bool
-
the server's
dpop_require_noncefield - $grantTypes : array<int, string>
-
the server's
grant_typesfield - $id : string
-
the server's
idfield - $name : string
-
the server's
namefield - $profile : ClientProfile
-
X5.1 — the registered posture and mTLS credentials. Read-back matters: an operator auditing which clients are financial-grade should be able to answer it from this endpoint rather than from the database.
- $redirectUris : array<int, string>
-
the server's
redirect_urisfield - $requirePar : bool
-
the server's
require_parfield - $scopes : array<int, string>
-
the server's
scopesfield - $selfSignedTlsClientAuthThumbprints : array<int, string>
-
the server's
self_signed_tls_client_auth_thumbprintsfield - $tenantId : string
-
the server's
tenant_idfield - $tlsClientCertificateBoundAccessTokens : bool
-
the server's
tls_client_certificate_bound_access_tokensfield - $tokenEndpointAuthMethod : ClientAuthMethod
-
the server's
token_endpoint_auth_methodfield - $updatedAt : string
-
the server's
updated_atfield - $jwks : string|null = null
-
X5.1 — echoed so an operator can confirm which key source is registered. The document itself is public key material, so returning it leaks nothing; a
jwks_uriis likewise public by construction. (optional) - $jwksUri : string|null = null
-
the server's
jwks_urifield (optional) - $tlsClientAuthSanDns : string|null = null
-
the server's
tls_client_auth_san_dnsfield (optional) - $tlsClientAuthSanUri : string|null = null
-
the server's
tls_client_auth_san_urifield (optional) - $tlsClientAuthSubjectDn : string|null = null
-
the server's
tls_client_auth_subject_dnfield (optional)
fromArray()
Rebuilds a OAuth2ClientResponse from one decoded JSON object.
public
static fromArray(array<string, mixed> $data) : self
Parameters
- $data : array<string, mixed>
-
The raw wire object.
Return values
selfjsonSerialize()
Renders this object for `json_encode()`.
public
jsonSerialize() : array<string, mixed>
Any Sensitive it carries stays WRAPPED here, so a log line or a
json_encode($model) in application code prints [SENSITIVE]. The one place a secret
is revealed is ManagementTransport, on the way to the wire
and nowhere else (§27.5).
Return values
array<string, mixed>toArray()
Renders this object back to its wire form.
public
toArray() : array<string, mixed>
§27.4 rule 5: a null property is OMITTED, not emitted as null. On a sparse update those two say opposite things — "leave this alone" versus "set this to nothing" — and only omission means the first.