mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Changed sending access token in header instead of body
This commit is contained in:
parent
d0fd0d8714
commit
de6d375619
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ func (s *Server) Login(buttons string, provider *oidc.IdentityProvider, client *
|
||||||
// try and send access code to target if set
|
// try and send access code to target if set
|
||||||
if target != "" {
|
if target != "" {
|
||||||
fmt.Printf("Send access token to target: %s\n", 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 {
|
if err != nil {
|
||||||
fmt.Printf("failed to make request: %v", err)
|
fmt.Printf("failed to make request: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue