-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2 authentication #48
Comments
Hi @bmassemin Thank you for the great suggestion. That sounds like a great idea. As this feature is more geared toward enterprise, it would be great to either have some form of sponsorship (especially if someone if using that webhook at part of their work) or someone from the community is willing to propose a pull request. |
I can handle this myself, but would you prefer using an enum for the auth type (application or oauth2) or a simple oauth2: true/false? Thanks a lot! |
Are talking about the setting in the Helm Chart under each issuer? Maybe if you could show how the |
Yes I forgot to mention the Helm Chart. This is what we have right now: # ovhAuthentication:
# # the OVH application key. Leave emtpy if you are using an existing secret.
# applicationKey: ''
# # the OVH application secret. Leave emtpy if you are using an existing secret.
# applicationSecret: ''
# # Your OVH consumer key. Leave emtpy if you are using an existing secret.
# consumerKey: '' Option 1: # ovhAuthentication:
# # Authentication method (possible values: application or oauth2)
# authenticationMethod: application
# # the OVH client ID. Leave emtpy if you are using an existing secret.
# clientID: ''
# # the OVH client secret. Leave emtpy if you are using an existing secret.
# clientSecret: ''
# # the OVH application key. Leave emtpy if you are using an existing secret.
# applicationKey: ''
# # the OVH application secret. Leave emtpy if you are using an existing secret.
# applicationSecret: ''
# # Your OVH consumer key. Leave emtpy if you are using an existing secret.
# consumerKey: '' Option 2: # ovhAuthentication:
# # Authentication method (possible values: application or oauth2)
# oauth2: false
# # the OVH client ID. Leave emtpy if you are using an existing secret.
# clientID: ''
# # the OVH client secret. Leave emtpy if you are using an existing secret.
# clientSecret: ''
# # the OVH application key. Leave emtpy if you are using an existing secret.
# applicationKey: ''
# # the OVH application secret. Leave emtpy if you are using an existing secret.
# applicationSecret: ''
# # Your OVH consumer key. Leave emtpy if you are using an existing secret.
# consumerKey: '' Option 3: ? |
Nice! ovhAuthentication:
# Authentication method (possible values: application or oauth2)
authenticationMethod: application
# the OVH OAuth 2 client ID. Leave empty if you are using an existing secret.
oauth2ClientID: ''
# the OVH OAuth 2 client secret. Leave empty if you are using an existing secret.
oauth2ClientSecret: ''
# the OVH application key. Leave empty if you are using an existing secret.
applicationKey: ''
# the OVH application secret. Leave empty if you are using an existing secret.
applicationSecret: ''
# Your OVH consumer key. Leave empty if you are using an existing secret.
applicationConsumerKey: '' |
I wanted to reuse the same keywords as the OVH configuration for authentication, but it doesn't matter, we can add the oauth2 prefix. |
Agree that would have been ideal but in this context user experience matters too. That's also why I suggested renaming |
Ok, but renaming ovhAuthentication:
# Authentication method (possible values: application or oauth2)
authenticationMethod: application
# the OVH OAuth 2 client ID. Leave empty if you are using an existing secret.
oauth2ClientID: ''
# the OVH OAuth 2 client secret. Leave empty if you are using an existing secret.
oauth2ClientSecret: ''
# the OVH application key. Leave empty if you are using an existing secret.
applicationKey: ''
# the OVH application secret. Leave empty if you are using an existing secret.
applicationSecret: ''
# (DEPRECATED, please use `applicationConsumerKey` instead) Your OVH consumer key. Leave empty if you are using an existing secret.
consumerKey: ''
# Your OVH consumer key. Leave empty if you are using an existing secret.
applicationConsumerKey: '' |
In that case, I'm ok with a breaking change since we're still in 0.x rather than 1.x for that chart/app. That's also why I recently introduced |
Ok I'll start the work tomorrow! |
What would you like?
Be able to authenticate with a service account through OAuth2 client: https://github.com/ovh/go-ovh/blob/master/README.md#oauth2
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: