InfraNestInfraNest
Automation

OAuth

OAuth is an authorization framework that enables applications to obtain limited access to user resources without sharing passwords, using short-lived access tokens instead.

OAuth is an authorization framework (defined in RFC 6749) that allows a third-party application to request limited access to a user's resources on another service without the user sharing their password. It issues short-lived access tokens rather than credentials, keeping user passwords secure.

How it works:

OAuth uses four parties: the resource owner (user), the client (your application), an authorization server, and a resource server. The most common flow is the Authorization Code Grant:

  1. User clicks "Login with [Provider]" (e.g., Google, GitHub).
  2. Your app redirects them to the provider's authorization server.
  3. User authenticates and approves limited permissions (scopes).
  4. Authorization server returns an authorization code to your app.
  5. Your app exchanges that code (plus client credentials) for an access token.
  6. Your app uses the access token to call the provider's API on the user's behalf.
  7. When the token expires, a refresh token allows obtaining a new one without re-prompting.

Example: A calendar app requests permission to read your Google Calendar. You approve, Google issues an access token to the calendar app, and the app fetches your events using that token — Google never shares your password.

Key point: OAuth 2.0 handles authorization ("what can you access?"), not authentication ("who are you?"). For login/identity, use OpenID Connect, which layers identity on top of OAuth. Never use raw OAuth access tokens as a proof of user identity.

WarningOAuth 2.0 access tokens are bearer tokens — anyone with the token can use it. Always transmit them over HTTPS and treat them as sensitive as passwords.

Guides that use this term

Related terms

New articles, straight to your inbox

I’d like to receive product updates and new articles from InfraNest by email. I can unsubscribe at any time. Privacy policy

See it in context

InfraNest shows you your own records, zones and certificates, so the terms stop being abstract.

Free plan · No credit card required · Set up in minutes