Skip to content

AzureDevOpsDsc: Change PAT type to PSCredential #16

@SphenicPaul

Description

@SphenicPaul

Logging this issue off the back of the initial PR (#7) so it's logged and not missed...

Details of the scenario you tried and the problem that is occurring

String data type isn't a suitable/ideal type to hold/pass Personal Access Tokens.

Suggested solution to the issue

Update $Pat variables/parameters to use a PSCredential type, although unclear of most suitable option at present:

  • i) Have every Resource take a $Pat and $ApiUri parameter (where $Pat is updated to be a PSCredential type)
  • ii) Define a new Connection class which holds ApiUri and PAT information, and which is passed between functions
  • iii) Use the existing Connection class (as part of current, Azure DevOps, client libraries) ... less preferred perhaps as it couples this module with that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backlog - Mid TermBacklog - Mid TermenhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.high priorityThe issue or PR should be resolved first. It is of less priority than the label 'Blocking Release'.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions