ToolDeploymentGrant
in package
What a deployment is willing to release from the registration's request.
A row is an allow. No row is a block. The registration document stays the request. iss and sub are not rows; they are always sent. A deployment cannot allow a claim or scope the registration did not ask for.
Table of Contents
Methods
- allowClaim() : void
- allowedClaims() : array<int, string>
- allowedScopes() : array<int, string>
- allowScope() : void
- blockClaim() : void
- blockScope() : void
- retain() : void
- Drop grants this registration no longer asks for.
- db() : PDOX
- delete() : void
- deleteMissing() : void
- insert() : void
- listValues() : array<int, string>
- prefix() : string
- requireDeployment() : array<string, mixed>
Methods
allowClaim()
public
static allowClaim(int $toolDeploymentId, string $claim) : void
Parameters
- $toolDeploymentId : int
- $claim : string
allowedClaims()
public
static allowedClaims(int $toolDeploymentId) : array<int, string>
Parameters
- $toolDeploymentId : int
Return values
array<int, string>allowedScopes()
public
static allowedScopes(int $toolDeploymentId) : array<int, string>
Parameters
- $toolDeploymentId : int
Return values
array<int, string>allowScope()
public
static allowScope(int $toolDeploymentId, string $scope) : void
Parameters
- $toolDeploymentId : int
- $scope : string
blockClaim()
public
static blockClaim(int $toolDeploymentId, string $claim) : void
Parameters
- $toolDeploymentId : int
- $claim : string
blockScope()
public
static blockScope(int $toolDeploymentId, string $scope) : void
Parameters
- $toolDeploymentId : int
- $scope : string
retain()
Drop grants this registration no longer asks for.
public
static retain(int $registrationId, array<int, string> $claims, array<int, string> $scopes) : void
Parameters
- $registrationId : int
- $claims : array<int, string>
- $scopes : array<int, string>
db()
private
static db() : PDOX
Return values
PDOXdelete()
private
static delete(string $table, string $column, array<string, mixed> $deployment, string $value, string $missing) : void
Parameters
- $table : string
- $column : string
- $deployment : array<string, mixed>
- $value : string
- $missing : string
deleteMissing()
private
static deleteMissing(string $table, string $column, int $registrationId, array<int, string> $keep) : void
Parameters
- $table : string
- $column : string
- $registrationId : int
- $keep : array<int, string>
insert()
private
static insert(string $table, string $column, array<string, mixed> $deployment, string $value, string $duplicate) : void
Parameters
- $table : string
- $column : string
- $deployment : array<string, mixed>
- $value : string
- $duplicate : string
listValues()
private
static listValues(string $table, string $column, int $toolDeploymentId) : array<int, string>
Parameters
- $table : string
- $column : string
- $toolDeploymentId : int
Return values
array<int, string>prefix()
private
static prefix() : string
Return values
stringrequireDeployment()
private
static requireDeployment(int $toolDeploymentId) : array<string, mixed>
Parameters
- $toolDeploymentId : int