【问题标题】:Issue importing service provider via file configuration WSO2 Identity Server通过文件配置 WSO2 Identity Server 问题导入服务提供者
【发布时间】:2018-12-13 15:18:50
【问题描述】:

我正在使用“文件配置”功能将服务提供商导入我的 WSO2 身份服务器。我从中导入的文件有一个名为“Local Claim”的声明

配置截图

配置 XML 文件

<?xml version="1.0" encoding="UTF-8"?><ServiceProvider>
  <ApplicationName>Local Claim SP</ApplicationName>
  <Description/>
  <InboundAuthenticationConfig>
    <InboundAuthenticationRequestConfigs>
      <InboundAuthenticationRequestConfig>
        <InboundAuthKey>Local Claim SP</InboundAuthKey>
        <InboundAuthType>openid</InboundAuthType>
        <InboundConfigType>standardAPP</InboundConfigType>
        <Properties/>
      </InboundAuthenticationRequestConfig>
      <InboundAuthenticationRequestConfig>
        <InboundAuthKey>Local Claim SP</InboundAuthKey>
        <InboundAuthType>passivests</InboundAuthType>
        <InboundConfigType>standardAPP</InboundConfigType>
        <Properties/>
      </InboundAuthenticationRequestConfig>
    </InboundAuthenticationRequestConfigs>
  </InboundAuthenticationConfig>
  <LocalAndOutBoundAuthenticationConfig>
    <AuthenticationSteps/>
    <AuthenticationType>default</AuthenticationType>
    <alwaysSendBackAuthenticatedListOfIdPs>false</alwaysSendBackAuthenticatedListOfIdPs>
    <UseTenantDomainInUsername>false</UseTenantDomainInUsername>
    <UseUserstoreDomainInRoles>true</UseUserstoreDomainInRoles>
    <UseUserstoreDomainInUsername>false</UseUserstoreDomainInUsername>
    <EnableAuthorization>false</EnableAuthorization>
  </LocalAndOutBoundAuthenticationConfig>
  <RequestPathAuthenticatorConfigs/>
  <InboundProvisioningConfig>
    <ProvisioningUserStore/>
    <IsProvisioningEnabled>false</IsProvisioningEnabled>
    <IsDumbModeEnabled>false</IsDumbModeEnabled>
  </InboundProvisioningConfig>
  <OutboundProvisioningConfig>
    <ProvisioningIdentityProviders/>
  </OutboundProvisioningConfig>
  <ClaimConfig>
    <RoleClaimURI/>
    <LocalClaimDialect>false</LocalClaimDialect>
    <IdpClaim/>
    <ClaimMappings>
      <ClaimMapping>
        <LocalClaim>
          <ClaimUri>http://wso2.org/claims/localClaim</ClaimUri>
          <claimId>0</claimId>
        </LocalClaim>
        <RemoteClaim>
          <ClaimUri>Local Claim</ClaimUri>
          <claimId>0</claimId>
        </RemoteClaim>
        <RequestClaim>true</RequestClaim>
        <MandatoryClaim>false</MandatoryClaim>
      </ClaimMapping>
    </ClaimMappings>
    <AlwaysSendMappedLocalSubjectId>false</AlwaysSendMappedLocalSubjectId>
    <SPClaimDialects/>
  </ClaimConfig>
  <PermissionAndRoleConfig>
    <Permissions/>
    <RoleMappings/>
    <IdpRoles/>
  </PermissionAndRoleConfig>
  <IsSaaSApp>false</IsSaaSApp>
</ServiceProvider>

当我尝试导入 XML 文件时,出现以下错误:

我查看了我尝试导入到的身份服务器上的本地声明,并且我有错误引用的本地声明。

那个错误信息对我来说没有意义。我是否误解了本地索赔是什么?我认为向http://wso2.org/claims 方言添加声明是添加本地声明的方式。那么为什么它会抛出关于我在方言中的声明的错误?

【问题讨论】:

  • 我无法复制这个。您能否确保创建的声明 URI 值中没有空格字符?因为当我尝试使用拖尾空间时,我得到了同样的错误。

标签: wso2 wso2is


【解决方案1】:

问题是您尚未在要将此 SP 导入到的 Identity Server 中创建声明 http://wso2.org/claims/localClaim。所以你需要做的是通过导航到Claims -&gt; Add -&gt; Add Local Claim添加所需的本地声明

完成此操作后,尝试再次导入服务提供者。

【讨论】:

  • 请看我帖子底部的图片。我已经创建了本地声明。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-11
相关资源
最近更新 更多