Set-EntraBetaApplicationProxyApplicationSingleSignOn

该 Set-EntraBetaApplicationProxyApplicationSingleSignOn cmdlet 允许为Microsoft Entra ID中为应用程序代理配置的应用程序设置和修改单一登录(SSO)设置。

语法

Default (默认值)

Set-EntraBetaApplicationProxyApplicationSingleSignOn

    -ApplicationId <String>
    -SingleSignOnMode <SingleSignOnModeEnum>
    [-KerberosInternalApplicationServicePrincipalName <String>]
    [-KerberosDelegatedLoginIdentity <KerberosSignOnMappingAttributeTypeEnum>]
    [<CommonParameters>]

说明

该 Set-EntraBetaApplicationProxyApplicationSingleSignOn cmdlet 允许为Microsoft Entra ID中为应用程序代理配置的应用程序设置和修改单一登录(SSO)设置。 这仅限于设置 No SSO、Kerberos 约束委派(对于使用集成Windows身份验证的应用程序),以及基于标头的 SSO。

示例

示例 1:分配应用程序以使用 Kerberos 约束委派,并指定所需的参数

Connect-Entra -Scopes 'Directory.ReadWrite.All'
$application = Get-EntraBetaApplication -Filter "DisplayName eq 'Contoso App Proxy'"
$params = @{
    ApplicationId                                   = $application .Id
    SingleSignOnMode                                = 'OnPremisesKerberos'
    KerberosInternalApplicationServicePrincipalName = 'https/www.adventure-works.com'
    KerberosDelegatedLoginIdentity                  = 'OnPremisesUserPrincipalName'
}
Set-EntraBetaApplicationProxyApplicationSingleSignOn @params

此示例将应用程序分配到使用 Kerberos 约束委派,并指定所需的参数。

  • -ApplicationId 参数指定应用程序 ID。
  • -SingleSignOnMode 参数指定 SSO 的类型。
  • -KerberosInternalApplicationServicePrincipalName 参数指定应用程序服务器的内部应用程序 ServicePrincipalName。
  • -KerberosDelegatedLoginIdentity 参数指定分配给此应用程序的连接器组 ID。

示例 2:从应用程序中删除 SSO

Connect-Entra -Scopes 'Directory.ReadWrite.All'
Set-EntraBetaApplicationProxyApplicationSingleSignOn -ApplicationId $application .Id -SingleSignOnMode None'

此示例演示如何从应用程序中删除 SSO。

  • -ApplicationId 参数指定应用程序 ID。
  • -SingleSignOnMode 参数指定 SSO 的类型。

参数

-ApplicationId

需要不同 SSO 设置的应用程序的唯一应用程序 ID。 可以使用命令找到 Get-EntraBetaApplication ObjectId。 还可以在 Microsoft 门户中导航到Microsoft Entra ID、企业应用程序、所有应用程序、选择应用程序、转到属性选项卡,然后使用该页上的 ObjectId。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False
别名:对象标识符 (ObjectId)

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-KerberosDelegatedLoginIdentity

连接器可以代表用户进行身份验证的标识。

参数属性

类型:KerberosSignOnMappingAttributeTypeEnum
默认值:None
接受的值:UserPrincipalName, OnPremisesUserPrincipalName, UserPrincipalUsername, OnPremisesUserPrincipalUsername, OnPremisesSAMAccountName
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-KerberosInternalApplicationServicePrincipalName

应用程序服务器的内部应用程序 SPN。 此 ServicePrincipalName(SPN)需要位于连接器可以向其提供委派凭据的服务列表中。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-SingleSignOnMode

选择希望应用程序使用的 SSO 类型。 对于更多选项,PowerShell 仅支持三个 SSO 设置,请使用 Microsoft 门户。

参数属性

类型:SingleSignOnModeEnum
默认值:None
接受的值:None, OnPremisesKerberos, HeaderBased
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。

输入

System.String

System.Nullable'1[[Microsoft.Open.MSGraph.Model.OnPremisesPublishingSingleSignOnObject+SingleSignOnModeEnum,Microsoft。Open.MS.GraphV10.Client, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]] System.Nullable'1[[Microsoft.Open.MSGraph.Model.OnPremisesPublishingKerberosSignOnSettingsObject+KerberosSignOnMappingAttributeTypeEnum, Microsoft。Open.MS.GraphV10.Client,Version=2.0.0.0,Culture=neutral,PublicKeyToken=null]]

输出

System.Object