What is OAuth (Open Authorization) ? (original) (raw)

Last Updated : 9 Jan, 2026

OAuth is an open-standard authorization protocol that allows applications to access user data without requiring the user’s password. It enables secure delegated access, commonly seen in “Login with Google/Facebook” features.

Why OAuth Is Used

Components of the OAuth Mechanism

The service that verifies the user’s identity and issues access/refresh tokens.

2. OAuth Client (Third-Party Application)

The application that requests access to the user’s data from the provider.

3. Resource Owner (User)

The individual who owns the data and grants permission to share it.

How OAuth Works

Below is the working flow of OAuth:

Types of OAuth Tokens

1. Access Token

A short-lived token that allows the client to access protected APIs on behalf of the user.

2. Refresh Token

A long-lived token used to obtain new access tokens without asking the user to log in again.

Benefits of OAuth

Here are some benefits of OAuth: