[PR #5147] [MERGED] fix(gitlab): fix the token endpoint #22709

Closed
opened 2026-04-15 21:13:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5147
Author: @Tobix99
Created: 10/7/2025
Status: Merged
Merged: 10/7/2025
Merged by: @himself65

Base: canaryHead: canary


📝 Commits (1)

  • ad6fb99 Gitlab: Fixed the token endpoint and updated the Gitlab Docs

📊 Changes

2 files changed (+27 additions, -1 deletions)

View changed files

📝 docs/content/docs/authentication/gitlab.mdx (+26 -0)
📝 packages/better-auth/src/social-providers/gitlab.ts (+1 -1)

📄 Description

I fixed the Token endpoint, as the others are read from the issuerToEndpoints function and added an example to the docs on how to use the issuer env variable.


Summary by cubic

Fixes the GitLab OAuth token endpoint to use the issuer-based configuration, so self-hosted GitLab instances authenticate correctly. Updates docs with issuer guidance and a self-hosted example.

  • Bug Fixes

  • Docs

    • Added issuer option explanation and a self-hosted GitLab setup example in the GitLab provider docs.

🔄 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/5147 **Author:** [@Tobix99](https://github.com/Tobix99) **Created:** 10/7/2025 **Status:** ✅ Merged **Merged:** 10/7/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (1) - [`ad6fb99`](https://github.com/better-auth/better-auth/commit/ad6fb99927bd1cf8dfcef6688f151872dbec3697) Gitlab: Fixed the token endpoint and updated the Gitlab Docs ### 📊 Changes **2 files changed** (+27 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/authentication/gitlab.mdx` (+26 -0) 📝 `packages/better-auth/src/social-providers/gitlab.ts` (+1 -1) </details> ### 📄 Description I fixed the Token endpoint, as the others are read from the `issuerToEndpoints` function and added an example to the docs on how to use the issuer env variable. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes the GitLab OAuth token endpoint to use the issuer-based configuration, so self-hosted GitLab instances authenticate correctly. Updates docs with issuer guidance and a self-hosted example. - **Bug Fixes** - Use tokenEndpoint from issuerToEndpoints instead of hardcoding https://gitlab.com/oauth/token. - **Docs** - Added issuer option explanation and a self-hosted GitLab setup example in the GitLab provider docs. <!-- 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-15 21:13:44 -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#22709