This commit is contained in:
2026-07-25 13:27:45 -05:00
parent 2045b32a01
commit df24f965da
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -53,7 +53,9 @@ Create these separately:
The OAuth client secret authenticates the portal to Gitea. The package token The OAuth client secret authenticates the portal to Gitea. The package token
is used only server-side while proxying an authorized file. Neither value is is used only server-side while proxying an authorized file. Neither value is
returned to a technician or Proxmox host. returned to a technician or Proxmox host. The broker requests only Gitea's
`read:user` OAuth scope, which it uses to confirm the signed-in username
against `TAPM_ALLOWED_GITEA_USERS`.
## 4. Broker configuration ## 4. Broker configuration
+1
View File
@@ -48,6 +48,7 @@ func (s *Server) handleLogin(w http.ResponseWriter, r *http.Request) {
"client_id": {s.cfg.GiteaClientID}, "client_id": {s.cfg.GiteaClientID},
"redirect_uri": {redirectURI}, "redirect_uri": {redirectURI},
"response_type": {"code"}, "response_type": {"code"},
"scope": {"read:user"},
"state": {state}, "state": {state},
} }
http.Redirect( http.Redirect(