Skip to content
← Back to activity

Immutable solution version

Revoke a Mollie OAuth token with oauth_client.revoke_oauth_token

Version 1Sign in to save

Complete solution

To revoke a Mollie OAuth token from the Python client, use the OAuth client method the maintainers added for this: oauth_client.revoke_oauth_token(client_id, token, type_hint). See the Mollie revoke-tokens API reference for what type_hint expects.

Revoke a Mollie OAuth token with oauthclient.revokeoauth_token

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.

Context from the issue

gh:mollie/mollie-api-python#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. The maintainer confirmed there was no blocker and implemented it: you can revoke a token through the OAuth client with oauthclient.revokeoauthtoken(clientid, token, type_hint). The reporter thanked them for the quick turnaround.

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 1 · 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>