brendanhay / gogol

A comprehensive Google Services SDK for Haskell.
Other
281 stars 105 forks source link

ServiceConfig for auth ? #126

Open kozak opened 5 years ago

kozak commented 5 years ago

Hi, Thanks for a great library!
I've wanted to override the auth endpoint urls for testing/mocks. Gogol provides this ability for services via ServiceConfig. I was thinking of adding a similar feature to Auth. Would this be ok, or would you prefer a different way for overriding tokenRequest and accountsRequest (https://github.com/brendanhay/gogol/blob/develop/gogol/src/Network/Google/Internal/Auth.hs#L261-L287)? Cheers!