Closed chrishalbert closed 5 months ago
I didn't see this listed, so I created an issue and went to the PR's to see what feedback I should be aware of, only to find https://github.com/zalando/gin-oauth2/pull/53 🤦 - I can close this, or fix their PR, or open a new one. Whatever it takes to get the addition. Thanks!
Sounds good @chrishalbert . You can also do something like WithOptions(o Options)
and create all the settings you want to set via the Options struct that you would create.
Whatever you prefer (takeover the PR or recreate).
I'm using environment variables to handle my secrets. I was wondering if it would be ok for me to submit mutator methods to support another means of setting the
oauth2.Config
's in google.go specifically. I'd of course want to ensure this remains backwards compatible, so I would only be adding these setters. Below are the functions I'd like to add:If there's no aversion, I'd be happy to submit an PR - with tests too! :)