Skip to content

Commit f5bd579

Browse files
authored
Merge pull request #654 from GitCredentialManager/bring-oauth-into-the-light
Make Azure Repos OAuth non-experimental
2 parents faa0785 + 3a96030 commit f5bd579

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ See detailed information [here](https://aka.ms/gcm/httpproxy).
239239
- [Credential stores](docs/credstores.md)
240240
- [Architectural overview](docs/architecture.md)
241241
- [Host provider specification](docs/hostprovider.md)
242+
- [Azure Repos OAuth tokens](docs/azrepos-users-and-tokens.md)
242243

243244
## Experimental Features
244245

245246
- [Windows broker (experimental)](docs/windows-broker.md)
246-
- [Azure Repos OAuth tokens (experimental)](docs/azrepos-users-and-tokens.md)
247247

248248
## Contributing
249249

docs/azrepos-users-and-tokens.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
The Azure Repos host provider supports creating multiple types of credential:
66

77
- Azure DevOps personal access tokens
8-
- Microsoft identity OAuth tokens (experimental)
8+
- Microsoft identity OAuth tokens
99

1010
To select which type of credential the Azure Repos host provider will create
11-
and use, you can set the [`credential.azreposCredentialType`](configuration.md#credentialazreposcredentialtype-experimental)
12-
configuration entry (or [`GCM_AZREPOS_CREDENTIALTYPE`](environment.md#GCM_AZREPOS_CREDENTIALTYPE-experimental)
11+
and use, you can set the [`credential.azreposCredentialType`](configuration.md#credentialazreposcredentialtype)
12+
configuration entry (or [`GCM_AZREPOS_CREDENTIALTYPE`](environment.md#GCM_AZREPOS_CREDENTIALTYPE)
1313
environment variable).
1414

1515
### Azure DevOps personal access tokens
@@ -24,7 +24,7 @@ PATs have a limited lifetime and new tokens must be created once they expire. In
2424
Git Credential Manager, when a PAT expired (or was manually revoked) this
2525
resulted in a new authentication prompt.
2626

27-
### Microsoft identity OAuth tokens (experimental)
27+
### Microsoft identity OAuth tokens
2828

2929
"Microsoft identity OAuth token" is the generic term for OAuth-based access
3030
tokens issued by Azure Active Directory for either Work and School Accounts

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ Credential: "git:https://[email protected]/example/myrepo" (user = bob)
508508

509509
---
510510

511-
### credential.azreposCredentialType _(experimental)_
511+
### credential.azreposCredentialType
512512

513513
Specify the type of credential the Azure Repos host provider should return.
514514

@@ -527,4 +527,4 @@ More information about Azure Access tokens can be found [here](azrepos-azuretoke
527527
git config --global credential.azreposCredentialType oauth
528528
```
529529

530-
**Also see: [GCM_AZREPOS_CREDENTIALTYPE](environment.md#GCM_AZREPOS_CREDENTIALTYPE-experimental)**
530+
**Also see: [GCM_AZREPOS_CREDENTIALTYPE](environment.md#GCM_AZREPOS_CREDENTIALTYPE)**

docs/environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ export GCM_MSAUTH_USEBROKER="false"
670670

671671
---
672672

673-
### GCM_AZREPOS_CREDENTIALTYPE _(experimental)_
673+
### GCM_AZREPOS_CREDENTIALTYPE
674674

675675
Specify the type of credential the Azure Repos host provider should return.
676676

@@ -695,4 +695,4 @@ SET GCM_AZREPOS_CREDENTIALTYPE="oauth"
695695
export GCM_AZREPOS_CREDENTIALTYPE="oauth"
696696
```
697697

698-
**Also see: [credential.azreposCredentialType](configuration.md#azreposcredentialtype-experimental)**
698+
**Also see: [credential.azreposCredentialType](configuration.md#azreposcredentialtype)**

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Set your user-level Git configuration (`~/.gitconfig`) to use GCM. If you pass
3131
`--system` to these commands, they act on the system-level Git configuration
3232
(`/etc/gitconfig`) instead.
3333
34-
### azure-repos (experimental)
34+
### azure-repos
3535
3636
Interact with the Azure Repos host provider to bind/unbind user accounts to Azure DevOps
3737
organizations or specific remote URLs, and manage the authentication authority cache.

src/shared/Microsoft.AzureRepos/AzureReposHostProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ private static string GetAccountNameForCredentialQuery(InputArguments input)
389389
/// <returns>True if Personal Access Tokens should be used, false otherwise.</returns>
390390
private bool UsePersonalAccessTokens()
391391
{
392-
// Default to using PATs whilst the Azure AT functionality is being tested
392+
// Default to using PATs
393393
const bool defaultValue = true;
394394

395395
if (_context.Settings.TryGetSetting(
@@ -410,7 +410,7 @@ private bool UsePersonalAccessTokens()
410410

411411
default:
412412
_context.Streams.Error.WriteLine(
413-
$"warning: unknown Azure Repos credential type '{valueStr}' - using default option");
413+
$"warning: unknown Azure Repos credential type '{valueStr}' - using PATs");
414414
return defaultValue;
415415
}
416416
}

0 commit comments

Comments
 (0)