-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add Bitbucket provider. #201
Add Bitbucket provider. #201
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot of spurious logging in this PR which will make the logs quite noisy, can we remove the debug logging and for the error logging that we keep, use our own "github.com/pusher/oauth2_proxy/pkg/logger"
package which wraps logs in a consistent manner across the project?
Also, since I'm not a bitbucket user, I'd like you to add yourself as CODEOWNER for the Bitbucket provider, this way, if there are questions or PRs to it, you should be notified, is that ok?
Finally, please add a changelog entry so that we note when the new provider has been added!
Thanks for the PR!
Thank you @JoelSpeed and @steakunderscore for your review! |
Add a new provider for Bitbucket, can be configured from the options specifying team and/or repository that the user must be part/have access to in order to grant login.
I've retested the PR in prod, note that #215 was necessary to properly test, but I've split the fix in its own PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM
It would be better to define
(from bitly/oauth2_proxy#466) The same may be said of BitBucket account. |
Agreed it would be useful to define |
Tested against our Bitbucket org and this looks great @aledeganopix4d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
Add a new provider for Bitbucket, can be configured from the options specifying team and/or repository that the user must be part/have access to in order to grant login.
Add option to add config via envFrom
Description
Adds Bitbucket to the providers, includes tests.
Motivation and Context
Fix #40
How Has This Been Tested?
This PR is based on a fork of the original Bitly project. We've been using that fork in PROD for several months by now.
Checklist: