Skip to content

Commit f2e9c78

Browse files
Merge pull request #267 from AzureAD/user/kyrader/flight-ado-commands
Prepare for Release 0.8.0
2 parents 46a530f + 09fbd11 commit f2e9c78

3 files changed

Lines changed: 19 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## Unreleased
7+
## [Unreleased]
8+
9+
## [0.8.0] - 2023-04-07
810
### Added
9-
- New `ado` commands
11+
- New `ado` sub-commands
1012
- `azureauth ado` : Prints the help for Azure Devops commands.
1113
- `azureauth ado pat` : Command for creating, and locally caching Azure Devops <abbr title="Personal Access Tokens">PAT</abbr>s.
1214
- `azureauth ado token` : Command for passing back a <abbr title="Personal Access Tokens">PAT</abbr> from an env var, or authenticating and returning an <abbr title="Azure Active Directory">AAD</abbr> access token.
1315

16+
### Removed
17+
- The root command `azureauth` no longer acquires AAD tokens. It prints the global help text. Use `azureauth aad` instead.
18+
1419
## [0.7.4] - 2023-04-05
1520
### Added
1621
- When the environment variable `AZUREAUTH_APPLICATION_INSIGHTS_INGESTION_TOKEN` is not configured,
@@ -139,7 +144,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
139144
### Added
140145
- Initial project release.
141146

142-
[Unreleased]: https://github.com/AzureAD/microsoft-authentication-cli/compare/0.7.4...HEAD
147+
[Unreleased]: https://github.com/AzureAD/microsoft-authentication-cli/compare/0.8.0...HEAD
148+
[0.8.0]: https://github.com/AzureAD/microsoft-authentication-cli/compare/0.7.4...0.8.0
143149
[0.7.4]: https://github.com/AzureAD/microsoft-authentication-cli/compare/0.7.3...0.7.4
144150
[0.7.3]: https://github.com/AzureAD/microsoft-authentication-cli/compare/0.7.2...0.7.3
145151
[0.7.2]: https://github.com/AzureAD/microsoft-authentication-cli/compare/0.7.1...0.7.2

src/AzureAuth/Commands/CommandAzureAuth.cs

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,27 @@
44
namespace Microsoft.Authentication.AzureAuth.Commands
55
{
66
using System.IO.Abstractions;
7-
87
using McMaster.Extensions.CommandLineUtils;
9-
108
using Microsoft.Extensions.Logging;
119
using Microsoft.Office.Lasso.Interfaces;
1210
using Microsoft.Office.Lasso.Telemetry;
1311

1412
/// <summary>
1513
/// The command main class parses commands and dispatches to the corresponding methods.
1614
/// </summary>
17-
[Command(Name = "azureauth", Description = "A CLI interface to MSAL (Microsoft Authentication Library)." +
18-
"\n\n⚠️ NOTICE: Use `azureauth aad [options]`.\n⚠️ The top-level azureauth command is deprecated and will print help text soon." +
19-
"\n\n\u001b[31m-- azureauth [options]\u001b[0m" +
20-
"\n\u001b[32m++ azureauth aad [options]\u001b[0m\n")]
15+
[Command(Name = "azureauth", Description = "A CLI interface to MSAL (Microsoft Authentication Library).")]
2116
[Subcommand(typeof(CommandAad))]
22-
//[Subcommand(typeof(CommandAdo))] // TODO: Enable Ado commands
17+
[Subcommand(typeof(CommandAdo))]
2318
[Subcommand(typeof(CommandInfo))]
24-
public class CommandAzureAuth : CommandAad
19+
public class CommandAzureAuth
2520
{
26-
#pragma warning disable SA1648 // inheritdoc should be used with inheriting class
27-
/// <inheritdoc/>
28-
public CommandAzureAuth(CommandExecuteEventData eventData, ITelemetryService telemetryService, ILogger<CommandAzureAuth> logger, IFileSystem fileSystem, IEnv env)
29-
#pragma warning restore SA1648 // inheritdoc should be used with inheriting class
30-
: base(eventData, telemetryService, logger, fileSystem, env)
21+
/// <summary> Execute the command. </summary>
22+
/// <param name="app">The current command instance.</param>
23+
/// <returns>0.</returns>
24+
public int OnExecute(CommandLineApplication app)
3125
{
26+
app.ShowHelp();
27+
return 0;
3228
}
3329
}
3430
}

src/MSALWrapper/AuthParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.Authentication.MSALWrapper
77
using System.Collections.Generic;
88

99
/// <summary>
10-
/// Core authentication parameters needed
10+
/// Core authentication parameters needed
1111
/// </summary>
1212
public record AuthParameters
1313
{

0 commit comments

Comments
 (0)