[PR #38] [CLOSED] feat: Add optional OIDC support #145

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

📋 Pull Request Information

Original PR: https://github.com/yusing/godoxy/pull/38
Author: @polds
Created: 1/12/2025
Status: Closed

Base: v0.8Head: v0.8


📝 Commits (1)

  • 2180ae3 feat: Add optional OIDC support

📊 Changes

11 files changed (+471 additions, -17 deletions)

View changed files

📝 .env.example (+10 -0)
📝 cmd/main.go (+10 -5)
📝 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)
📝 internal/config/config.go (+8 -7)

📄 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/38 **Author:** [@polds](https://github.com/polds) **Created:** 1/12/2025 **Status:** ❌ Closed **Base:** `v0.8` ← **Head:** `v0.8` --- ### 📝 Commits (1) - [`2180ae3`](https://github.com/yusing/godoxy/commit/2180ae37eb561438199d5437f480074ca0533b8b) feat: Add optional OIDC support ### 📊 Changes **11 files changed** (+471 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+10 -0) 📝 `cmd/main.go` (+10 -5) 📝 `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) 📝 `internal/config/config.go` (+8 -7) </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:39 +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#145