Skip to content

Consider adding SecureString support for basic auth credentials #2505

Closed
@gmarz

Description

@gmarz

Should/do we want to add support for passing basic auth credentials using SecureString?

This has come up in the past and now recently in https://discuss.elastic.co/t/nest-client-with-basicauthentication-and-securestring/69565

It seems like it's feasible- quickly taking a look, we would need to use NetworkCredential, which both HttpClient and HttpWebRequest support, rather than manually adding to the request headers as we do now.

The tricky bit would be supporting both string and SecureString, as I'd imagine we'd want to do, and also backporting without breaking backwards compatibility.

Thoughts @Mpdreamz @russcam ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions