Skip to content

Release 6.0.0.beta.0#722

Merged
kishore7snehil merged 2 commits intov6from
release/v6.0.0.beta.0
Apr 30, 2026
Merged

Release 6.0.0.beta.0#722
kishore7snehil merged 2 commits intov6from
release/v6.0.0.beta.0

Conversation

@kishore7snehil
Copy link
Copy Markdown
Contributor

@kishore7snehil kishore7snehil commented Apr 30, 2026

This is a beta release. It introduces breaking changes to the Management API. The Authentication API is unchanged. Please consult the v6 Migration Guide for detailed upgrade instructions.

What's New

This release marks a major milestone for the Auth0 Ruby SDK: the Management API client has been completely rewritten using the Fern code generation tool, built directly from the Auth0 OpenAPI specification. This delivers complete, always-up-to-date API coverage with full type safety.

Highlights

  • Auto-generated Management API - Rebuilt from the Auth0 OpenAPI spec using Fern, ensuring complete endpoint coverage and consistency with the API
  • Strongly-typed responses - API methods return typed response objects with accessor methods instead of raw hashes
  • Built-in pagination - List methods return iterators that automatically fetch pages as you iterate with each
  • Automatic token management - Auth0::Client handles OAuth 2.0 client credentials grant and token refresh out of the box
  • Built-in retry - Automatic retries with exponential backoff for rate-limited (429) responses
  • Exception-driven error handling - Non-2xx responses raise typed exceptions (Auth0::Errors::NotFoundError, etc.) instead of returning error hashes

What's Changed

The Authentication API is ported from v5 with identical interface. Login, signup, token exchange, passwordless, and MFA flows all work the same way.

The Management API has breaking changes:

Area v5 v6
Client Auth0Client.new(...) Auth0::Client.new(domain:, client_id:, client_secret:)
Sub-client access client.users(...) client.users.list(...)
Responses Raw hashes / arrays Typed objects (user.email, user.user_id)
Pagination Manual page param client.users.list.each { |u| ... }
Error handling Check response hash rescue Auth0::Errors::NotFoundError
HTTP client rest-client net/http (internal)

Installation

# Gemfile
gem "auth0", "6.0.0.beta.0"

or

gem install auth0 --pre

Running gem install auth0 without --pre will install the latest stable v5 release.

Quick Start

require "auth0"

client = Auth0::Client.new(
  domain: "tenant.auth0.com",
  client_id: "CLIENT_ID",
  client_secret: "CLIENT_SECRET"
)

# List users with automatic pagination
client.users.list(per_page: 50, include_totals: true).each do |user|
  puts user.email
end

Resources

Breaking Changes

  • Management API client rewritten using Fern code generation
  • Auth0Client replaced by Auth0::Client
  • Management API methods accessed via namespaced sub-clients
  • API methods return typed response objects instead of hashes
  • List methods return paginated iterators instead of arrays
  • Non-2xx responses raise typed exceptions automatically
  • rest-client dependency removed; uses net/http internally
  • Minimum Ruby version raised to 3.3

Feedback

This is a beta release - we would love your feedback! Please open an issue if you encounter any problems or have suggestions.

@kishore7snehil kishore7snehil requested a review from a team as a code owner April 30, 2026 03:48
@kishore7snehil kishore7snehil force-pushed the release/v6.0.0.beta.0 branch from 3ccf06e to bb1052c Compare April 30, 2026 04:04
Copy link
Copy Markdown
Contributor

@arpit-jn arpit-jn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kishore7snehil kishore7snehil merged commit d9a7f16 into v6 Apr 30, 2026
8 checks passed
@kishore7snehil kishore7snehil deleted the release/v6.0.0.beta.0 branch April 30, 2026 08:43
@kishore7snehil kishore7snehil changed the title Release 6.0.0-beta.0 Release 6.0.0.beta.0 Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants