我正在做一个客户项目,我们正在验证客户的IDP解决方案是否有问题,或者这是一个B2C配置项。在验证中,我将Azure AD (不同订阅)连接到另一个配置上的Azure B2C实例。处理过程进行得很顺利,除了最后我们得到的对象引用没有被设置为对象的实例。
Azure AD正在初始化B2C的SSO (IDP发起会话),以模仿客户的解决方案将会做的事情。
我一直在尝试追踪对象引用是什么,但没有任何运气。任何帮助都是非常感谢的。
37
{
"Kind": "HandlerResult",
"Content": {
"Result": true,
"RecorderRecord": {
"Values": [
{
"Key": "EnabledForUserJourneysTrue",
"Value": {
"Values": [
{
"Key": "CurrentStep",
"Value": 5
},
{
"Key": "TechnicalProfileEnabled",
"Value": {
"EnabledRule": "Always",
"EnabledResult": true,
"TechnicalProfile": "SAMLAssert"
}
}
]
}
}
]
},
"PredicateResult": "True"
}
}
38
{
"Kind": "Predicate",
"Content": "Web.TPEngine.StateMachineHandlers.IsSendClaimsProtocolAnApiHandler"
}
39
{
"Kind": "HandlerResult",
"Content": {
"Result": true,
"PredicateResult": "False"
}
}
40
{
"Kind": "Predicate",
"Content": "Web.TPEngine.StateMachineHandlers.IsPresentationTokenGeneratedHandler"
}
41
{
"Kind": "HandlerResult",
"Content": {
"Result": true,
"PredicateResult": "False"
}
}
42
{
"Kind": "Action",
"Content": "Web.TPEngine.StateMachineHandlers.PresentationTokenGenerationHandler"
}
43
{
"Kind": "FatalException",
"Content": {
"Time": "10:04 PM",
"Exception": {
"Kind": "Handled",
"HResult": "80004003",
"Message": "Object reference not set to an instance of an object.",
"Data": {}
}
}
} 发布于 2020-11-13 12:19:13
我在合作伙伴应用程序和我们的Azure B2C之间通过SP启动的自定义策略设置收到了同样的错误,并能够解决它。对于不熟悉自定义策略故障排除的任何人,您可以在App Insights中阅读这些跟踪日志。
服务提供者的元数据文件包含一个AssertionConsumerService元素,如下所示
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="[SP login response endpoint]"/> 通过修改此元素以包含“索引”和"isDefault",错误消失了:
<AssertionConsumerService index="0" isDefault="true" Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="[SP login response endpoint]"/>我从Microsoft's SAML test app metadata中获取了这些属性。
https://stackoverflow.com/questions/59655028
复制相似问题