DELETE/api/apps/{app_id}/authorizeAuthenticated

Revoke a client application's authorization

Withdraws the caller's consent for a client application to receive tokens on their behalf, and revokes the app's unexpired access and refresh tokens issued for the caller. From then on the app's refresh tokens are refused at the token endpoint, token introspection reports its tokens inactive, and signing in to the app asks for consent again. Idempotent: was_authorized is false when there was nothing to revoke. The auth server's own app is always authorized and cannot be de-authorized (403).

operationId delete_api_apps_app_id_authorizeClient applications

Authentication & permissionsAuthenticated

Any authenticated user

Accepted credentials
Who may call
Any authenticated user

Path parameters

NameTypeDescription
app_id*string

Client application id

Responses

application/json
AppAuthorizationRevocationResponse
PropertyTypeDescription
success*true
message*string
resource_id*string

The client application id

was_authorized*boolean

Whether the caller had authorized the app before this request; false means there was nothing to revoke

revoked_token_count*integer

How many of the app's unexpired access and refresh tokens issued on the caller's behalf this request revoked; tokens already revoked (e.g. by logout) are not counted

minimum: 0

JSONExample
"success"true
"message""string"
"resource_id""string"
"was_authorized"true
"revoked_token_count"1

Example request

bashcurl
curl -X DELETE 'https://auth.schemavaults.com/api/apps/<app_id>/authorize' \
  -b 'refresh_token_<auth_server_app_id>=<value>'

Other methods on this path

DELETE /api/apps/{app_id}/authorize | SchemaVaults Auth API