as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Ring

Authentication

Ring utilizes OAuth 2.0 standard tokens for authentication to ensure secure communication with partner cloud services. The authentication system is based on an "account linking" mechanism that provides user-scoped authentication materials while maintaining customer awareness and control.

Overview

The authentication flow involves:

  1. Account Linking: Users authenticate with partner systems
  2. Token Exchange: Authorization codes are exchanged for access/refresh tokens
  3. Token Management: Refresh tokens maintain long-term access

Key Components

  • User-scoped tokens: Each token pair is associated with a specific Ring user
  • Customer confirmation: Users must confirm the partner account before token release
  • Webhook notifications: Tokens enable Ring to deliver signed webhook notifications to partners

Authentication Flow

sequenceDiagram
    participant User
    participant Ring
    participant Partner
    
    User->>Ring: Initiate integration
    Ring->>Partner: Redirect to login portal
    User->>Partner: Authenticate
    Partner->>Ring: Authorization code
    Ring->>Partner: Access & refresh tokens

Token Types

Access Tokens

  • Used for API requests
  • Short-lived (typically 4 hours)
  • Include in Authorization: Bearer <token> header
  • See Access Tokens for details

Refresh Tokens

  • Used to obtain new access tokens
  • Valid for approximately 30 days
  • Must be refreshed proactively before expiry — an expired refresh token requires the user to re-link their account
  • Critical for maintaining continuous access
  • See Refresh Tokens for details

Quick Start: If You Already Have a Refresh Token

If you already have a refresh token (e.g., from a completed account linking flow) and need to start making API calls:

  1. Obtain your client_id and client_secret — These are issued during partner onboarding.
  2. Exchange the refresh token for an access token — Call POST https://oauth.ring.com/oauth/token with grant_type=refresh_token. See Refresh Token Exchange.
  3. Use the access token in API requests — Include in the Authorization: Bearer <access_token> header.
POST https://oauth.ring.com/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=refresh_token&refresh_token=<your_refresh_token>&client_id=<your_client_id>&client_secret=<your_client_secret>

The response will include a new access_token (valid ~4 hours) and a new refresh_token. Store both securely.

Security Requirements

  • All authentication materials are user-scoped
  • Partners must use correct tokens for specific user data
  • Token storage and handling must follow security best practices
  • Regular token refresh is required to maintain access

Sub-pages


Next: Device Discovery →