TechBuzzPro

Revoke OAuth Tokens & End SaaS Sessions After Theft

· 5 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If an attacker gets hold of your OAuth tokens or active SaaS sessions, they can access your accounts without needing your password. Revoking those tokens and forcing session termination is the fastest way to cut off that access. This guide walks you through the general process, plus specific steps for major platforms, so you can lock down compromised accounts quickly.

What You'll Need

  • Access to the account's security settings (usually via a web browser)
  • Your password or another way to verify your identity (like a 2FA code)
  • For enterprise accounts: admin permissions to revoke tokens for other users

Step-by-Step

  1. Identify which accounts are affected. Check your email for breach alerts, review recent login activity in your Google, Microsoft, GitHub, Slack, and other accounts. Look for unfamiliar devices, locations, or times.
  2. Revoke OAuth tokens at the provider level. For each service that uses OAuth (like Google, Microsoft, GitHub, Slack), go to the security or connected apps page. Find the list of apps with access and revoke the ones you don't recognize or that you suspect are compromised. This kills the token immediately.
  3. End active sessions. In the same security settings, look for a section like "Your devices" or "Active sessions." Sign out of all sessions, not just the suspicious one. This forces every device to re-authenticate.
  4. Change your password. Even if the attacker only had a token, changing your password ensures they can't use any stolen credentials to get a new token. Use a strong, unique password.
  5. Enable or reset two-factor authentication (2FA). If you had 2FA, remove and re-add your authenticator app or phone number. If you didn't, enable it now. This adds a layer that tokens don't bypass.
  6. Check for connected apps and webhooks. Attackers often create new OAuth apps or webhooks to maintain access. Review the list of connected apps and remove anything you didn't create. Disable any webhooks that look unfamiliar.
  7. For enterprise SaaS (like Salesforce, Okta, or Workday): As an admin, go to the user's profile or the security dashboard. Look for "Sessions" or "OAuth tokens" and revoke all of them. Some platforms allow you to "Sign out all sessions" in one click.
  8. Monitor for re-entry. After revoking, watch your login activity and email for any new alerts. If you see anything, repeat the process and consider contacting your IT team.

Common Mistakes

  • Only revoking one session. If you only sign out the suspicious device, the attacker might have other active sessions you didn't see. Always sign out all sessions.
  • Forgetting about third-party apps. Revoking the main token doesn't always revoke tokens issued to third-party apps. You must go to the connected apps page and revoke each one.
  • Not checking for refresh tokens. OAuth refresh tokens can be used to get new access tokens even after the original access token expires. You must revoke the app's access entirely, not just the current token.
  • Skipping password change. If the attacker got your password too, they can just log in again after you revoke tokens. Change your password first.
  • Ignoring webhooks. Attackers can set up webhooks to receive data changes. If you don't remove them, they still get updates even after token revocation.

Tips

  • Use a password manager to generate and store strong, unique passwords for every account. This reduces the chance of credential stuffing.
  • Enable 2FA everywhere that supports it, especially for email, cloud storage, and developer accounts.
  • Regularly audit your connected apps—every few months, remove ones you no longer use.
  • If you're an admin, set up session policies that expire tokens automatically after a set time (e.g., 8 hours).
  • Keep a list of your critical accounts so you can act fast if you suspect a breach.

Troubleshooting

  • Can't find the "revoke" button? Some services bury it under "Apps with access" or "Authorized applications." Use the help/search function in the security settings to find it.
  • Revoking a token didn't log out the device? Some apps cache tokens locally. You may need to also clear the app's data or uninstall/reinstall it.
  • You're locked out of the account? Use the "Forgot password" flow to reset it. If that fails, contact the service's support with proof of identity.
  • Enterprise admin can't revoke a user's token? Check if you have the right admin role (e.g., "User Admin" vs. "Super Admin"). If not, contact a higher-level admin.
  • Tokens reappear after revocation? This can happen if a connected app automatically reauthorizes. Revoke the app's access and also remove the app from your organization's app list.

Frequently Asked Questions

What's the difference between an access token and a refresh token?

An access token is short-lived (usually 1 hour) and used to call APIs. A refresh token is long-lived and used to get new access tokens without re-authentication. Revoking the app's OAuth access invalidates both.

Will revoking OAuth tokens affect my other devices?

Yes, it will sign out all devices that use that token. That's the point—it forces everyone to re-authenticate, including you. You'll need to log in again on your own devices.

How do I know if my OAuth token was stolen?

Signs include unexpected login alerts, new devices in your session list, or apps you didn't install appearing in your connected apps. If you see these, revoke immediately.

Can I revoke a token without changing my password?

Yes, but it's safer to change your password too. If the attacker has your password, they can just re-authenticate and get a new token.

Does revoking a token in Google also revoke it in third-party apps?

Not automatically. You need to revoke the app's access in Google's "Third-party apps" page. Revoking your Google session doesn't necessarily revoke the app's token.

What should I do if I can't access the security settings at all?

Use the account recovery process (e.g., "Forgot password") to regain access. If that fails, contact the service's support team and explain the situation.