[PR #39] [MERGED] feat: Add optional OIDC support #146

Closed
opened 2025-12-29 14:25:40 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/yusing/godoxy/pull/39
Author: @yusing
Created: 1/12/2025
Status: Merged
Merged: 1/12/2025
Merged by: @yusing

Base: v0.8Head: feat/oauth-oidc


📝 Commits (1)

  • e759510 feat: Add optional OIDC support

📊 Changes

10 files changed (+460 additions, -6 deletions)

View changed files

📝 .env.example (+10 -0)
📝 cmd/main.go (+7 -1)
📝 go.mod (+2 -1)
📝 go.sum (+2 -0)
📝 internal/api/handler.go (+3 -0)
📝 internal/api/v1/auth/auth.go (+38 -4)
internal/api/v1/auth/oidc.go (+176 -0)
internal/api/v1/auth/oidc_test.go (+203 -0)
📝 internal/common/env.go (+6 -0)
internal/common/random.go (+13 -0)

📄 Description

This allows the API to trigger an OAuth workflow to create the JWT for authentication. For now the workflow is triggered by manually visiting /api/login/oidc on the frontend app until the UI repo is updated to add support.


🔄 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/yusing/godoxy/pull/39 **Author:** [@yusing](https://github.com/yusing) **Created:** 1/12/2025 **Status:** ✅ Merged **Merged:** 1/12/2025 **Merged by:** [@yusing](https://github.com/yusing) **Base:** `v0.8` ← **Head:** `feat/oauth-oidc` --- ### 📝 Commits (1) - [`e759510`](https://github.com/yusing/godoxy/commit/e759510edc74479705cac1c688758fb6cc61844d) feat: Add optional OIDC support ### 📊 Changes **10 files changed** (+460 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+10 -0) 📝 `cmd/main.go` (+7 -1) 📝 `go.mod` (+2 -1) 📝 `go.sum` (+2 -0) 📝 `internal/api/handler.go` (+3 -0) 📝 `internal/api/v1/auth/auth.go` (+38 -4) ➕ `internal/api/v1/auth/oidc.go` (+176 -0) ➕ `internal/api/v1/auth/oidc_test.go` (+203 -0) 📝 `internal/common/env.go` (+6 -0) ➕ `internal/common/random.go` (+13 -0) </details> ### 📄 Description This allows the API to trigger an OAuth workflow to create the JWT for authentication. For now the workflow is triggered by manually visiting `/api/login/oidc` on the frontend app until the UI repo is updated to add support. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 14:25:40 +01:00
adam closed this issue 2025-12-29 14:25:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy-yusing#146