【问题标题】:wso2 SAML issuer field lengthwso2 SAML 颁发者字段长度
【发布时间】:2015-08-26 13:57:58
【问题描述】:

我正在尝试针对 WSO2 IS 注册 Wordpress SAML 2.0 插件。

两者通信,但调试时发现如下错误:

TID: [0] [IS] [2015-08-26 04:13:36,603] 警告 {org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor} - 发行人为“http://xxxx.example.com/wp-content/plugins/saml-20-single-sign-on/saml/www/module.php/saml/sp/metadata.php/1”的服务提供商 未注册。服务提供商应提前注册。 {org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor}

当我检查服务提供者的配置时,我发现 WSO2 UI 已将 Issuer 截断为:

http://xxxx.example.com/wp-content/plugins/saml-20-single-sign-on/saml/www/module.php/saml/sp/me

有什么办法可以延长'issuer'字段的允许长度,或者绕过UI直接编辑这个值?

【问题讨论】:

    标签: wso2 wso2is


    【解决方案1】:

    有一种解决方法可以解决颁发者名称的截断问题。而不是使用 UI 注册 SP。您可以使用 [1] 中所述的基于文件的方法注册 SP。

    我通过在 IS 5.1.0 包上使用此问题中给出的颁发者值 ('http://xxxx.example.com/wp-content/plugins/saml-20-single-sign-on/saml/www/module.php/saml/sp/metadata.php/1) 创建一个 SP 来测试。它工作正常。

    为了让 SAML 为给定的发行者名称工作

    1. 使用以下模板创建服务提供者配置, (根据需要更改值)

    <ServiceProvider>
            <Issuer>http://xxxx.example.com/wp-content/plugins/saml-20-single-sign-on/saml/www/module.php/saml/sp/metadata.php/1</Issuer>
            <AssertionConsumerServiceURLs>
              <AssertionConsumerServiceURL>http://localhost:8080/travelocity.com/home.jsp</AssertionConsumerServiceURL>
            </AssertionConsumerServiceURLs>
            <DefaultAssertionConsumerServiceURL>http://localhost:8080/travelocity.com/home.jsp</DefaultAssertionConsumerServiceURL>
            <EnableSingleLogout>true</EnableSingleLogout>
            <SLOResponseURL></SLOResponseURL>
            <SLORequestURL></SLORequestURL>
            <SAMLDefaultSigningAlgorithmURI>http://www.w3.org/2000/09/xmldsig#rsa-sha1</SAMLDefaultSigningAlgorithmURI>
            <SAMLDefaultDigestAlgorithmURI>http://www.w3.org/2000/09/xmldsig#sha1</SAMLDefaultDigestAlgorithmURI>
            <SignResponse>false</SignResponse>
            <ValidateSignatures>false</ValidateSignatures>
            <EncryptAssertion>false</EncryptAssertion>
            <CertAlias></CertAlias>
            <EnableAttributeProfile>true</EnableAttributeProfile>
            <IncludeAttributeByDefault>true</IncludeAttributeByDefault>
            <ConsumingServiceIndex>2104589</ConsumingServiceIndex>
            <EnableAudienceRestriction>false</EnableAudienceRestriction>
            <AudiencesList>
              <Audience></Audience>
            </AudiencesList>
            <EnableRecipients>false</EnableRecipients>
            <RecipientList>
              <Recipient></Recipient>
            </RecipientList>
            <EnableIdPInitiatedSSO>false</EnableIdPInitiatedSSO>
            <EnableIdPInitSLO>false</EnableIdPInitSLO>
            <ReturnToURLList>
              <ReturnToURL></ReturnToURL>
            </ReturnToURLList>
        </ServiceProvider>
    

    1. 将服务提供者配置添加到 /repository/conf/identity/sso-idp-config.xml 部分下。

    [1]https://docs.wso2.com/display/IS510/Configuring+a+SP+and+IdP+Using+Configuration+Files

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-15
      • 1970-01-01
      • 2019-09-20
      • 2021-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-22
      相关资源
      最近更新 更多