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

1243 Коммитов

Автор SHA1 Сообщение Дата
J Wyman 30c208e92a
Merge pull request #667 from whoisj/clean-warnings
Clean warnings
2018-06-27 13:11:43 -04:00
J Wyman ∞ 41a0de6f11 build: cleanup warnings
Disable CA2205 warning about duplicating NetFx methods via P/Invoke.
2018-06-27 12:55:37 -04:00
J Wyman ∞ 371e4a778c vsts: clean up warnings
Avoid having a public signature with a default value parameter by add ing a `GeneratePersonalAccessToken` overload without `tokenDuration` parameter, and removing default value on origin method signature.
2018-06-27 12:55:37 -04:00
J Wyman ∞ 7119df3ff1 alm: clean up warnings
- [x] Make `Git.Utilities.EnumerateParentProcesses` static.
  - [x] Supress "DefaultParametersShouldNotBeUsed" warnings on `TargetUri`.
2018-06-27 12:55:37 -04:00
J Wyman ∞ daebd429b3 bitbucket: clean up warnings
Remove unnecissary `async` keyword on method.
2018-06-27 12:55:37 -04:00
J Wyman ∞ a0c4f1334c alm: refactor method to reduce complexity
Refactor the `Where.FindApp()` method to reduce complexity.
  - [x] Break the method logic into five seperate parts.
  - [x] Use local functions to avoid polluting the `Where` type with single use functions.
2018-06-27 12:55:37 -04:00
J Wyman afe2f197cc
Merge pull request #666 from whoisj/better-vsts-detection
vsts: detect VSTS better
2018-06-27 10:02:40 -04:00
J Wyman ∞ 5af2d5b451 vsts: detect VSTS better
When detecting if an authority is VSTS
  - Use the actual URL when it is available
  - Query the server and check for Vsts specific headers
  - Use the Www-Authenticate header when available to determine the resource tenant.
