【发布时间】:2013-04-29 19:18:31
【问题描述】:
我们有一个规则可以向我们的依赖第三方之一发布与以下内容完全匹配的属性(显然我做了一些更改):
<Attribute Name="http://example.com/#Something" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">
<AttributeValue xsi:type="xsd:string">http://example.com</AttributeValue>
</Attribute>
我在 Claim Rule language 中看不到任何可以让我进行上述操作的内容 - 获取 Attribute Name 部分很容易,获取 AttributeValue 的值很容易,但添加 NameFormat 和似乎无法获得AttributeValue 的类型。
例如,这个:
=> issue(Type = "http://example.com/#Something",
Value = "http://example.com",
ValueType = "string");
可以带我们到这里:
<Attribute Name="http://example.com/#Something">
<AttributeValue a:type="tn:string" xmlns:tn=" http://www.w3.org/2001/XMLSchema" xmlns:a="http://www.w3.org/2001/XMLSchema-instance">http://something.com</AttributeValue>
</Attribute>
我们还尝试使用http://www.w3.org/2001/XMLSchema#string 替换ValueType,结果非常相似。我没有看到任何可以添加NameFormat 的内容,而且添加到AttributeValue 的信息肯定比我们需要的要多得多。
有没有办法只发出持续索赔?这些值没有任何变化;我希望能够将 XML 放到某个地方并将其集成到整个 SAML 消息中。
【问题讨论】: