mirror of
https://github.com/writeas/writefreely
synced 2025-01-28 08:29:40 +01:00
add client_id and client_secret to exchangeOauthCode form
This commit is contained in:
parent
427f4980b9
commit
bdcf369b3d
@ -70,6 +70,8 @@ func (c genericOauthClient) buildLoginURL(state string) (string, error) {
|
|||||||
|
|
||||||
func (c genericOauthClient) exchangeOauthCode(ctx context.Context, code string) (*TokenResponse, error) {
|
func (c genericOauthClient) exchangeOauthCode(ctx context.Context, code string) (*TokenResponse, error) {
|
||||||
form := url.Values{}
|
form := url.Values{}
|
||||||
|
form.Add("client_id", c.ClientID)
|
||||||
|
form.Add("client_secret", c.ClientSecret)
|
||||||
form.Add("grant_type", "authorization_code")
|
form.Add("grant_type", "authorization_code")
|
||||||
form.Add("redirect_uri", c.CallbackLocation)
|
form.Add("redirect_uri", c.CallbackLocation)
|
||||||
form.Add("scope", c.Scope)
|
form.Add("scope", c.Scope)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user