[PR #7602] [MERGED] Fix userinfo route to match Okta specs. #7436

Closed
opened 2026-03-13 13:36:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7602
Author: @psigen
Created: 1/25/2026
Status: Merged
Merged: 1/25/2026
Merged by: @Bekacru

Base: canaryHead: patch-1


📝 Commits (1)

  • 6e69d77 Fix userinfo route to match Okta specs.

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/plugins/generic-oauth/providers/okta.ts (+1 -1)

📄 Description

Append an oauth2 segment to the Okta userinfo path as per the documentation.

/v1/userinfo -> /oauth2/v1/userinfo

Previously, the path did not match the documentation, meaning that the provider threw the following exception on signin:

user_info_is_missing

See: Okta API for UserInfo


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7602 **Author:** [@psigen](https://github.com/psigen) **Created:** 1/25/2026 **Status:** ✅ Merged **Merged:** 1/25/2026 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`6e69d77`](https://github.com/better-auth/better-auth/commit/6e69d7792fddea0aa15ecab262a69519923c7ce8) Fix userinfo route to match Okta specs. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/generic-oauth/providers/okta.ts` (+1 -1) </details> ### 📄 Description Append an `oauth2` segment to the Okta userinfo path as per the documentation. `/v1/userinfo` -> `/oauth2/v1/userinfo` Previously, the path did not match the documentation, meaning that the provider [threw the following exception on signin](https://github.com/better-auth/better-auth/blob/762a11f97162dbc1f807457b2e3e0b8d1619f633/packages/better-auth/src/plugins/generic-oauth/routes.ts#L397): ``` user_info_is_missing ``` See: [Okta API for UserInfo](https://developer.okta.com/docs/api/openapi/okta-oauth/oauth/tag/OrgAS/#tag/OrgAS/operation/userinfo) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:36:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7436