deactivateAuthorization method

ResponseFuture<DeactivateAuthorizationResponse> deactivateAuthorization(
  1. DeactivateAuthorizationRequest request, {
  2. CallOptions? options,
})

Deactivate Authorization

Deprecated: please move to the corresponding endpoint under authorization service v2. This endpoint will be removed with the next major version of ZITADEL.

DeactivateAuthorization deactivates an existing and active authorization.

In case the authorization is already inactive, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was deactivated by the request.

Required permissions:

  • "user.grant.write"

Implementation

$grpc.ResponseFuture<$0.DeactivateAuthorizationResponse>
    deactivateAuthorization(
  $0.DeactivateAuthorizationRequest request, {
  $grpc.CallOptions? options,
}) {
  return $createUnaryCall(_$deactivateAuthorization, request,
      options: options);
}