配置 AD FS 标识符,使其与 AD FS 令牌颁发者匹配



我脑子里全是放屁,我觉得我的眼睛好像要从脑海中蹦出来,诊断 ADFS。我正在尝试设置 ADFS 标识符,以便它与令牌颁发者匹配。如果我在PowerShell中Get-AdfsProperties它运行良好。当我想设置-Identifier以匹配令牌颁发者时,问题就来了。它给出了一个奇怪的错误。下面是我的PowerShell脚本和结果。

PS C:Windowssystem32>$adfsProperties = Get-AdfsPropertiesPS C:Windowssystem32>Set-AdfsProperties -Identifier $adfsProperties.IdTokenIssuerSet-AdfsProperties : Cannot validate the argument on parameter 'Identifier'. The argument is null.Provide a valid value for the argument, then try running the command again.At line: 1 cahr: 32+Set-AdfsProperties -Identifier $adfsProperties.IdTokenIssuer+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo :InvalidData: (:) [Set-AdfsProperties], ParameterBindingException+FullyQualifiedErrorId :PositionalParameterNotFound, Microsoft.IdentityServer.Management.COmmands.SetServicePropertiesCommand

请帮忙!!

PS C:\Users\administrator.XXXXXXXX> Set-AdfsProperties -IdTokenIssuer https://adfs.XXXXXXXXX.nl/adfs

修改 ID 令牌颁发者将使以前颁发的 ID 令牌和以前配置的信任无效。 此外,OpenID Connect Discovery 文档将从以下新位置提供: '/adfs/.well-known/openid-configuration'.确保已更新所有客户端、本机应用程序和服务器 进行此更改之前的应用程序。 继续此操作? [Y] 是 [否] 否 [S] 暂停 [?]帮助(默认值为"Y"(:Y 警告:PS0038:此操作需要重新启动 AD FS Windows 服务。如果已部署联合服务器 服务器场中,在服务器场中的每台服务器上重新启动该服务。

最新更新