[PR #4831] [CLOSED] feat: add Asgardeo provider #13850

Closed
opened 2026-04-13 09:10:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4831
Author: @snelusha
Created: 9/23/2025
Status: Closed

Base: canaryHead: feat/asgardeo-provider


📝 Commits (7)

  • 3cb7fe1 feat: add asgardeo social provider
  • f58d2d1 docs: add asgardeo authentication documentation
  • 6acd8f0 fix: make address field optional in asgardeo profile
  • 632eeb3 fix: trim trailing slash from issuer
  • 1ce3f2a feat: add asgardeo generic oauth provider
  • e85e297 chore: remove Asgardeo social provider and docs
  • 22e5910 chore: add asgardeo to cspell third-party dictionary

📊 Changes

4 files changed (+123 additions, -0 deletions)

View changed files

📝 .cspell/third-party.txt (+1 -0)
📝 docs/content/docs/plugins/generic-oauth.mdx (+8 -0)
packages/better-auth/src/plugins/generic-oauth/providers/asgardeo.ts (+111 -0)
📝 packages/better-auth/src/plugins/generic-oauth/providers/index.ts (+3 -0)

📄 Description

This pull request adds support for the Asgardeo authentication provider to the better-auth package, including documentation and integration in the UI. The main changes include implementing the Asgardeo provider logic, updating the list of available social providers, and adding user documentation.

Asgardeo Provider Integration

  • Added a new asgardeo provider implementation in packages/better-auth/src/social-providers/asgardeo.ts, including OAuth endpoints, profile mapping, and user info retrieval logic.
  • Registered the asgardeo provider in the socialProviders export and re-exported its types in packages/better-auth/src/social-providers/index.ts. [1] [2] [3]

Documentation and UI Updates

  • Added a new documentation page at docs/content/docs/authentication/asgardeo.mdx with setup instructions and usage examples for Asgardeo authentication.
  • Updated the sidebar navigation in docs/components/sidebar-content.tsx to include Asgardeo as a new authentication provider, complete with icon and "new" badge.

Summary by cubic

Adds Asgardeo OAuth support via the Generic OAuth provider helper. Updates the Generic OAuth docs with setup, example config, and issuer details.

  • New Features

    • Generic OAuth helper: issuer-based endpoints (authorize/token/userinfo); default scopes openid/profile/email; maps id/name/email/image; listed in Supported Providers with example config and issuer requirement.
  • Bug Fixes

    • Trim trailing slash from issuer to avoid bad URLs.
    • Make the address field optional in the Asgardeo profile.

Written for commit 22e5910ad6. Summary will update on new commits.


🔄 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/4831 **Author:** [@snelusha](https://github.com/snelusha) **Created:** 9/23/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/asgardeo-provider` --- ### 📝 Commits (7) - [`3cb7fe1`](https://github.com/better-auth/better-auth/commit/3cb7fe16dc07a4e09d936a7a058514a2ab002bef) feat: add asgardeo social provider - [`f58d2d1`](https://github.com/better-auth/better-auth/commit/f58d2d133cbc691a4fdce5bb9326e14b3d8ac9de) docs: add asgardeo authentication documentation - [`6acd8f0`](https://github.com/better-auth/better-auth/commit/6acd8f0b01fa478e775e3150b71a938d8758f208) fix: make address field optional in asgardeo profile - [`632eeb3`](https://github.com/better-auth/better-auth/commit/632eeb33d5e8477e5777fedbd0526d4fe686b30a) fix: trim trailing slash from issuer - [`1ce3f2a`](https://github.com/better-auth/better-auth/commit/1ce3f2a9a4db71184e309b49155847570ab192f5) feat: add asgardeo generic oauth provider - [`e85e297`](https://github.com/better-auth/better-auth/commit/e85e2972aaea4d90c388d5d8218ffa414760b100) chore: remove Asgardeo social provider and docs - [`22e5910`](https://github.com/better-auth/better-auth/commit/22e5910ad6e0cfa8cd617994d233df11c14657f3) chore: add asgardeo to cspell third-party dictionary ### 📊 Changes **4 files changed** (+123 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.cspell/third-party.txt` (+1 -0) 📝 `docs/content/docs/plugins/generic-oauth.mdx` (+8 -0) ➕ `packages/better-auth/src/plugins/generic-oauth/providers/asgardeo.ts` (+111 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/providers/index.ts` (+3 -0) </details> ### 📄 Description This pull request adds support for the Asgardeo authentication provider to the `better-auth` package, including documentation and integration in the UI. The main changes include implementing the Asgardeo provider logic, updating the list of available social providers, and adding user documentation. **Asgardeo Provider Integration** * Added a new `asgardeo` provider implementation in `packages/better-auth/src/social-providers/asgardeo.ts`, including OAuth endpoints, profile mapping, and user info retrieval logic. * Registered the `asgardeo` provider in the `socialProviders` export and re-exported its types in `packages/better-auth/src/social-providers/index.ts`. [[1]](diffhunk://#diff-bcbb05bb07c12e4c48b919dbff5c6bc6d267a72a63e3c438cc3df471ed6fce80R3) [[2]](diffhunk://#diff-bcbb05bb07c12e4c48b919dbff5c6bc6d267a72a63e3c438cc3df471ed6fce80R36) [[3]](diffhunk://#diff-bcbb05bb07c12e4c48b919dbff5c6bc6d267a72a63e3c438cc3df471ed6fce80R88) **Documentation and UI Updates** * Added a new documentation page at `docs/content/docs/authentication/asgardeo.mdx` with setup instructions and usage examples for Asgardeo authentication. * Updated the sidebar navigation in `docs/components/sidebar-content.tsx` to include Asgardeo as a new authentication provider, complete with icon and "new" badge. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds Asgardeo OAuth support via the Generic OAuth provider helper. Updates the Generic OAuth docs with setup, example config, and issuer details. - **New Features** - Generic OAuth helper: issuer-based endpoints (authorize/token/userinfo); default scopes openid/profile/email; maps id/name/email/image; listed in Supported Providers with example config and issuer requirement. - **Bug Fixes** - Trim trailing slash from issuer to avoid bad URLs. - Make the address field optional in the Asgardeo profile. <sup>Written for commit 22e5910ad6e0cfa8cd617994d233df11c14657f3. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <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-04-13 09:10:51 -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#13850