They should test what happens when tokens expire, users disconnect, or a workspace uninstalls the app. A safe integration must stop sending messages, surface a clear reconnect path, and avoid silently reusing stale authorisation. Those behaviours are part of operational identity control, not just application reliability.
How to test OAuth revocation paths, not just login paths
Evaluate the integration the way the provider and the connected app actually fail in production: token expiry, explicit disconnect, admin revocation, user removal, and full workspace uninstall. The question is not whether the happy path works, but whether the integration stops cleanly when authorization is withdrawn and whether the product makes recovery obvious instead of silent.
Teams should treat revocation as part of the control boundary. If a connector keeps sending events after consent is removed, or keeps retrying with a stale refresh token, that is not a minor edge case, it is evidence that the integration has not really implemented revocation-aware access.
What good reconnect behaviour looks like
A safe reconnect flow should make the state of the integration legible. Users should see that the connection is broken, what action is required, and whether they need to re-authenticate, re-consent, or involve an administrator. A clean reconnect path is one that restores access without reviving old permissions or reusing credentials that should have been invalidated.
The strongest designs separate availability from authorization. Temporary token expiry should lead to a recoverable reconnect prompt, while explicit revocation should force fresh authorization. That distinction matters because not every failure is operationally the same, and collapsing them into one generic retry loop often hides the real security state.
For OAuth itself, the relevant behaviour is described in RFC 6749: The OAuth 2.0 Authorization Framework and the newer best-current guidance in RFC 9700: Best Current Practice for OAuth 2.0 Security. Teams should use those documents as the baseline for understanding why stale tokens, long-lived refresh tokens, and weak revocation handling are operational security issues, not just UX issues.
Why stale authorization is the failure mode to watch
The core failure to look for is continued access after consent has changed. A connector that still posts messages, reads data, or performs API actions after disconnect has violated the user’s expected trust boundary. That can happen because the app cached access too aggressively, because token revocation was not checked, or because the integration never stops queued jobs after permissions are removed.
That is why testing should include both immediate and delayed behaviour. Immediate revocation tells you whether the app reacts to a disconnected state. Delayed verification tells you whether asynchronous jobs, background workers, and cached tokens still have enough authority to keep operating after the user believes access is gone.
Where the integration uses delegated access or machine-to-machine authorization, the same problem can persist even without a human user in the loop. The practical risk is not only broken sync, but unbounded reuse of a credentialed path that should have been retired. NHIMG’s Ultimate Guide to NHIs — What are Non-Human Identities is useful context when the integration relies on service credentials, tokens, or other identity-bearing material that can outlive the intended session.
Risk and Threat Considerations
Revocation failures create a narrow but serious exposure: the organisation believes access ended, while the integration still has enough authority to act. That gap can expose message streams, data exports, background jobs, and downstream SaaS connections long after the user or administrator has withdrawn consent.
Failure mechanism: The app continues to trust cached authorisation, queued work, or long-lived tokens after disconnect, uninstall, or account removal, so the revoked state is not enforced at the point of use.
Impact: Attackers, or simply over-permissive integrations, can keep acting under stale authority, which increases data exposure, complicates incident response, and makes revocation appear effective when it is not.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP API Security Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | OAuth token lifecycles and revocation map to credential management. |
| AC-2 — Account Management | Disconnect and uninstall behaviour depend on removing or disabling access cleanly. | |
| AU-2 — Event Logging | Revocation testing needs evidence of disconnect, retry, and stop-activity events. | |
| Recommendation — Manage token lifecycle so revoked or expired credentials cannot be reused. Remove or disable access promptly when the user or workspace disconnects. Log revocation, reconnect, and post-disconnect access attempts for review. | ||
| OWASP ASVS | V10 — OAuth and OIDC | OAuth-based integrations need secure authorization, token use, and recovery behaviour. |
| Recommendation — Validate OAuth flows so revocation and reauthorization behave safely. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Improper Offboarding | Disconnected integrations should stop using old grants and credentials. |
| NHI-07 — Long-Lived Secrets | Stale OAuth material can keep working long after the user thinks access ended. | |
| NHI-09 — NHI Reuse | Reconnect logic must not silently reuse stale authorization material. | |
| Recommendation — Revoke and retire integration access cleanly when the connection ends. Shorten token lifetime and rotate credentials that outlive the intended session. Prevent stale grants from being reused across disconnect and reconnect cycles. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Stale or replayable OAuth tokens break the expected authentication boundary. |
| API5 — Broken Function Level Authorization | Revoked integrations must lose the ability to perform protected actions. | |
| Recommendation — Reject expired or revoked tokens before processing integration requests. Recheck authorization at the function level after disconnect or consent changes. | ||
Practitioner Guidance
What to verify: Test three separate states, token expiry, explicit revocation, and full uninstall, because each one can fail differently in OAuth-based integrations. Verify that API calls stop, queued jobs fail safely, and the product does not silently reauthenticate with old grants.
Decision rule: If disconnect removes consent, require a full re-authentication and re-consent flow on reconnect. If the app can reconnect without user action after revocation, treat that as a control defect rather than a convenience feature.
What good looks like: The integration surfaces a clear disconnected state, stops outbound activity promptly, and only resumes after a fresh, explicit authorization event. SaaS-to-SaaS and OAuth App Governance Guide is a practical reference for reviewing consent, token risk, and revocation runbooks in this class of integration.
Practitioner takeaway: Treat revocation as a security control, not a product edge case, and design reconnect flows so they restore service only after authority has been explicitly re-established.
Related resources from NHI Mgmt Group
- How should security teams implement OAuth-based authentication for MCP servers in remote tool integrations?
- How should teams design OAuth-based integrations for AI agents and third-party apps without creating standing access risk?
- How should security teams prioritise NHI remediation in cloud environments?
- How should security teams govern non-human identities at scale?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 7, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org