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

1223 Коммитов

Автор SHA1 Сообщение Дата
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
J Wyman 31ecd3b73b
Merge pull request #634 from whoisj/refactor-structure
Refactor structure
2018-05-14 16:22:24 -04:00
J Wyman ∞ 1182ed9a10 build: update appveyor.yml
Update the "appveyor.yml" configuration to no longer rename, the previously misnamed, "Cli-Askpass" directory.
2018-05-14 16:13:41 -04:00
J Wyman ∞ eea4b0e8f9 sln: restructure the project layout
As the project has aged, its structure has not held up as well as one would hope over time. This changes the layout of the project to improve compactness, cleanliness, and understadability.

  - Move all 'Cli-*' projects under a common 'Cli/' folder.
  - Rename 'Cli-CredentialHelper' -> 'Cli/Manager'
  - Rename 'Cli-Askpass' -> 'Cli/Askpass'
  - Rename 'Cli-CredentialHelper.Test' -> 'Cli/Test'
  - Compact library and dependency layouts
    - Move 'Bitbucket.Authentication' -> 'Bitbucket.Authentication/Src'
    - Move 'Bitbucket.Authentication.Test' -> 'Bitbucket.Authentication/Test'
    - Move 'GitHub.Authentication' -> 'GitHub.Authentication/Src'
    - Move 'GitHub.Authentication.Test' -> 'GitHub.Authentication/Test'
2018-05-14 16:10:36 -04:00
J Wyman ∞ c03f2c9eb9 build: update project files.
Updates the project files to adopt to the folder renames.

  - Update "Cli-CredentialManager/Cli-CredentialHelper.csproj" -> "Cli-Manager.csproj"
  - Update "Cli-CredentialManager.Test/Cli-CredentialManager.Test.csproj" -> "Cli-Manager.Test/Cli-Manager.Test.csproj"
2018-05-14 16:10:34 -04:00
J Wyman ∞ 957a89a9d4 gpm: rename 'CredentialHelper' to 'Manager'
Rename the 'Cli-CredentialHelper' project to 'Cli-Manager':

  - Rename directory: "Cli-CredentialHelper" -> "Cli-Manager"
  - Rename project file: "Cli-CredentialHelper.csproj" -> "Cli-Manager.csproj"
  - Update solution file with changes.
2018-05-14 16:10:34 -04:00
J Wyman 7571620744
Merge pull request #632 from whoisj/fixup-vsts
Fix VSTS Authority Detection
2018-05-14 16:00:19 -04:00
J Wyman ∞ 61bedb3b81 cli: avoid detecting VSTS authority twice.
In the case when the VSTS authroity is already known and allocated, skip running the detection logic a second time.
2018-05-14 14:59:50 -04:00
J Wyman ∞ 10c1cf42ca vsts: detect authority correctly
Correctly detect the VSTS authority type.

  - Use "HEAD" HTTP/S requests, not "GET".
  - Expect a "HTTP401" response, not "HTTP200".
  - Handle lists of resource-tenant-identities.
    - Find the first non-common tentant-identity, but fallback to common if non-common aren't found.
2018-05-14 14:57:36 -04:00
J Wyman ∞ dfc58fd974 vsts: correct spelling error 2018-05-14 14:56:52 -04:00
J Wyman ∞ af1c6ee451 vsts: create methods from repeated code.
When code is repeated often, it's likely because it should have been in a common, utility method.

  - Create `GetTargetUrl` method to transform `TargetUri` values into Azure happy `string` values.
  - Create `IsVstsUrl` method to test for "visualstudio.com" and "azure.com" matches.
2018-05-14 14:54:16 -04:00
J Wyman 191b890008
Merge pull request #631 from whoisj/support-azure
Support azure
2018-05-11 14:06:22 -04:00
J Wyman 67ac1f2731 alm-test: remove invalid test
Remove the test-case for finding notepad.exe because on VSTS hosted build agents, the results are unexpected.
2018-05-11 13:58:54 -04:00
J Wyman 374223fb31 alm: rename `TargetUri` properties.
Rename a couple of `TargetUri` properties to more consistent.

  - `.TargetUriUsername` -> `.UserInfo`
  - `.TargetUriContainsUsername` -> `.ContainsUserInfo`
2018-05-11 13:27:21 -04:00
J Wyman c446129314 vsts: limit the userinfo -> path conversion to azure.com target-uri
Azure supports a URL format whereas the user-information (when only a username is present) is identical to the first path segment, This enables the GCM to have better handling of validation, PAT acquisition, etc so use it.
2018-05-11 13:23:13 -04:00
J Wyman 58829fb116
Merge pull request #629 from whoisj/sign-nupkg
build: only emit one nupkg and sign it.
2018-05-08 17:45:48 -04:00
J Wyman ∞ 7423c4434a build: delete pre-existing *.nupkg files.
To avoid including old Microsoft.Alm.Authentication.*.nupkg files in artifacts, delete any pre-existing *.nupkg files before attempting to build new nupkg files.
2018-05-08 16:38:16 -04:00
J Wyman ∞ 2d736a5a66 build: stop copying symbols to .\Symbols 2018-05-08 16:06:56 -04:00
J Wyman ∞ f5cf1cd578 build: only emit one nupkg and sign it.
- Add 'ProjectName' values to all projects that the "Installer.proj" has a dependency on.
  - Delete "Microsoft.Alm.Authentication.nuspec".
  - Rename "Microsoft.Alm.Authentication.symbols.nuspec" to "Microsoft.Alm.Authentication.nuspec".
  - Update the nupkg dependency to the correct 'Microsoft.IdentityModel.Clients.ActiveDirectory v3.19.4'.
  - Add 'Microsoft.Alm.Authentication.{version}.nupkg' to the list of files to be signed.
  - Add error checks to "Installer.proj" to ensure that the 'Condition' and 'Platform' properties are correctly set.
2018-05-04 11:02:33 -04:00
J Wyman 9c904b4802
Merge pull request #627 from whoisj/copy-symbols
Copy symbols
2018-05-03 15:46:17 -04:00
J Wyman ∞ 5f25121b1b build: copy symbols to .\Symbols folder.
Copy symbols into the .\Symbols folder for all non-Test projects. This will make symbol indexing and publishing easier.
2018-05-03 15:37:07 -04:00