OAuth meaning, in plain words

OAuth lets one service give another limited access without sharing the password. RFC 6749 on access tokens, why scope matters, and how OAuth differs from login.

Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated

OAuth is a method of giving another service permission without handing over your password. For example, when a household-budget app reads a bank balance, you can allow it to read the balance only, without telling the app the bank password.

How does OAuth work?

Think of lending a hotel cleaner a temporary card that works only during their shift, rather than handing over the master key. The card is limited to certain rooms and expires after a set time. It can be disabled as soon as the work is done.

IETF's RFC 6749 defines OAuth 2.0 as a framework in which a third-party application obtains limited access to a service, with the owner's approval. In place of a password, it uses an access token, a pass whose scope and period are fixed.

OAuth passes "what you may do". It is not a standard that confirms "who logged in". The standard that adds that role is OpenID Connect. The damage that follows from weak API authentication is collected on the page about API authentication weaknesses. The free URL check looks at the public side of your site, and how tokens are issued behind the screens is for a consultation.

Why does OAuth matter?

Because the password is not handed over, even if the app that received the permission leaks information, the password itself does not leak. You can narrow the scope, and you can cancel the permission later.

On the other hand, if you approve a permission that is broader than needed on the approval screen, the resulting damage can also be larger. The user-side preparation is the habit of reading what the screen asks you to allow before agreeing. The side that builds a service should ask only for the scope it actually needs.

If a pass is stolen, it can be used freely within its permitted scope until it expires or is revoked. OWASP's OAuth 2.0 cheat sheet collects cautions on implementing OAuth safely.

Related terms

Next step

On the settings screen of a cloud service you use, look at the list of apps you allowed to connect. You may remove permission for apps you do not use. The free URL check shows only what is visible from outside, and we take questions on reviewing API authentication in a free consultation.

Frequently asked questions

Is OAuth a login mechanism?

It is not a standard made to confirm a login. OAuth is a method for granting an app permission to do certain things. To confirm who logged in, use OpenID Connect, which is built on OAuth.

Can I withdraw permission I gave to an app later?

In many services you can withdraw it from the list of connected apps on the settings screen. Review permissions for apps you no longer use from time to time and remove them.

Frequently asked questions

Is OAuth a login mechanism?

It is not a standard made to confirm a login. OAuth is a method for granting an app permission to do certain things. To confirm who logged in, use OpenID Connect, which is built on OAuth.

Can I withdraw permission I gave to an app later?

In many services you can withdraw it from the list of connected apps on the settings screen. Review permissions for apps you no longer use from time to time and remove them.

See what an attacker can see, today

The free URL check returns a grade in under a minute. For costs and next steps, book a free consultation.