Mastodon icon

Mastodon

Interact with Mastodon API

Overview

This node interacts with the Mastodon API, specifically supporting the revocation of OAuth tokens under the Authentication resource. It allows users to revoke an OAuth token issued by a Mastodon instance, which is useful for managing and invalidating access tokens when they are no longer needed or compromised. For example, a user can revoke a token to ensure that a third-party application no longer has access to their Mastodon account.

Use Case Examples

  1. Revoking an OAuth token to prevent further access by an application.
  2. Managing OAuth tokens by revoking those that are expired or no longer in use.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to.
Client ID The OAuth client ID used for authentication with the Mastodon instance.
Client Secret The OAuth client secret used for authentication with the Mastodon instance.
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, typically indicating success or failure.

Dependencies

  • Requires OAuth2 credentials for Mastodon API access, including client ID, client secret, and base URL of the Mastodon instance.

Troubleshooting

  • Ensure the Mastodon URL is correct and accessible; incorrect URLs will cause connection failures.
  • Verify that the client ID and client secret are valid and correspond to the Mastodon instance.
  • The token to revoke must be a valid OAuth token issued by the Mastodon instance; otherwise, the revocation will fail.
  • Common errors include authentication failures due to invalid credentials or network issues; check credentials and network connectivity.

Links

Discussion