[PR #1184] feat: implement OIDC Authentication #1031

Open
opened 2026-02-25 23:36:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-shiori/shiori/pull/1184
Author: @bakito
Created: 2/14/2026
Status: 🔄 Open

Base: masterHead: oidc


📝 Commits (1)

📊 Changes

18 files changed (+2100 additions, -23 deletions)

View changed files

📝 docs/Configuration.md (+27 -18)
📝 docs/swagger/docs.go (+49 -0)
📝 docs/swagger/swagger.json (+49 -0)
📝 docs/swagger/swagger.yaml (+32 -0)
📝 go.mod (+3 -0)
📝 go.sum (+6 -0)
📝 internal/config/config.go (+34 -0)
📝 internal/config/config_test.go (+21 -0)
📝 internal/http/handlers/api/v1/auth.go (+26 -3)
📝 internal/http/handlers/api/v1/auth_test.go (+37 -0)
internal/http/handlers/api/v1/oidc.go (+176 -0)
internal/http/handlers/api/v1/oidc_test.go (+378 -0)
📝 internal/http/server.go (+12 -0)
📝 internal/view/assets/js/component/login.js (+58 -0)
package-lock.json (+1143 -0)
📝 package.json (+6 -2)
testdata/oidc/README.md (+26 -0)
testdata/oidc/index.js (+17 -0)

📄 Description

This PR implements optional OIDC authentication for shiori.

OIDC can be configured via Env Variables.

image

For testing purposes a simple node oidc-test server is provided.


🔄 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/go-shiori/shiori/pull/1184 **Author:** [@bakito](https://github.com/bakito) **Created:** 2/14/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `oidc` --- ### 📝 Commits (1) - [`4fbb589`](https://github.com/go-shiori/shiori/commit/4fbb58910667b3d708119512bed3b2137716db22) implement oidc ### 📊 Changes **18 files changed** (+2100 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `docs/Configuration.md` (+27 -18) 📝 `docs/swagger/docs.go` (+49 -0) 📝 `docs/swagger/swagger.json` (+49 -0) 📝 `docs/swagger/swagger.yaml` (+32 -0) 📝 `go.mod` (+3 -0) 📝 `go.sum` (+6 -0) 📝 `internal/config/config.go` (+34 -0) 📝 `internal/config/config_test.go` (+21 -0) 📝 `internal/http/handlers/api/v1/auth.go` (+26 -3) 📝 `internal/http/handlers/api/v1/auth_test.go` (+37 -0) ➕ `internal/http/handlers/api/v1/oidc.go` (+176 -0) ➕ `internal/http/handlers/api/v1/oidc_test.go` (+378 -0) 📝 `internal/http/server.go` (+12 -0) 📝 `internal/view/assets/js/component/login.js` (+58 -0) ➕ `package-lock.json` (+1143 -0) 📝 `package.json` (+6 -2) ➕ `testdata/oidc/README.md` (+26 -0) ➕ `testdata/oidc/index.js` (+17 -0) </details> ### 📄 Description This PR implements optional OIDC authentication for shiori. OIDC can be configured via Env Variables. <img width="403" height="430" alt="image" src="https://github.com/user-attachments/assets/f2b8a393-2e58-4a74-8352-f53fb892ec09" /> For testing purposes a simple node oidc-test server is provided. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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/shiori#1031
No description provided.