简体   繁体   English

通过PowershellGet和Azure AD SAML身份验证使用本地Artifactory PowerShell画廊

[英]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. 当前,我们选择JFrog的Artifcatory作为我们的存储库工具,并使用SAML和Azure Active Directory进行单点登录。

I have now also created a local AF repository for our PowerShell modules. 现在,我还为PowerShell模块创建了本地AF存储库。 This all works when I use an internal AF user, it works. 当我使用内部AF用户时,所有这些都可以使用。 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 但是,如果我为我的Azure AD用户传递凭据,则会得到

WARNING: Unable to resolve package source 'https://......'. 警告:无法解析包源“ 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? 有什么方法可以使用带有SAML身份验证的PowerShellGet命令(例如Install-Module)?

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. 您可以验证您尝试使用的用户是否具有在Artifactory中访问此存储库的适当权限。 If the user does have permissions, can you reproduce this and attach the logs from the "artifactory.log"? 如果用户确实具有权限,则可以重现该权限并附加“ artifactory.log”中的日志吗? This can help diagnose the issue. 这可以帮助诊断问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 可以使用 PowershellGet 从本地目录或 HTTP 服务器提供的 zip 安装 PowerShell 模块吗? - Can a PowerShell module be installed using PowershellGet from a local dir or a zip served by HTTP server? 如何使用 Graph API 或 Powershell 在 Azure AD 中使用 SAML SSO 创建新的企业应用程序 - How to Create a new Enterprise Application with SAML SSO in Azure AD using Graph API or Powershell 通过 Powershell 的 Azure AD 身份验证返回 null - Azure AD authentication via Powershell returns null 使用Powershell获取Azure AD令牌(jwt) - Using Powershell to get Azure AD Token (jwt) 作用于本地 AD 和 Azure 对象的 PowerShell 脚本 - PowerShell scripts that acts on both local AD and Azure objects Azure 广告 - OSX 上的 Powershell - Azure AD - Powershell on OSX 使用Azure App Service中的Powershell命令连接到Azure AD - Connect to Azure AD using Powershell commands from Azure App Service Azure 订阅:在 PowerShell 上使用证书或 AAD 身份验证? - Azure Subscription: using Certificate or AAD authentication on PowerShell? Artifactory通过PowerShell的身份验证还原nuget软件包 - Artifactory restore nuget packages with authentication from powershell Azure Runbook-使用Powershell脚本从图库创建 - Azure Runbook - Create from gallery using a Powershell script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM