Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use PasswordString object #3162

Merged
merged 3 commits into from
Sep 21, 2023
Merged

use PasswordString object #3162

merged 3 commits into from
Sep 21, 2023

Conversation

colombod
Copy link
Member

@colombod colombod commented Sep 5, 2023

using PasswordString object in GetPAsswordGesture to prevent printing password values in clear

image

@colombod colombod requested a review from jonsequitur September 5, 2023 15:23
@colombod colombod added the Area-Formatting Data and object formatting as HTML and plaintext label Sep 5, 2023
@colombod colombod linked an issue Sep 5, 2023 that may be closed by this pull request
@@ -1,8 +1,13 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.DotNet.Interactive.Formatting;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed


namespace Microsoft.DotNet.Interactive;

internal class PasswordStringFormatterSource : ITypeFormatterSource
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems more complex than needed. A custom ToString should work fine.


namespace Microsoft.DotNet.Interactive;

internal class PasswordStringFormatterSource : ITypeFormatterSource
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed

@colombod colombod force-pushed the password_strings branch 7 times, most recently from e1ffac3 to b5ddd57 Compare September 21, 2023 02:22
@colombod colombod marked this pull request as ready for review September 21, 2023 11:08
align api for poweshell

update test for new formatting

simplify pr
check input Produced
@colombod colombod enabled auto-merge (rebase) September 21, 2023 21:27
@colombod colombod merged commit c753f14 into dotnet:main Sep 21, 2023
@colombod colombod deleted the password_strings branch September 25, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Formatting Data and object formatting as HTML and plaintext
Projects
None yet
Development

Successfully merging this pull request may close these issues.

was not expecting to see password content in variable explorer
3 participants