PatchConnectionOIDCOptions
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Table of Contents
Interfaces
- JsonSerializable
Properties
- $clientId : string|null
- The OIDC client ID.
- $clientSecret : string|null
- The OIDC client secret. Required when moving the connection to `client_secret_basic` or `client_secret_post`, and rejected for `private_key_jwt`, which authenticates with a key pair instead. This value is write-only and is never returned.
- $discoveryEndpoint : string|null
- The OIDC discovery endpoint.
- $fetchUserInfo : bool|null
- Whether to fetch additional profile attributes from the userinfo endpoint.
- $idTokenSignatureAlgorithm : PatchConnectionOIDCOptionsIdTokenSignatureAlgorithm|null
- The ID-token signing algorithm.
- $pkce : bool|null
- Whether PKCE is enabled for the connection.
- $redirectUri : string|null
- A custom OAuth callback URL override. Set to `null` to revert to the standard WorkOS-generated redirect URI.
- $tokenAuthenticationMethod : PatchConnectionOIDCOptionsTokenAuthenticationMethod|null
- The token-endpoint client authentication method. Moving to `private_key_jwt` generates a signing key pair if the connection has none; its certificate is returned in `oidc_options.jwt_signing_certs` and must be registered at the Identity Provider.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$clientId
The OIDC client ID.
public
string|null
$clientId
= null
$clientSecret
The OIDC client secret. Required when moving the connection to `client_secret_basic` or `client_secret_post`, and rejected for `private_key_jwt`, which authenticates with a key pair instead. This value is write-only and is never returned.
public
string|null
$clientSecret
= null
$discoveryEndpoint
The OIDC discovery endpoint.
public
string|null
$discoveryEndpoint
= null
$fetchUserInfo
Whether to fetch additional profile attributes from the userinfo endpoint.
public
bool|null
$fetchUserInfo
= null
$idTokenSignatureAlgorithm
The ID-token signing algorithm.
public
PatchConnectionOIDCOptionsIdTokenSignatureAlgorithm|null
$idTokenSignatureAlgorithm
= null
$pkce
Whether PKCE is enabled for the connection.
public
bool|null
$pkce
= null
$redirectUri
A custom OAuth callback URL override. Set to `null` to revert to the standard WorkOS-generated redirect URI.
public
string|null
$redirectUri
= null
$tokenAuthenticationMethod
The token-endpoint client authentication method. Moving to `private_key_jwt` generates a signing key pair if the connection has none; its certificate is returned in `oidc_options.jwt_signing_certs` and must be registered at the Identity Provider.
public
PatchConnectionOIDCOptionsTokenAuthenticationMethod|null
$tokenAuthenticationMethod
= null
Methods
__construct()
public
__construct([string|null $discoveryEndpoint = null ][, string|null $clientId = null ][, string|null $clientSecret = null ][, string|null $redirectUri = null ][, bool|null $pkce = null ][, PatchConnectionOIDCOptionsTokenAuthenticationMethod|null $tokenAuthenticationMethod = null ][, PatchConnectionOIDCOptionsIdTokenSignatureAlgorithm|null $idTokenSignatureAlgorithm = null ][, bool|null $fetchUserInfo = null ]) : mixed
Parameters
- $discoveryEndpoint : string|null = null
- $clientId : string|null = null
- $clientSecret : string|null = null
- $redirectUri : string|null = null
- $pkce : bool|null = null
- $tokenAuthenticationMethod : PatchConnectionOIDCOptionsTokenAuthenticationMethod|null = null
- $idTokenSignatureAlgorithm : PatchConnectionOIDCOptionsIdTokenSignatureAlgorithm|null = null
- $fetchUserInfo : bool|null = null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>