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
I am writing a wrapper function that takes some configuration, then builds a request object with exchanged credentials (by calling the respective exchange_* methods on BasicClient).
I am writing a wrapper function that takes some configuration, then builds a request object with exchanged credentials (by calling the respective
exchange_*
methods onBasicClient
).The returned object is of one of the types in https://docs.rs/oauth2/4.0.0/oauth2/struct.ClientCredentialsTokenRequest.html?search=tokenrequest – however, these objects do not share a common trait, so cannot be returned by the same function and used the same way by the caller.
Ass all the
*TokenRequest
objects have the same API, it would be helpful to have a common trait that can be used as a type.Along these lines, something like this:
would probably be a good idea as well.
The text was updated successfully, but these errors were encountered: