[PR #4221] [MERGED] feat(atlassian): add atlassian social provider #22162

Closed
opened 2026-04-15 20:51:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4221
Author: @ShobhitPatra
Created: 8/25/2025
Status: Merged
Merged: 8/25/2025
Merged by: @himself65

Base: canaryHead: feat/atlassian-provider


📝 Commits (5)

  • b2cdc3a feat(atlassian): add atlassian provider
  • dc80172 docs(atlassian): add docs for atlassian social provider
  • ed6d266 fix(demo): removed localhost from trustedOrigins
  • c401299 chore: fixed typos in atlassian.mdx
  • 5bd21f1 fix(atlassian): handle betterFetch errors when retrieving profile

📊 Changes

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

View changed files

📝 docs/components/sidebar-content.tsx (+18 -0)
docs/content/docs/authentication/atlassian.mdx (+59 -0)
packages/better-auth/src/social-providers/atlassian.ts (+125 -0)
📝 packages/better-auth/src/social-providers/index.ts (+3 -0)

📄 Description

Description

This PR adds a new Atlassian OAuth provider to Better Auth.

Closes #1690

Changes

  • Introduced new salesforcel provider in /packages/better-auth/src/providers/salesforce.ts
  • modified /packages/better-auth/src/providers/index.ts
  • added docs : created new atlassian.mdx file and added it to the sidebar

Notes

Screenshot from 2025-08-25 20-06-14 Screenshot from 2025-08-25 20-06-38

Summary by cubic

Adds an Atlassian OAuth (3LO) provider to Better Auth so users can sign in with their Atlassian accounts. Also adds setup docs and a docs sidebar entry, plus a small demo config tweak for local testing.

  • New Features
    • New atlassian provider: authorization URL with PKCE, token exchange, refresh, and user info from https://api.atlassian.com/me.
    • Default scopes: read:jira-user and offline_access; supports extra scopes and prompt.
    • Exported via social-providers index for easy import.
    • Docs page at docs/authentication/atlassian and sidebar link.
    • Demo: trustedOrigins includes http://localhost:3000.

🔄 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/4221 **Author:** [@ShobhitPatra](https://github.com/ShobhitPatra) **Created:** 8/25/2025 **Status:** ✅ Merged **Merged:** 8/25/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/atlassian-provider` --- ### 📝 Commits (5) - [`b2cdc3a`](https://github.com/better-auth/better-auth/commit/b2cdc3a019b1247c3ee1965b61ecf44fa9b7132b) feat(atlassian): add atlassian provider - [`dc80172`](https://github.com/better-auth/better-auth/commit/dc801725425b61ae48c1d44500e1faf015c7437f) docs(atlassian): add docs for atlassian social provider - [`ed6d266`](https://github.com/better-auth/better-auth/commit/ed6d266045eb97a27d60f323e5500ed29a99c3dd) fix(demo): removed localhost from trustedOrigins - [`c401299`](https://github.com/better-auth/better-auth/commit/c4012994541df8726ab5a516c84e96d2459858c1) chore: fixed typos in atlassian.mdx - [`5bd21f1`](https://github.com/better-auth/better-auth/commit/5bd21f1ab8f8f93c4fcdd0672dd25dd67cfaac7c) fix(atlassian): handle betterFetch errors when retrieving profile ### 📊 Changes **4 files changed** (+205 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+18 -0) ➕ `docs/content/docs/authentication/atlassian.mdx` (+59 -0) ➕ `packages/better-auth/src/social-providers/atlassian.ts` (+125 -0) 📝 `packages/better-auth/src/social-providers/index.ts` (+3 -0) </details> ### 📄 Description ## Description This PR adds a new Atlassian OAuth provider to Better Auth. ### Closes #1690 ## Changes - Introduced new salesforcel provider in /packages/better-auth/src/providers/salesforce.ts - modified /packages/better-auth/src/providers/index.ts - added docs : created new atlassian.mdx file and added it to the sidebar ## Notes - Tested the implementation in demo/nextjs - Implementation follows: https://developer.atlassian.com/cloud/confluence/oauth-2-3lo-apps/ <img width="1909" height="999" alt="Screenshot from 2025-08-25 20-06-14" src="https://github.com/user-attachments/assets/1ce1882b-4f51-4319-b31b-8645fec25b63" /> <img width="1909" height="999" alt="Screenshot from 2025-08-25 20-06-38" src="https://github.com/user-attachments/assets/a8167a54-d0ce-4f0a-a547-d7bcb2cb5ccc" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds an Atlassian OAuth (3LO) provider to Better Auth so users can sign in with their Atlassian accounts. Also adds setup docs and a docs sidebar entry, plus a small demo config tweak for local testing. - **New Features** - New atlassian provider: authorization URL with PKCE, token exchange, refresh, and user info from https://api.atlassian.com/me. - Default scopes: read:jira-user and offline_access; supports extra scopes and prompt. - Exported via social-providers index for easy import. - Docs page at docs/authentication/atlassian and sidebar link. - Demo: trustedOrigins includes http://localhost:3000. <!-- 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 20:51:38 -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#22162