Skip to content

Commit

Permalink
Merge branch 'release/2.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen committed Aug 3, 2023
2 parents 7e6b3e7 + a4f939f commit 25b7abc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.0] - 2023-08-02

### Added

- Added debug output for connect command.

## [2.0.1] - 2023-08-02

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion src/PsSqlClient/ConnectInstanceCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,11 @@ private void InitAuthenticationClass()
{
if (AcquireToken.IsPresent)
{
WriteVerbose("Token was acquired. Use token-based authentication.");
WriteVerbose("Token will be acquired. Use token-based authentication.");
_authenticationClass = AuthenticationClass.TokenAuthentication;

AccessToken = new AzureServiceTokenProvider().GetAccessTokenAsync(resource: Resource).Result;
WriteDebug($"AccessToken:${AccessToken}");
}
else if (!string.IsNullOrWhiteSpace(AccessToken))
{
Expand Down Expand Up @@ -532,6 +533,7 @@ private void OpenConnection(SqlConnection connection)
var connectStopwatch = Stopwatch.StartNew();
try
{
WriteDebug($"Open connection with connection string: ${ ConnectionString }");
connection.Open();
}
catch (SqlException ex)
Expand Down
Binary file modified src/PsSqlClient/PsSqlClient.psd1
Binary file not shown.

0 comments on commit 25b7abc

Please sign in to comment.