ScubaManDan
ScubaManDan

Reputation: 839

Using a local Artifactory PowerShell gallery with PowershellGet and Azure AD SAML authentication

We currently have JFrog's Artifcatory as our repository tool of choice, with single-sign on using SAML and Azure Active Directory.

I have now also created a local AF repository for our PowerShell modules. This all works when I use an internal AF user, it works. To install a module I run something like:

$cred = Get-Credential #Your credentials for access to Artifactory
Install-Module MyModule -Repository "MyRepo" -Credential $cred

However, if I pass in credentials for my Azure AD user, I get

WARNING: Unable to resolve package source 'https://......'.

Which is not the "error" I was expecting but yeah, it'd need a token to proceed, not a regular credential.

Is there any way to be able to use PowerShellGet commands such as Install-Module with SAML authentication?

Upvotes: 0

Views: 1846

Answers (1)

Adi Vizgan
Adi Vizgan

Reputation: 299

This is probably a permission issue. You can verify that the user you are trying to use have the proper permissions to access this repository in Artifactory. If the user does have permissions, can you reproduce this and attach the logs from the "artifactory.log"? This can help diagnose the issue.

Upvotes: 0

Related Questions