mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 11:37:01 -07:00
Added debug prints for access token target
This commit is contained in:
parent
0b9c1a74d0
commit
d0fd0d8714
1 changed files with 5 additions and 1 deletions
|
|
@ -135,7 +135,11 @@ 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 != "" {
|
||||||
httpx.MakeHttpRequest(target, http.MethodPost, []byte(accessToken), httpx.Headers{})
|
fmt.Printf("Send access token to target: %s\n", target)
|
||||||
|
_, _, err := httpx.MakeHttpRequest(target, http.MethodPost, []byte(accessToken), httpx.Headers{})
|
||||||
|
if err != nil {
|
||||||
|
fmt.Printf("failed to make request: %v", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
r.HandleFunc("/error", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/error", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue