update
This commit is contained in:
+3
-1
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user