Skip to Content
Xeonr Developer Docs
API SpecificationPRIVATEApplications

Decide Application Binding Request

POST
/xeonr.auth.private.v1.ApplicationsService/DecideApplicationBindingRequest

Approves or rejects a binding into this application. Approval grants the binding with exactly the scopes named in approved_scopes (a subset of what was requested); approving it again replaces that set. Rejection keeps the binding as rejected, granting nothing, so the requester can see the decision and ask again by changing its scopes.

For a client binding, approval also settles its mode: ENROLLED (people signing in to the client must be enrolled in this application, or are enrolled automatically) or DELEGATED (the client calls this application's API on their behalf without them being enrolled). Approving an already-approved client binding with a different mode changes it.

Required scopes: auth:apps:edit (organisation-wide) or auth:apps:edit:own (applications owned by a team you belong to) or auth:apps:manage:self (a service account, for its own application only; never the auth application)

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

applicationId?string

The application being bound TO — the one whose owner is deciding.

Length1 <= length <= 64
principalType?not unknown

What kind of principal is asking to be bound to an application.

Value in"BINDING_PRINCIPAL_TYPE_UNSPECIFIED" | "BINDING_PRINCIPAL_TYPE_CLIENT" | "BINDING_PRINCIPAL_TYPE_SERVICE_ACCOUNT"
principalId?string
Length1 <= length
approve?boolean

Approve grants the binding with approved_scopes. Reject refuses it: the binding is kept as REJECTED (granting nothing) so the requester can see the refusal, and changing its requested scopes or mode asks again. Rejecting an approved binding withdraws it.

mode?string

CLIENT principals only, with approve: the mode to grant the binding in. UNSPECIFIED keeps the mode the requester asked for (or, for a binding that is already approved, the mode in force). Approving an already-approved binding with a different mode is how its owner changes the mode later. Refused for a service account and on a rejection.

Value in"CLIENT_APPLICATION_BINDING_MODE_UNSPECIFIED" | "CLIENT_APPLICATION_BINDING_MODE_ENROLLED" | "CLIENT_APPLICATION_BINDING_MODE_DELEGATED"
approvedScopes?array<>

With approve: exactly the scopes to approve, each one of the binding's requested scopes. Empty approves the binding with NO scopes (audience and config only); it never means "all". Approving an approved binding again replaces its approved set, which is how the owner approves newly requested scopes or withdraws some. Must be empty on a rejection.

Itemsitems <= 200
callerExchange?|

CLIENT principals only, with approve: whether this client may exchange its callers' tokens (a person's, or a team bot's API key) for tokens to this application, as those same callers (AUTH-314's caller exchange). Unset keeps the binding's current setting; it is off on every binding until its owner turns it on. Refused for a service account and on a rejection, which clears it. validate:skip a flag, nothing to constrain

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/DecideApplicationBindingRequest" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "empty": {}
}