Closed arianvp closed 1 month ago
I think we can do this by adding an AuthStyleNone
to the enum
This works:
config := oauth2.Config{
ClientID: *clientID,
ClientSecret: "",
Endpoint: oauth2.Endpoint{
AuthURL: serverMeta.AuthorizationEndpoint,
TokenURL: serverMeta.TokenEndpoint,
AuthStyle: oauth2.AuthStyleInParams,
},
RedirectURL: redirectURL,
Scopes: []string{"openid"},
}
Weird. I can not reproduce this anymore...
If you are using a public Oauth Client (that doesn't have credentials) (e.g. when using PKCE) then according to
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3 the token request must include
client_id
as a field. This library doesn't do that nor does it expose it as an option.However there is no way in this library to set the
client_id
in a Token RequestThis means this library is incompatible with Oauth servers that support public clients.