CreateOAuthApplication
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $applicationType : string
- The type of application to create.
- $description : string|null
- A description for the application.
- $isFirstParty : bool
- Whether this is a first-party application. Third-party applications require an organization_id.
- $name : string
- The name of the application.
- $organizationId : string|null
- The organization ID this application belongs to. Required when is_first_party is false.
- $redirectUris : array<string|int, RedirectUriInput>|null
- Redirect URIs for the application.
- $scopes : array<string|int, string>|null
- The OAuth scopes granted to the application.
- $usesPkce : bool|null
- Whether the application uses PKCE (Proof Key for Code Exchange).
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$applicationType
The type of application to create.
public
string
$applicationType
$description
A description for the application.
public
string|null
$description
= null
$isFirstParty
Whether this is a first-party application. Third-party applications require an organization_id.
public
bool
$isFirstParty
$name
The name of the application.
public
string
$name
$organizationId
The organization ID this application belongs to. Required when is_first_party is false.
public
string|null
$organizationId
= null
$redirectUris
Redirect URIs for the application.
public
array<string|int, RedirectUriInput>|null
$redirectUris
= null
$scopes
The OAuth scopes granted to the application.
public
array<string|int, string>|null
$scopes
= null
$usesPkce
Whether the application uses PKCE (Proof Key for Code Exchange).
public
bool|null
$usesPkce
= null
Methods
__construct()
public
__construct(string $name, string $applicationType, bool $isFirstParty[, string|null $description = null ][, array<string|int, mixed>|null $scopes = null ][, array<string|int, mixed>|null $redirectUris = null ][, bool|null $usesPkce = null ][, string|null $organizationId = null ]) : mixed
Parameters
- $name : string
- $applicationType : string
- $isFirstParty : bool
- $description : string|null = null
- $scopes : array<string|int, mixed>|null = null
- $redirectUris : array<string|int, mixed>|null = null
- $usesPkce : bool|null = null
- $organizationId : string|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>