1
0
Форкнуть 0
Граф коммитов

57 Коммитов

Автор SHA1 Сообщение Дата
J Wyman 00a8fb97bc Silence style-cop wrt `this.` usage. 2017-08-01 13:35:10 -04:00
J Wyman d8b7f09d64 Fix / suppress code analysis violations. 2017-06-23 17:27:49 -04:00
J Wyman 2cdd538309 Standardize code analysis settings on Ms projects. 2017-06-23 17:06:38 -04:00
J Wyman 2fc45eaf52 Update dependencies (nupkg).
Castle.Core (aka Moq) -> 4.1.0
Microsoft.Identity.Client.ActiveDirectory -> 3.13.9
Microsoft.Net.Compilers -> 2.2.0
Xunit -> 2.2.0
2017-06-22 23:29:26 -04:00
J Wyman ce5c309200 Update version numbers
git-askpass: v1.10.0 -> v1.11.0
git-credential-manager: v1.10.0 -> v1.11.0
bitbucketauthentication: v1.0.0 -> v1.0.1
2017-06-15 17:30:04 -04:00
J Wyman 195b4c8713 Improve assembly information.
Use `Program.AssemblyDescription` in AssemblyInfo.cs.
2017-06-15 16:38:40 -04:00
J Wyman aa0c3f0591 Refactor `Program` to not be static.
The `Program` type being static makes testing rather difficult, therefore removing the "static-ness" should make testing easier. This change keeps the function-delegate indirection while removing the static nature of the type.
2017-06-15 16:24:50 -04:00
J Wyman 5db8ba2640 Supress low-priority analyzer warnings. 2017-06-15 14:59:37 -04:00
J Wyman 6cd4af2a17 Refactor `Program`, add method indirection.
The `Program` class was basically un-testable due to the static nature and number of cross connected functions. The first step in unwinding this mess is to add a layer of delegate indirection, which tests could then intercept as necissary.
2017-06-15 14:59:13 -04:00
J Wyman 9d057f20cf Resolve analyzer reported issues. 2017-06-14 14:42:30 -04:00
J Wyman 2f31a765d7 Merge pull request #423 from whoisj/fix-ntlm-detect
Fix host NTLM detection.
2017-05-04 18:04:09 -04:00
J Wyman a1679c51b9 Fix host NTLM detection.
Use seperate `HttpClientHandler` instances when querying hosts for NTLM support in parallel. Otherwise the queries need to be done in serial.

Minor refactoring of `Program` of Cli-CredentialHelper, Cli-Askpass, and Cli-Shared.
2017-05-04 18:00:23 -04:00
J Wyman fbcbb9227d Make askpass work when username is known.
Make it so that Cli-Askpass functions correctly when the username is known. This includes keeping the username portion of the `TargetUri.ActualUri`.

Make Cli-Askpass try harder to parse credentials from queries passed to it from Git.

Make Cli-Askpass correctly captured basic credentials, for readback at a later time.

Make basic credential modal prompt only ask for password when the username is already known.
2017-05-04 16:36:53 -04:00
J Wyman 8084b44df5 Update binary version numbers.
BitBucket.Authentication -> 1.0.0.

Cli-Askpass -> 1.10.0.

Cli-CredentialHelper -> 1.10.0.

GitHub.Authentication -> 1.3.0.
2017-04-25 11:18:55 -04:00
J Wyman ad48147be4 Ran CodeMaid on the entire solution. 2017-04-21 11:55:37 -04:00
Mike Minns 90b8aedf1f Implement explicit support for authentication of repositories hosted at "bitbucket.org". It provides a Bitbucket branded UI with support for Basic Authentication credentials and those users who have activated 2FA on their account to continue to use HTTPS Git URLs.
2FA support is provided via Bitbucket's OAuth implementation, users are able to run the OAuth authorization process and the GCM can retrieve and store OAuth tokens and return them to Git in a format acceptable to Bitbucket.

Bitbucket authentication support is implemented as a peer of the existing Microsoft VSTS and GitHub implementations, in the Bitbucket.Authentication project. The implementation, as far as possible, mirrors that of the GitHub support. In an attempt to lay the ground work of support for other hosts in the future some shared GUI concepts have been pulled out into the GUI-Shared shared code project. However only the new Bitbucket implementation makes use of them, the GitHub implementation has NOT been refactored to use these shared components at this time.

