Skip to Content
Xeonr Developer Docs

Verify API Key

POST
/xeonr.auth.api.v1.ApiKeysService/VerifyApiKey

Resolves a presented key to its owner, effective scopes and bindings, checking on every call that it is not revoked or expired and that its owner is still active. A key of another application answers UNKNOWN. Callers cache the answer for cache_ttl_seconds; go-platform's authn does this for you.

Service accounts only.

Required scopes: auth:api-keys:verify

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

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

token?string

The bearer credential as presented to the product, prefix included.

Length1 <= length <= 512
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.ApiKeysService/VerifyApiKey" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "valid": true,
  "reason": "API_KEY_VERIFY_REASON_UNSPECIFIED",
  "cacheTtlSeconds": 0,
  "key": {
    "keyId": "urn:xeonr:auth:api-key:7e0c1e52-3a0d-4a0a-9b2e-2f0f7a1b9c3d",
    "name": "string",
    "description": "string",
    "keyPrefix": "string",
    "applicationId": "string",
    "applicationSlug": "string",
    "applicationName": "string",
    "owner": {
      "kind": "API_KEY_OWNER_KIND_UNSPECIFIED",
      "urn": "urn:xeonr:auth:team:0f3c9a2e-8f1b-4c2d-9e6a-1b2c3d4e5f60",
      "resourceType": "bucket",
      "resourceId": "bkt_01J9W3E8Q9"
    },
    "subject": "string",
    "identityless": true,
    "scopes": [
      "string"
    ],
    "effectiveScopes": [
      "string"
    ],
    "resourceMode": "API_KEY_RESOURCE_MODE_UNSPECIFIED",
    "bindings": [
      {
        "resourceType": "string",
        "resourceId": "string",
        "scopes": [
          "string"
        ],
        "effectiveScopes": [
          "string"
        ],
        "label": "string"
      }
    ],
    "attributes": {
      "property1": {},
      "property2": {}
    },
    "expiresAt": "2023-01-15T01:30:15.01Z",
    "lastUsedAt": "2023-01-15T01:30:15.01Z",
    "revokedAt": "2023-01-15T01:30:15.01Z",
    "createdAt": "2023-01-15T01:30:15.01Z",
    "updatedAt": "2023-01-15T01:30:15.01Z",
    "createdBy": "string",
    "assertedBy": "string",
    "version": "string",
    "legacyPrefix": "string"
  }
}

Update API Key POST

Replaces the fields named in update_mask: name, description, scopes, bindings, attributes, expires_at. Bindings are replaced as a whole and re-checked as on creation; a BOUND key cannot be left without bindings. Bumps the key's version. Service accounts only. **Required scopes:** `auth:api-keys:manage`

xeonr.auth.api.v1.ApplicationInvitationService

ApplicationInvitationService lets a product invite a person by email to its OWN application (FRG-447): someone outside every team the application is entitled to, whom the product means to give access to one of its own resources (the forge giving a collaborator a repository). It is the email invitation the console's ApplicationService already has (CreateApplicationInvitation), opened to the product's service account: a pending enrollment addressed to the email that becomes a real enrollment on that address's first sign-in to the application, when the signed-in account's VERIFIED email matches. Accepting it enrolls the person in the application and nothing else: it makes them a member of no team, and the invitation carries no roles. Service accounts only, and only a platform application's own: every method refuses a person's token, is confined to the calling service account's application, and needs `auth:application-invitations:manage:own`, which no client holds until an organisation administrator approves it on the product's binding to the auth application. `invited_by_user` is the person in the product who asked; the invitation names them as the inviter (the email says who invited), and the service account is recorded as the actor.