Actions115
- Account Actions
- Announcements Actions
- Apps Actions
- Authentication Actions
- Blocks Actions
- Bookmarks Actions
- Canonical Email Blocks Actions
- Cohorts Actions
- Conversations Actions
- Custom Emojis Actions
- Directory Actions
- Domains (Allowed) Actions
- Domains (Blocked) Actions
- Domains (Email Blocked) Actions
- Emails Actions
- Endorsements Actions
- Favourites Actions
- Featured Tags Actions
- Filters Actions
- Follow Requests Actions
- Followed Tags Actions
- Instance Actions
- IPs Actions
- Lists Actions
- Markers Actions
- Measures Actions
- Media Actions
- Mutes Actions
- Notifications Actions
- oEmbed Actions
- Polls Actions
- Preferences Actions
- Profile Actions
- Proofs Actions
- Push Actions
- Reports Actions
- Retention Actions
- Scheduled Statuses Actions
- Search Actions
- Status Actions
- Streaming Actions
- Suggestions Actions
- Tags Actions
- Timeline Actions
Authentication → Revoke Token
AI-generatedOverview
This node operation handles the revocation of an OAuth token for a Mastodon instance. It is useful when you want to invalidate an existing OAuth token, for example, to log out a user or to ensure that a token can no longer be used for authentication. The node supports authentication via OAuth2 credentials and requires the Mastodon instance URL, client ID, client secret, and the token to revoke.
Use Case Examples
- Revoking an OAuth token after a user logs out from a Mastodon-based application.
- Invalidating a compromised OAuth token to enhance security.
Properties
| Name | Meaning |
|---|---|
| Mastodon URL | URL of the Mastodon instance to connect to, used to target the correct Mastodon server for token revocation. |
| Authentication Type | Method of authentication with the Mastodon instance, either OAuth2 or Access Token. For revoking tokens, OAuth2 is required. |
| Client ID | OAuth client ID required for OAuth2 authentication during token revocation. |
| Client Secret | OAuth client secret required for OAuth2 authentication during token revocation. |
| Token | The OAuth token that is to be revoked. |
Output
JSON
json- The JSON response from the Mastodon API after attempting to revoke the token, which may include success confirmation or error details.
Dependencies
- Requires OAuth2 credentials for authentication with the Mastodon instance, including client ID and client secret.
Troubleshooting
- If the node throws an error about missing OAuth2 credentials, ensure that OAuth2 authentication type is selected and valid credentials are provided.
- Errors may occur if the Mastodon URL is incorrect or unreachable; verify the URL is correct and the Mastodon instance is accessible.
- If the token to revoke is invalid or already revoked, the API may return an error; verify the token value before revocation.