You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@seankhliao that's unfortunate. Is there any alternative? Could we add an additional method, maybe TokenSourceWithOptions, similar to TokenSourceWithExpiry?
Migrated from golang/oauth2#521, refs #56402 (comment)
We'd like to be able to add custom parameters to the Refresh Token Request provided by the configuration client.
Proposed solution:
Add optional parameters to
oauth2.Config.TokenSource()
similar toSetAuthURLParam
. This pattern could later be extended for headers if necessary.Proposed API:
Would be happy to try a CL.
Consequence of not implementing:
Custom unmarshaling of
oauth2.Token
(see #61417) or custom token refreshers (see https://github.com/evcc-io/evcc/blob/master/util/oauth/tokensource.go#L12)Alternatives:
To some extend #61417 but still at cost of additional code.
The text was updated successfully, but these errors were encountered: