OAuth explained in plain terms means a way for one app to act on your behalf in another app, without ever learning your password. The central question is how a service can prove who you are without handling your credentials, and the short answer is that it asks a service you already trust to vouch for you, using a limited permission slip called a token.
Think of a valet key for a car. It starts the engine and opens the doors, but it cannot open the glove box or the boot, and it works only for a short time. You would never hand a stranger your full set of keys when a limited one will do. OAuth is the valet key of the internet.
You meet it constantly, usually without noticing. Every time you press a button that says sign in with your email account, or let a photo app post to your social media, or connect a calendar to a booking tool, OAuth is doing the quiet work in the background.
Key takeaways
- OAuth lets one app act on your behalf in another app, without ever seeing your password.
- It works by issuing access tokens that carry limited permissions and a short life.
- The familiar sign in with buttons on websites are usually OAuth at work.
- Tokens can be revoked at any time, cutting off access without changing your password.
- OAuth handles authorisation, not identity on its own; OpenID Connect adds the identity layer.
What OAuth is
OAuth is an open standard for delegated authorisation. That phrase sounds technical, but the idea is simple: it lets you give one application limited access to your stuff in another application, without sharing your password with the first one. The application that wants access never sees your credentials at all.
Before OAuth, the only way to connect two services was to hand over your username and password. A photo printing service that wanted your pictures needed your email password, and it stored it, in full, on its own servers. If that service was careless, or breached, your whole account was exposed. OAuth was designed to end that bargain.
The standard defines a set of roles. You are the resource owner, the person whose data is involved. The app asking for access is the client. The service holding your data runs an authorisation server, which hands out permission, and a resource server, which holds the data itself. Our guide to API security explains how the services behind these exchanges protect themselves and their users.
OAuth is widely used because it solves a trust problem. You trust the service that holds your data, and that service trusts the token it issued. The app in the middle is trusted only as far as the token allows, and no further.
How OAuth works
The flow begins when an app asks for access. You click sign in with your account, and the app sends you to the service that holds your data, rather than asking for your password itself. You log in there, on a page the service controls, and the service shows you exactly what the app is asking for: read your contacts, post on your behalf, see your calendar.
If you agree, the service does not hand the app your password. Instead it gives the app an authorisation code, a short-lived, single-use voucher. The app exchanges that code, along with its own credentials, for an access token. That token is the key to the door, and it carries the permissions you agreed to, and nothing more.
The app then presents the token whenever it asks the resource server for data. The server checks the token, sees what it allows, and answers accordingly. A token that permits reading your photos cannot be used to delete them, and a token for one app cannot be used by another.
Tokens expire, usually quickly. When one runs out, the app can use a refresh token, a longer-lived credential, to request a fresh access token without bothering you again. And if you change your mind, you can revoke access from the service that issued the token, which stops the app immediately, while your password stays unchanged and your other apps keep working.

Comparing OAuth with password sharing
| Aspect | Sharing your password | OAuth |
|---|---|---|
| What the app learns | Your full username and password | Nothing about your password |
| Scope of access | Everything your account can do | Only the permissions you approved |
| How long it lasts | Until you change the password | Until the token expires or is revoked |
| Stopping access | Change the password everywhere | Revoke the token in one place |
| If the app is breached | Your whole account is exposed | Only that token is exposed |
Where OAuth is used
Social sign-in is the most visible use. When a website offers to log you in with your email or social account, it is using OAuth, with an identity layer on top, to confirm who you are without storing yet another password for you to remember. It is why you can join a new service in seconds.
Connected apps rely on it just as heavily. A fitness app that reads your health data, a calendar app that books meetings on your behalf, or a photo editor that saves to your cloud storage all use OAuth to reach data that lives in someone else’s service. Our passkeys guide explains a related technology that is changing how sign-in itself works, and the two approaches often appear side by side.
Business software uses OAuth behind the scenes constantly. A customer support tool reads emails from a mailbox, a marketing platform posts to social accounts, and a reporting tool pulls figures from an analytics service, all through tokens issued and revoked by administrators rather than by shared passwords passed around a team.
Strengths and limits
The greatest strength of OAuth is that it removes passwords from the exchange entirely. The app never holds a credential that would let it impersonate you fully, and the damage from a breach is limited to the permissions on the token. Revoking access is quick, precise, and does not disturb anything else.
It is also flexible. Tokens can be scoped narrowly, so an app gets exactly the access it needs and nothing more, and they can be short-lived, so a stolen token is useful only briefly. Administrators can see which apps hold tokens and remove them in one place.
Its limits are real, though. OAuth is often misunderstood, even by developers, and a badly built implementation can leak tokens or accept tokens it should not. A token stolen from an app can be used until it expires, which is why short lifetimes and secure storage matter so much.
OAuth also does not, on its own, prove who you are. It proves that an app has permission to do something, not that the person behind the login is who they claim to be. That identity question is answered by a layer built on top of OAuth, called OpenID Connect, which is what most sign in with buttons actually use.
OAuth checklist
- Check what permissions an app asks for before you approve it.
- Grant the narrowest access that still lets the app do its job.
- Review connected apps regularly and revoke the ones you no longer use.
- Revoke access at once if an app behaves strangely or is breached.
- Never type your password into a page reached from inside an app’s own window.
- Make sure the sign-in page belongs to the service named on the button.
- Use a second factor on the account that issues your tokens.
- Prefer apps that request short-lived tokens and store them securely.
- Remember that revoking a token does not delete data the app already copied.
Frequently asked questions
What is OAuth?
OAuth is an open standard that lets one application access your data in another application without ever seeing your password. It works by issuing access tokens with limited permissions, which the application presents whenever it asks for data.
Is OAuth the same as logging in?
Not quite. OAuth itself handles permission, not identity. When you use a sign in with button, the service usually adds OpenID Connect on top of OAuth, which provides the identity information that proves who you are.
Does an app see my password when I use OAuth?
No. You type your password only into the service that holds your data, on its own page. The app receives a token, never your credentials, and it cannot use that token to log in as you elsewhere.
What is an access token?
An access token is a credential an app presents to prove it has permission to do something. It carries a limited scope, such as read-only access to photos, and an expiry time. When it expires, the app must get a fresh one.
How do I stop an app using OAuth?
Go to the account settings of the service that issued the token and look for connected apps or third-party access. Revoking the app there stops its token from working immediately, without changing your password or affecting other apps.
Is OAuth safe?
When implemented properly, yes, and it is far safer than sharing passwords. Its safety depends on tokens being scoped narrowly, expiring quickly, and stored securely, and on users checking what they approve. A careless implementation can still leak tokens.
The bottom line
OAuth explained in one line is this: a way for apps to act on your behalf using limited, revocable tokens, instead of your password.
It is the reason you can connect services in seconds and disconnect them just as fast. Check what you approve, review your connected apps now and then, and remember that the safest token is a narrow one with a short life.
This article is general information about how OAuth works, not advice about how to configure it for a particular service.







