Actions48
- Account Actions
- Authentication Actions
- Blocks Actions
- Bookmarks Actions
- Favourites Actions
- Featured Tags Actions
- Follow Requests Actions
- Media Actions
- Mutes Actions
- Notifications Actions
- Polls Actions
- Status Actions
- Timeline Actions
Overview
This node interacts with the Mastodon API, a decentralized social networking platform. Specifically, the Authentication - Revoke Token operation allows users to revoke an OAuth token previously issued by a Mastodon instance. This is useful for invalidating access tokens when you want to ensure that a client or application no longer has access to a user's account.
Common scenarios include:
- Logging out a user from an application by revoking their access token.
- Revoking compromised or unused tokens to enhance security.
- Managing OAuth tokens programmatically in workflows that integrate with Mastodon.
Example: After a user disconnects your app from their Mastodon account, you can use this operation to revoke the OAuth token so it cannot be used anymore.
Properties
| Name | Meaning |
|---|---|
| Mastodon URL | The URL of the Mastodon instance to connect to (e.g., https://mastodon.social). |
| Client ID | The OAuth client ID issued by the Mastodon instance for your application. |
| Client Secret | The OAuth client secret associated with the client ID (kept confidential). |
| Token | The OAuth token string that you want to revoke. |
Output
The output JSON contains the response from the Mastodon API after attempting to revoke the token. Typically, this will confirm whether the revocation was successful or provide error details if it failed.
No binary data is output by this operation.
Dependencies
- Requires an active connection to a Mastodon instance via its base URL.
- Needs valid OAuth credentials: client ID and client secret.
- Requires the OAuth token to be revoked.
- The node depends on proper OAuth2 authentication setup within n8n to obtain and manage tokens.
Troubleshooting
- Invalid Credentials Error: If the client ID or client secret is incorrect, the Mastodon API will reject the request. Verify these values are correct.
- Invalid Token Error: If the token to revoke is invalid or already revoked, the API may return an error. Ensure the token is current and has not been revoked previously.
- Network Issues: Connection failures to the Mastodon instance URL will cause errors. Check network connectivity and the correctness of the Mastodon URL.
- Permission Denied: The client credentials must have permission to revoke tokens. Confirm the OAuth app settings on the Mastodon instance.
- Unexpected Errors: Enable "Continue On Fail" in the node settings to handle errors gracefully in workflows.