shiori/internal/model
Federico Scodelaro 9f6a4c39d4
feat: support proxy forward headers authentication (#1105)
* feat: Add SSO forward header

* fix: Use domain layer

* test: Some test

* chore: Print new values when debugging

* chore: Rename enabled envvar

* fix: Wrongly parsing remote ip

* fix: Always validate token. NPE on validateSession

* fix: Dont overwrite token when sso

* fix: Best effort to get ip. Parse as ip:port and then as ip

* fix: Forgot to update handler version

* fix: Forgot to commit changes

* test: GetAccountByUsername

* chore: Rename some variables

* chore: return error from ssoAccount

* refactor: Extract sso proxy auth to own middleware

* fix: Dont panic if not sso account on legacy validate session

* ci: gofmt

---------

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>
2025-07-12 12:11:42 +02:00
..
account.go refactor: remove gin and use stdlib http server (#1064) 2025-02-26 20:50:48 +01:00
bookmark.go feat(apiv1): refactor tags api (#1075) 2025-03-11 17:37:08 +01:00
bookmark_test.go feat(apiv1): refactor tags api (#1075) 2025-03-11 17:37:08 +01:00
const.go fix: data dir permissions having execute for all (#493) 2022-10-09 18:50:42 +02:00
database.go feat: add apis to handle bookmark tags (#1081) 2025-03-15 21:28:26 +01:00
dependencies.go refactor: remove gin and use stdlib http server (#1064) 2025-02-26 20:50:48 +01:00
domains.go feat: support proxy forward headers authentication (#1105) 2025-07-12 12:11:42 +02:00
errors.go feat: add apis to handle bookmark tags (#1081) 2025-03-15 21:28:26 +01:00
http.go feat: reverts message in json output and allows configuration (#1082) 2025-03-16 19:09:28 +01:00
legacy.go refactor(apiv1): accounts api (#825) 2025-02-22 20:38:36 +01:00
main.go refactor: migrate bookmark static pages to new http server (#775) 2023-12-28 18:18:32 +01:00
ptr.go refactor(apiv1): accounts api (#825) 2025-02-22 20:38:36 +01:00
slices.go feat(apiv1): refactor tags api (#1075) 2025-03-11 17:37:08 +01:00
slices_test.go feat(apiv1): refactor tags api (#1075) 2025-03-11 17:37:08 +01:00
tag.go feat: add apis to handle bookmark tags (#1081) 2025-03-15 21:28:26 +01:00
tag_test.go feat: add apis to handle bookmark tags (#1081) 2025-03-15 21:28:26 +01:00
validation.go refactor(apiv1): accounts api (#825) 2025-02-22 20:38:36 +01:00