OAuth applications

Issue a replacement credential

Changed on

Issues a second credential so the website can roll over without downtime. Revoke the old one once it is out of use.

post/oauth-applications/{clientId}/credentials

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Path parameters

clientId, string required

Immutable OAuth client identifier.

Request body

object required

Reference to one Team website application at a known revision. A stale revision is rejected.

teamId, string required

Unique team identifier

revision, integer required

Optimistic concurrency token. Send the value you read.

Response

OK

object required

One-time credential issuance response. Must not be logged or cached.

application, object required

A Team-owned website login application. Credential secrets are never included.

clientSecret, string required

New credential. Display once and store only on the website server.

Changes

    • breaking

      for the path request parameter clientId, the minLength was increased from 0 to 1

    • breaking

      added the pattern ^tem_[0-9a-z]{26}$ to the request property teamId

    • breaking

      the revision request property type changed from number to integer

    4 more changes in this revision