2018-06-27 00:25:52 -04:00
J Wyman 07543dda6d
Merge pull request #663 from whoisj/better-tfs-detection
Better NTLM Detection
2018-06-26 12:40:38 -04:00
J Wyman 0db46efb0a
Merge pull request #664 from XhmikosR/patch-1
Installer/Setup.iss: remove unused variable.
2018-06-26 12:40:27 -04:00
XhmikosR 0ba9fda732 Installer/Setup.iss: remove unused variable. 2018-06-26 12:22:24 +03:00
J Wyman ∞ 5b78bef796 alm: rely on actual-url, when possible, to determine auth options.
When attempting to determine which authentication options are available, use `TargetUri.ActualUri` when it is available because the actual URL is more likely to provide accurate options than the query URL (when they're different).
2018-06-25 17:11:45 -04:00
J Wyman ∞ 6fa4bf033c cli-shared: optionally read actual-url from input
Read the request's "actual URL" from the input stream. To enable easier development debugging when setting the `OperationArguments.GitRemoteHttpCommandLine` value without having to execute "git-remote-http(s)" prior to GCM being started.
2018-06-25 15:12:40 -04:00
J Wyman a08dd15035
Merge pull request #658 from whoisj/adopt-vsts-ci-yaml
Adopt YAML control VSTS CI.
2018-06-19 13:47:47 -04:00
J Wyman ∞ 83a221ccaa build: enable Installer build
Enable the Installer project build when configuration is set to release.
2018-06-19 13:39:08 -04:00
J Wyman ∞ d0449d218a build: add vsts-ci.yml control file.
Unbranched configuration can make life very difficult, therefore the more configuration that can be branched the easier out lives get? Not sure this is true.

Move the VSTS CI configuration from the CI system into the repository via the "vsts-ci.yml" file.
2018-06-19 13:39:08 -04:00
J Wyman 0bba7b38e4
Merge pull request #661 from XhmikosR/patch-1
Minor docs tweaks.
2018-06-17 13:46:59 -04:00
XhmikosR c1cf65d847 Minor docs tweaks. 2018-06-17 15:10:33 +03:00
J Wyman a673e9a885
Merge pull request #659 from kant/patch-3
Minor fixes on string #39
2018-06-11 09:51:27 -04:00
Darío Hereñú 3fb6d54fe1
Minor fixes on string #39
And paragraph #49
2018-06-09 11:29:50 -03:00
J Wyman f09ebdba40
Merge pull request #655 from whoisj/vsts/secret-storage
[series 2/2] Improve credential key generation for Azure hosted repositories.
2018-06-08 15:44:54 -04:00
J Wyman ∞ 56d1867488 shared: native code clean up.
Minor clean up and improvements to native type aliases and functions.
2018-06-08 15:32:15 -04:00
J Wyman ∞ 8b6bcfd4a5 alm: enable remote url sniffing on 32-bit Windows.
Due to struct size differences, the remote URL capture via command line sniffing failed.

Instead of relying on fixed size and offset value, the p/invoke layer should use the offset and size values which align with the bitness of the process.
2018-06-08 15:32:15 -04:00
J Wyman ∞ 19660c2398 build: update and correct version numbers.
- Bitbucket.Authentication: v2.0.0 -> v2.0.1
  - Microsoft.Alm.Authentication: v4.4.0 -> v.4.5.0
  - Vsts.Authentication: n/a -> 1.0.0
2018-06-08 15:32:15 -04:00
J Wyman ∞ 8723fd76c9 vsts: improve credential key generation.
Improve the credential key generation for VSTS account credentials. Update the pattern to use {host}/{organization} for the format when the repository is Azure hosted.
2018-06-08 15:32:15 -04:00
J Wyman 6c0efa61f4
Merge pull request #654 from whoisj/vsts/rename-types
[series 1/2] Rename and move VSTS types, files, and projects.
2018-06-08 15:23:05 -04:00
J Wyman ∞ 0c1349bd4f install: update package assembly list
Replace 'Microsoft.Vsts.Authentication.dll' with 'VisualStudioTeamServices.Authentication.dll' in `Installer` and 'Setup.iss'.
2018-06-08 15:08:04 -04:00
J Wyman ∞ b9a25dd85c vsts: combine duplicate / redundant types.
- Merge the `AzureAuthority` and `VstsAzureAuthority` into a single new `Authorty` type.
  - Merge `IAzureAuthority` and `IAuthority` into `IAuthority`.
2018-06-08 15:08:04 -04:00
J Wyman ∞ 8b6b013ea8 vsts: move VSTS files into new directories.
- Move VSTS files in accordance with the previous commit's type renaming: 'Microsoft.Vsts.Authentication/' -> 'VisualStudioTeamServices.Authentication/'.
  - Update solution and project files accordingly.
  - Rename 'Microsoft.Alm.Authentication.nuspec' -> 'VisualStudioTeamServices.Authentication.nuspec'.
2018-06-08 15:08:04 -04:00
J Wyman ∞ d813f5283c vsts: remove "Vsts" from type names.
Now that the namespace is correctly 'VisualStudioTeamServices', remove "Vsts" from all types names.

  - `VstsAadAuthentication` -> `AadAuthentication`
  - `VstsAdalTokenCache` -> `AdalTokenCache`
  - `BaseVstsAuthenitcation` -> `Authentication`
  - `IVstsAadAuthenitcation` -> `IAadAuthentication`
  - `IVstsAuthority` -> `IAuthority`
  - `IVstsMsaAuthentication` -> `IMsaAuthentication`
  - `VstsLocationServiceException` -> `LocationServiceException`
  - `VstsMsaAuthentication` -> `MsaAuthentication`
  - `VstsTokenScope` -> `TokenScope`
2018-06-08 15:08:04 -04:00
J Wyman ∞ 36c6be2324 vsts: change VSTS namespace.
Change the namespace of VSTS authentication types:

  - `Micorsoft.Alm.Authentication` -> `VisualStudioTeamServices.Authentication`
2018-06-08 15:08:04 -04:00
J Wyman dea7b5cb9e
Merge pull request #653 from mminns/issue/651
Issue/651
2018-06-07 13:38:44 -04:00
Mike Minns a21ec78592 issue-651 Added tests around InteractiveLogin to avoid additional errors. 2018-06-07 16:04:34 +01:00
J Wyman 2b480067ac
Merge pull request #652 from whoisj/fix-bitbucket
bitbucket: do not reject valid requests
2018-06-07 10:55:16 -04:00
J Wyman ∞ 2a0d04501a bitbucket: do not reject valid requests
`AuthenticationResultType.None` is a valid result type, do not reject requests which contain a result of none.

  - Minor code clean up.
2018-06-07 10:43:00 -04:00
Mike Minns 62eeebbf19 Issue-651 Basic fix and test to allow Bitbucket authentication to work again. 2018-06-07 13:21:30 +01:00
J Wyman 90e17ead0d
Merge pull request #645 from whoisj/fix-ghauth
github: conditionally append OTP header
2018-05-25 12:38:11 -04:00
J Wyman ∞ f7a726a5a3 github: conditionally append OTP header
Only append the "X-GitHub-OTP" header if there's a value to append with it. Including the header without a value appears cause github.com to emit 2FA SMS messages.
2018-05-25 12:31:09 -04:00
J Wyman 1420d21e02
Merge pull request #640 from whoisj/update-nuspec
vsts: re-enable nupkg generation
2018-05-18 14:58:18 -04:00
J Wyman ∞ 8f92d51965 vsts: re-enable nupkg generation
- Restore the create nupkg build target to 'Microsoft.Vsts.Authentication' project.
  - Update the 'Microsoft.Alm.Authentication.nuspec' to hard code author, copyright, and owner values.
2018-05-18 14:41:45 -04:00
J Wyman 0c1af463b3
Merge pull request #638 from whoisj/refactor-shared-project
[Series 2/2] shared: collate shared projects
2018-05-17 16:19:05 -04:00
J Wyman ∞ 9634ab0d30 shared: collate all shared projects
Group all of the shared projects under the same folder "Shared/", and update all referencing projects.

  - Move "Shared/" -> "Shared/Win32/"
  - Move "Cli/Shared/" -> "Shared/Cli/".
  - Move "Gui-Shared/" -> "Shared/Gui/".
  - Update project and solution files.
2018-05-17 16:11:59 -04:00
J Wyman 03c0fd4a76
Merge pull request #630 from whoisj/find-git
[Series 1/2] alm: read URL from git-remote-https process.
2018-05-17 16:09:31 -04:00
J Wyman ∞ a84955519b test: assert equality, not comparer results. 2018-05-17 13:44:16 -04:00
J Wyman ∞ a94ee8a774 alm: refactor complex method
Refactor the `Utilities.TryReadGitRemoteHttpDetails` method.
2018-05-17 13:44:16 -04:00
J Wyman ∞ 8bd2557579 cli-shared: read URL from git-remote-https process.
Add the ability to read the remote name and URL from the parent git-remote-http(s).exe process. The process must a parent of the current process.

Update `TargetUri` to accept a `commandUri` as part of its constructor; enabling the type to carry the URL read from the git-remote-http(s).exe process.

Add new `.CreateWith(...)` methods to `TargetUri` to more easily create new instances with only partial updates.
2018-05-17 13:44:16 -04:00
J Wyman d3dc8c1e6b
Merge pull request #636 from whoisj/fix-isvsts-check2
vsts: correct is-vsts check logic
2018-05-14 22:21:36 -04:00
J Wyman ∞ 64a3e59e0a vsts: correct is-vsts check logic
Actually check the for a host-name match when validting if a URI is a potential VSTS URL.

Additoinally, use the common conversion routine when it can be used instead of local implementations.
2018-05-14 17:30:13 -04:00
J Wyman 2c899acb5c
Merge pull request #633 from whoisj/create-v1.17
Update projects with v1.17.0
2018-05-14 17:04:18 -04:00
J Wyman ∞ 7df1fd5602 gpm: prepare v1.17.0
Update project version information:

  - cli-askpass: v1.16.0 -> v1.17.0
  - cli-manager: v1.16.0 -> v1.17.0
2018-05-14 16:23:59 -04:00