signin:RevokeOAuth2Token

Write

signin:RevokeOAuth2Token is a Write access-level action in the signin service. Grants permission to revoke an OAuth 2 refresh token and its associated refresh tokens

Resource types

ARNs that signin:RevokeOAuth2Token can be scoped to in an IAM policy.

arn:${Partition}:signin:${Region}:${Account}:oauth2/public-client/localhost required
oauth2-public-client-localhost
arn:${Partition}:signin:${Region}:${Account}:oauth2/public-client/remote required
oauth2-public-client-remote
arn:${Partition}:signin:${Region}:${Account}:service-principal/${ServicePrincipalName} required
oauth2-resource-service-principal

Condition keys

Keys you can use in the Condition block of a policy that grants signin:RevokeOAuth2Token.

signin:OAuthTokenType String

Filters access by the type of OAuth token being operated on

Example IAM policy

A minimal policy that allows signin:RevokeOAuth2Token. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSigninRevokeOAuth2Token",
      "Effect": "Allow",
      "Action": "signin:RevokeOAuth2Token",
      "Resource": "*"
    }
  ]
}

Related actions in signin

View all signin actions →