sftpgo/internal/httpd
Nicola Murino 0ae2354fed
JWT: replace jwtauth/jwx with lightweight wrapper around go-jose
We replaced the jwtauth and jwx libraries with a minimal custom wrapper
around go-jose because we don’t need the full feature set provided by jwx.
Implementing our own wrapper simplifies the codebase and improves
maintainability.

Moreover, go-jose depends only on the standard library, resulting in a
leaner dependency that still meets all our requirements.

This change also reduces the SFTPGo binary size by approximately 1MB

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2025-10-08 18:10:39 +02:00
..
api_admin.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_configs.go upgrade golangci-lint to v2 2025-03-29 11:36:19 +01:00
api_defender.go add an util method to convert []byte to string 2024-05-08 19:01:58 +02:00
api_eventrule.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_events.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_folder.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_group.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_http_user.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_iplist.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_keys.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_maintenance.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_mfa.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_quota.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_retention.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_role.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_shares.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_user.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
api_utils.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
auth_utils.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
file.go upgrade golangci-lint to v2 2025-03-29 11:36:19 +01:00
flash.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
flash_test.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
handler.go HTTPD, WebDAV: use http.ResponseController 2025-08-02 18:00:45 +02:00
httpd.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
httpd_test.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
internal_test.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
middleware.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
oauth2.go db shared sessions: set key and type as primary key 2025-03-23 11:34:10 +01:00
oauth2_test.go db shared sessions: set key and type as primary key 2025-03-23 11:34:10 +01:00
oidc.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
oidc_test.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
oidcmanager.go db shared sessions: set key and type as primary key 2025-03-23 11:34:10 +01:00
resetcode.go db shared sessions: set key and type as primary key 2025-03-23 11:34:10 +01:00
resources.go remove obsoletes build constraints 2025-04-20 17:15:40 +02:00
resources_embedded.go remove obsoletes build constraints 2025-04-20 17:15:40 +02:00
server.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
token.go db shared sessions: set key and type as primary key 2025-03-23 11:34:10 +01:00
web.go replace strings.Split with SplitSeq 2025-05-31 19:03:41 +02:00
webadmin.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
webclient.go JWT: replace jwtauth/jwx with lightweight wrapper around go-jose 2025-10-08 18:10:39 +02:00
webtask.go db shared sessions: set key and type as primary key 2025-03-23 11:34:10 +01:00
webtask_test.go WebClient: refactor long-running tasks to improve browser compatibility 2024-03-11 18:19:57 +01:00