-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Issue 329 force bitbucket oauth #401
Issue 329 force bitbucket oauth #401
Conversation
7e579ef
to
da8f488
Compare
da8f488
to
59bd8fc
Compare
My local test all seems to work OK. Very happy if anyone else tests it out too. |
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 for the effort here! I have a few asks to rename some methods and extract some of the GetCreds*
to a new BitbucketAuthentication
class.
No problem. Thanks for the feedback I'll address it in the next few days. |
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.
This looks great! Thanks @mminns :)
Thanks 👍 |
commit ff373bc Merge: 119e264 5a8fe3c Author: Matthew John Cheetham <[email protected]> Date: Thu Aug 26 10:57:27 2021 +0100 Merge pull request git-ecosystem#401 from mminns/ISSUE-329-force-bitbucket-oauth Allow a user to force the GCMC to use Basic Auth and/or OAuth for interactions with bitbucket.org. Issue git-ecosystem#329 commit 5a8fe3c Author: Mike Minns <[email protected]> Date: Thu Aug 26 09:58:25 2021 +0100 ISSUE 329 address PR comments by simplifying the use of ThrowIfUserInteractionDisabled() commit c75eb39 Author: Mike Minns <[email protected]> Date: Thu Aug 12 11:14:18 2021 +0100 ISSUE 329 address PR comments with minor updates commit 59bd8fc Author: Mike Minns <[email protected]> Date: Tue Jul 27 20:39:45 2021 +0100 ISSUE 329 Ignore auth overrides when calling Bitbucket DC commit 737f926 Author: Mike Minns <[email protected]> Date: Tue Jul 20 20:09:37 2021 +0100 ISSUE-329 Document the addition of Bitbucket AuthModes commit 5a2cfd7 Author: Mike Minns <[email protected]> Date: Mon Jul 12 15:54:13 2021 +0100 ISSUE-329 Add configuration option to force Basic Auth or OAuth for Bitbucket commit a8cc5dd Author: Mike Minns <[email protected]> Date: Fri Jul 2 17:16:25 2021 +0100 ISSUE-329 Add tests before refactoring and extending provider code.
The following options allow a user to force the GCMC to use Basic Auth and/or OAuth for interactions with bitbucket.org
By default a combination of Basic Auth and OAuth is used.
See the revised docs in this PR on how to configure.
Expected Behaviour
Assuming there are no existing stored credentials and the git 'host' is identified as bitbucket.org then
AuthModes = "" or AuthModes = "basic, oauth"
AuthModes = "basic"
AuthModes = "oauth"
- If this is successful the access_token is passed back to git
Testing
dotnet build -c MacDebug
ordotnet build -c WindowsDebug
out\osx\Installer.Mac\pkg\Debug
orout\windows\Installer.Windows\bin\Debug
TBC testing against bitbucket server instances.