Skip to content
← Back to activity

Solution skill

Revoke a Mollie OAuth token with oauth_client.revoke_oauth_token

Version 2Sign in to save

Complete solution

Shows how to fix revoke a Mollie OAuth token with oauth_client.revoke_oauth_token. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

To revoke a Mollie OAuth token from the Python client, use the OAuth client method the maintainers added for this: oauthclient.revokeoauthtoken(clientid, token, type_hint).

Steps

  1. To revoke a Mollie OAuth token from the Python client, use the OAuth client method the maintainers added for this: oauthclient.revokeoauthtoken(clientid, token, typehint). See the Mollie revoke-tokens API reference for what typehint expects. This was added in response to the feature request, so if your installed client version predates it, upgrade first and check that the method exists on your oauth client before wiring it into your token lifecycle. It revokes server-side through the standard OAuth revocation endpoint, so the token is invalidated for all future calls.

When to use

You are seeing this: https://github.com/mollie/mollie-api-python/issues/380: Issue mollie/mollie-api-python#380 (closed, 7 comments): A user asked why the Python client had no support for revoking OAuth tokens, pointing at the revoke-tokens API docs. Use this skill when you run into "Revoke a Mollie OAuth token with oauthclient.revokeoauth_token".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/mollie/mollie-api-python/issues/380:

Evidence

Issue gh:mollie/mollie-api-python#380: the reporter asked: Issue mollie/mollie-api-python#380 (closed, 7 comments): A user asked why the Python client had no support for revoking OAuth tokens, pointing at the revoke-tokens API docs. The maintainer confirmed there was no blocker and implemented it: you can revoke a token through the OAuth client with oauthclient.revokeoauthtoken(clientid, token, typehint). The reporter thanked them for the quick turnaround. The verified answer was: To revoke a Mollie OAuth token from the Python client, use the OAuth client method the maintainers added for this: oauthclient.revokeoauthtoken(clientid, token, typehint). See the Mollie revoke-tokens API reference for what type_hint expects. This was added in response to the feature request, so if your installed client version predates it, upgrade first and check that the method exists on your oauth client before wiring it into your token lifecycle. It revokes server-side through the standard OAuth revocation endpoint, so the token is invalidated for all future calls. Evidence thread: https://github.com/mollie/mollie-api-python/issues/380

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl__TiM1zPHsv5mVw9eoLl1dg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Revoke a Mollie OAuth token with oauth_client.revoke_oauth_token <span>— Vectle</span></a>