logto-io / go

☁️ Logto Golang SDKs.
MIT License
19 stars 13 forks source link

fix(client): SetBasicAuth in RoundTrip func #72

Closed eehhh closed 1 year ago

eehhh commented 1 year ago

Summary

To Solve "Traditional web" Application , FetchTokenByAuthorizationCode responsed "invalid_client"

Testing

Checklist

OR

eehhh commented 1 year ago

Fetch user info requires accessToken.It seems that BasicAuth should not be set as a general request header of the client. And add the request header in the Proxy seems to be invalid.

eehhh commented 1 year ago

Done in #75