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

SecureString is not boud as ArgumentType #1210

Closed
lennybacon opened this issue Feb 18, 2021 · 2 comments
Closed

SecureString is not boud as ArgumentType #1210

lennybacon opened this issue Feb 18, 2021 · 2 comments

Comments

@lennybacon
Copy link

It would be great to have the ability to use SecureString as argument type.

      var argument = new Argument("password") {
        Description = "The user name for basic authentication.",
        ArgumentType = typeof(SecureString),
        Arity = ArgumentArity.ZeroOrOne
      };
@jonsequitur
Copy link
Contributor

SecureString should be avoided: https://docs.microsoft.com/en-us/dotnet/api/system.security.securestring?view=net-5.0#remarks

It's on the path to obsoletion (dotnet/designs#147), so we shouldn't add support for it here.

@lennybacon
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants