Changed sending access token in header instead of body

This commit is contained in:
David Allen 2024-03-11 16:07:58 -06:00
parent d0fd0d8714
commit de6d375619
No known key found for this signature in database
GPG key ID: 1D2A29322FBB6FCB

View file

@ -136,7 +136,7 @@ func (s *Server) Login(buttons string, provider *oidc.IdentityProvider, client *
// try and send access code to target if set
if target != "" {
fmt.Printf("Send access token to target: %s\n", target)
_, _, err := httpx.MakeHttpRequest(target, http.MethodPost, []byte(accessToken), httpx.Headers{})
_, _, err := httpx.MakeHttpRequest(target, http.MethodPost, nil, httpx.Headers{"access_token": accessToken})
if err != nil {
fmt.Printf("failed to make request: %v", err)
}