WorkOS PHP SDK

DataIntegrationCredentials
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Organization-managed OAuth credential configuration. Present only for integrations whose credentials are supplied by the organization; absent otherwise.

Table of Contents

Interfaces

JsonSerializable

Properties

$clientId  : string|null
The OAuth client ID supplied by the organization, or `null` when none is configured.
$clientSecretLastFour  : string|null
The last four characters of the organization-supplied OAuth client secret, or `null` when none is configured.
$credentialsType  : DataIntegrationCredentialsCredentialsType
The credentials type for this integration (e.g., `shared`, `custom`, or `organization`).
$hasCredentials  : bool
Whether the organization has supplied OAuth credentials for this integration.
$redirectUri  : string
The redirect URI to register with the provider when configuring the organization-managed OAuth application.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$clientId

The OAuth client ID supplied by the organization, or `null` when none is configured.

public string|null $clientId

$clientSecretLastFour

The last four characters of the organization-supplied OAuth client secret, or `null` when none is configured.

public string|null $clientSecretLastFour

$hasCredentials

Whether the organization has supplied OAuth credentials for this integration.

public bool $hasCredentials

$redirectUri

The redirect URI to register with the provider when configuring the organization-managed OAuth application.

public string $redirectUri

Methods

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results