# Discourse SAML 插件 - 如何映射到“网站”配置文件字段？

**URL:** https://meta.discourse.org/t/discourse-saml-plugin-how-do-i-map-to-the-web-site-profile-field/279948
**Category:** SSO
**Tags:** saml
**Created:** [2023年九月25日 01:25 UTC](https://meta.discourse.org/t/discourse-saml-plugin-how-do-i-map-to-the-web-site-profile-field/279948 "2023-09-25T01:25:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jeff\_Gilmore](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jeff_gilmore/32/211284_2.png) [@Jeff\_Gilmore](https://meta.discourse.org/u/Jeff_Gilmore)
#### Post date: [2023年九月25日 01:25 UTC](https://meta.discourse.org/t/discourse-saml-plugin-how-do-i-map-to-the-web-site-profile-field/279948/1 "2023-09-25T01:25:49Z")

</div>

我正在使用 Discourse SAML 插件，但似乎无法将其映射到内置的个人资料字段“Location”。

我的身份提供者正在发送它：

```plaintext
            <saml:Attribute Name="website"
                            NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
                            >
                <saml:AttributeValue>http:\/\/PROFILE_WEBSITE.com<\/saml:AttributeValue>
            </saml:Attribute>

```

并且我在 Discourse SAML 插件的“SAML 属性声明”中有一个设置，用于将此传入字段映射到（希望是）Discourse 标准字段：

website:website

但它没有填充。我尝试将其引用为 website、web-site、web\_site，但似乎没有一个匹配。

有人知道引用此标准字段的正确方法吗？

谢谢