Further information can be found in the BITBUCKET_README.md file within the repository.
2017-04-13 08:02:49 +01:00
XhmikosR a8d23d924f Ran Codemaid. 2017-04-09 10:51:48 +03:00
J Wyman 50211f206f Update version to 1.9.1. 2017-04-04 12:45:11 -04:00
J Wyman 646f61386e Add tests for `LoadOperationArguments` and `TryReadBoolean`.
To make testing even possible, `OperationArguments` and `Git.Configuration` types needed to made abstract and re-factored.
2017-03-27 00:35:48 -04:00
J Wyman e5c3ef518f Merge pull request #394 from XhmikosR/codemaid
Ran Codemaid.
2017-03-22 10:22:07 -04:00
XhmikosR 433b2d4059 Ran Codemaid. 2017-03-22 13:50:41 +02:00
XhmikosR 677baa683c Losslessly compress PNG files.
Before: 43,8 KB (44.899 bytes)
After:  8,50 KB (8.709 bytes)
2017-03-22 13:49:58 +02:00
J Wyman ∞ 6a974cb82b Clean up analyzer warnings. 2017-03-08 16:38:07 -05:00
J Wyman 529b9fcd2c Add doc-build to ask-pass.
Added document building / generation phase to 'Cli-Askpass' project as last step of the post-build phase.
2017-03-06 10:23:03 -05:00
J Wyman ∞ a53791601a Add support for adding known ssh hosts 2017-03-06 10:00:16 -05:00
J Wyman ∞ 47c11943be Refactor VSTS specific code to separate library.
Refactor the project so that all code specific to Visual Studio Team Services lives in a new "Microsoft.Vsts.Authentication" library. This leaves all of the "common" code behind in "Microsoft.Alm.Authentication" library.

The long-term goal here is to make VSTS, GitHub, and Atlassian code share as much surface area as possible, thus reducing repetition and bugs.

Required a number of changes in build, deployment, and packaging steps; specifically with regards to the new "Microsoft.Vsts.Authentication.dll" binary which is now necessary to authenticate with TFS and VSTS hosted repositories.
2017-03-02 15:58:21 -05:00
XhmikosR 55f9a5b02e Remove unneeded switches from deployment scripts. 2017-01-17 08:09:48 +02:00
XhmikosR 63642f8c63 Ran Codemaid. 2017-01-05 23:44:49 +02:00
J Wyman 0bc9b5c879 Merge pull request #350 from XhmikosR/analysis-all-rules
Enable code analysis all rules.
2017-01-05 14:12:18 -05:00
J Wyman 9f7a69c0e6 Resolve code analysis warnings. 2017-01-05 13:19:51 -05:00
XhmikosR de46a40acc Enable code analysis all rules.
Disable the spelling ones.
2017-01-05 09:53:18 +02:00
XhmikosR 0df713871c Remove bogus space. 2017-01-04 20:26:54 +02:00
J Wyman cd231cc78b Update version numbers and copyright years.
Update all copyright years from 2016 to 2017, just a janitorial thing.

Update version for askpass and credential-manager to 1.9.0, MS.Alm.Authentication to 3.3.0, and GH.Authentication to 1.1.1 .
2017-01-04 12:16:42 -05:00
J Wyman fd3f503752 Askpass: search only credential part of url. 2017-01-04 11:54:19 -05:00
XhmikosR 78aee1880e Rename LICENSE.TXT to LICENSE.txt. 2016-12-26 11:00:51 +02:00
J Wyman 24a5bda46e Fix yet another askpass bug. 2016-11-02 10:28:11 -04:00
J Wyman bad56bacff Rev GCM and Askpass version number to 1.8.0. 2016-10-26 12:32:11 -04:00
J Wyman c29d0266bc Add console printing abstraction.
Basically, all output from the GCM should go to stderr, this adds indirection to insure it does. Additionally, ReadKey doesn't block waiting for input from the user if there's no TTY present.
2016-10-26 11:57:14 -04:00
J Wyman 5ac5a9ea72 Merge pull request #311 from whoisj/update-version
Update version to 1.7.1.
2016-10-20 16:58:53 -04:00
J Wyman 3fe51a6757 Update version to 1.7.1. 2016-10-20 15:20:15 -04:00
J Wyman bb36f67565 Fix stupid bugs in askpass. 2016-10-20 15:17:19 -04:00
J Wyman 145037b9a9 Make askpass actually work for SSH. 2016-09-26 16:05:34 -04:00
J Wyman b5fbfe6474 Help now links to HTML docs.
Instead of printing help content to the console, we now open HTML content like Git does.
2016-09-22 12:41:55 -04:00
J Wyman dc2eb10757 Removed unused 'CommonShared' project. 2016-09-22 12:41:54 -04:00
J Wyman f1cdcca1eb Updated to v1.7.0 + Git 2.10.0 2016-09-22 12:35:41 -04:00
J Wyman ae4f8d6862 Update all trace calls to standard format.
Make Microsoft.Alm.Git a dependency of Micorosoft.Alm.Authentication and GitHub.Authentication.

Normalize the end of line for writelog.

Use FileMode.Append when opening log files.

add version information to start up routine.

All tracing should be done using 24h format.
2016-09-20 18:40:23 -04:00
J Wyman 0e16fae259 Massive trace string cleanup 2016-09-20 18:39:38 -04:00
J Wyman e3660d6aba Added GIT_TRACE like support.
Created a custom `Trace` class which handles all tracing throughout the assembly.

The new trace class uses formatting similar enough to Git to be useful when interleaved with GIT_TRACE values.

Now support tracing to a specified file, console, or the old credential.writelog location.

Added a new CommonShared project for future shared, non-library code.
2016-09-20 18:39:19 -04:00
J Wyman c122726fc2 Increment minor version numbers. 2016-08-22 14:22:47 -04:00
J Wyman 7c66026f57 Make PasswordBoxHintAdorner not COM visible. 2016-08-22 13:37:17 -04:00