mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[PR #1105] [MERGED] feat: support proxy forward headers authentication #991
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#991
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-shiori/shiori/pull/1105
Author: @pudymody
Created: 5/24/2025
Status: ✅ Merged
Merged: 7/12/2025
Merged by: @fmartingr
Base:
master← Head:sso📝 Commits (10+)
9229569feat: Add SSO forward header2d0ca4cfix: Use domain layer2ac9714test: Some test9a63a71chore: Print new values when debugging0716125chore: Rename enabled envvarb0ce77bfix: Wrongly parsing remote ip1c1f7d8fix: Always validate token. NPE on validateSession32a5244fix: Dont overwrite token when ssoe66705cfix: Best effort to get ip. Parse as ip:port and then as ipd66a0a0fix: Forgot to update handler version📊 Changes
12 files changed (+378 additions, -37 deletions)
View changed files
📝
docs/Configuration.md(+18 -15)📝
internal/config/config.go(+7 -0)📝
internal/domains/accounts.go(+18 -0)📝
internal/domains/accounts_test.go(+24 -0)📝
internal/http/middleware/auth.go(+4 -0)➕
internal/http/middleware/auth_sso_proxy.go(+104 -0)➕
internal/http/middleware/auth_sso_proxy_test.go(+101 -0)📝
internal/http/server.go(+4 -0)📝
internal/model/domains.go(+1 -0)📝
internal/view/index.html(+6 -5)📝
internal/webserver/handler.go(+77 -17)📝
internal/webserver/server.go(+14 -0)📄 Description
Hi, i started using Authelia for my SSO and Shiori is one of the apps i use that currently doesnt support neither proxy forwarding headers or OIDC.
This is my attempt at the first as its easier to implement.
There is https://github.com/go-shiori/shiori/pull/860 but it seems dead and outdated.
The default settings are tailored to my use case and should be enough for almost everyone, but open to different ones as this is a new world to me.
I've been testing it locally for now and everything seems to be working
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.