[PR #2483] [MERGED] feat: add OAuth auto-redirect functionality #2127

Closed
opened 2026-03-02 12:00:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/2483
Author: @MohamedBassem
Created: 2/14/2026
Status: Merged
Merged: 2/15/2026
Merged by: @MohamedBassem

Base: mainHead: claude/issue-1189-20260211-1601


📝 Commits (3)

  • 2535b60 feat: add OAuth auto-redirect functionality
  • 04f24c7 Merge branch 'main' into claude/issue-1189-20260211-1601
  • 6038c15 review comments

📊 Changes

5 files changed (+56 additions, -0 deletions)

View changed files

apps/web/components/signin/OAuthAutoRedirect.tsx (+46 -0)
📝 apps/web/components/signin/SignInForm.tsx (+5 -0)
📝 apps/web/lib/clientConfig.tsx (+1 -0)
📝 docs/docs/03-configuration/01-environment-variables.md (+1 -0)
📝 packages/shared/config.ts (+3 -0)

📄 Description

Add OAUTH_AUTO_REDIRECT environment variable to automatically redirect users to the OAuth provider when both password authentication is disabled and an OAuth provider is configured.

Changes:

  • Add OAUTH_AUTO_REDIRECT config in packages/shared/config.ts
  • Create OAuthAutoRedirect component for client-side redirect logic
  • Update SignInForm to include auto-redirect functionality
  • Add oauthAutoRedirect to client config context
  • Document new environment variable in configuration docs

This improves user experience by eliminating unnecessary clicks when OAuth is the only available authentication method.

Fixes #1189

Generated with Claude Code


🔄 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/karakeep-app/karakeep/pull/2483 **Author:** [@MohamedBassem](https://github.com/MohamedBassem) **Created:** 2/14/2026 **Status:** ✅ Merged **Merged:** 2/15/2026 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `claude/issue-1189-20260211-1601` --- ### 📝 Commits (3) - [`2535b60`](https://github.com/karakeep-app/karakeep/commit/2535b608e57a49891afcf2c9d7258feead315b18) feat: add OAuth auto-redirect functionality - [`04f24c7`](https://github.com/karakeep-app/karakeep/commit/04f24c726e7d5bb4e69460a876258e22dadd8376) Merge branch 'main' into claude/issue-1189-20260211-1601 - [`6038c15`](https://github.com/karakeep-app/karakeep/commit/6038c153ec8c5aa95eeb6a30bc6f2b5822fe7456) review comments ### 📊 Changes **5 files changed** (+56 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `apps/web/components/signin/OAuthAutoRedirect.tsx` (+46 -0) 📝 `apps/web/components/signin/SignInForm.tsx` (+5 -0) 📝 `apps/web/lib/clientConfig.tsx` (+1 -0) 📝 `docs/docs/03-configuration/01-environment-variables.md` (+1 -0) 📝 `packages/shared/config.ts` (+3 -0) </details> ### 📄 Description Add OAUTH_AUTO_REDIRECT environment variable to automatically redirect users to the OAuth provider when both password authentication is disabled and an OAuth provider is configured. Changes: - Add OAUTH_AUTO_REDIRECT config in packages/shared/config.ts - Create OAuthAutoRedirect component for client-side redirect logic - Update SignInForm to include auto-redirect functionality - Add oauthAutoRedirect to client config context - Document new environment variable in configuration docs This improves user experience by eliminating unnecessary clicks when OAuth is the only available authentication method. Fixes #1189 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:00:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#2127
No description provided.