Make OAuth2 issuer configurable (#35915) (#35916)

Backport #35915 by wxiaoguang
This commit is contained in:
Giteabot authored and GitHub committed 2025-11-10 16:12:25 +00:00
1 parent db876d8f17
commit 327f2207dc
4 files changed
+35 -13

No files matched your search

+5
View File
@@ -567,6 +567,11 @@ ENABLED = true
;; Alternative location to specify OAuth2 authentication secret. You cannot specify both this and JWT_SECRET, and must pick one
;JWT_SECRET_URI = file:/etc/gitea/oauth2_jwt_secret
;;
;; The "issuer" claim identifies the principal that issued the JWT.
;; Gitea 1.25 makes it default to "ROOT_URL without the last slash" to follow the standard.
;; If you have old logins from before 1.25, you may want to set it to the old (non-standard) value "ROOT_URL with the last slash".
;JWT_CLAIM_ISSUER =
;;
;; Lifetime of an OAuth2 access token in seconds
;ACCESS_TOKEN_EXPIRATION_TIME = 3600
;;