Use AuthStyleInParams for OAuth configuration
@@ -31,6 +31,7 @@ func NewOAuthConfig(profile string) *oauth2.Config {
Endpoint: oauth2.Endpoint{
AuthURL: profile + "authorize",
TokenURL: profile + "oauth/token",
+ AuthStyle: oauth2.AuthStyleInParams,
},
}
}
@@ -42,8 +43,8 @@ func NewOAuthConfig(profile string) *oauth2.Config {
Endpoint: oauth2.Endpoint{
AuthURL: "https://redskyops-dev.auth0.com/authorize",
TokenURL: "https://redskyops-dev.auth0.com/oauth/token",
+ AuthStyle: oauth2.AuthStyleInParams,
},
- Scopes: nil,
}
default:
return nil
