Skip to content

Device Flow authentication when using PAT #16

@hintbw

Description

@hintbw

I assumed that when setting up the environment variable with my PAT in it, that no authentication would be required (it would just use the PAT). Every time I try to register the repository through the instructions though, I get the following message:

PS C:\WINDOWS\system32> Register-AzureArtifactsPSRepository -FeedUrl $repository -Repository "feedname"
[Minimal] [CredentialProvider]DeviceFlow: https://pkgs.dev.azure.com/orgname/_packaging/feedname/nuget/v2
[Minimal] [CredentialProvider]To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code A9TL6U3EZ to authenticate.

I can go ahead with that, but the instructions don't mention anything about this flow. I'm also wondering if it is the necessary new authentication (which is admittedly strange considering I have a valid PAT in a user environment variable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions