Azure AD ADFS gving Error “AADB2C90168: The HTTP-Redirect request does not contain the required parameter 'Signature' for a signed request.”

情到浓时终转凉″ 提交于 2020-12-31 06:21:26

问题


I am trying to use the following article to get ADFS working with Azure AD B2C in the start almost 3 weeks ago it worked and now I am getting this error.

AzureAD B2C ADFS Configuration

The Error I get after providing the credentials into ADFS.

AADB2C90168: The HTTP-Redirect request does not contain the required parameter 'Signature' for a signed request.

I removed my Custom policy and took on a vanilla policy from starter pack and configured ADFS but had the same result. There is no guidance on AADB2C90168 on the Internet on this error.

For info The ADFS is using a Public certificate and AzureAD B2C is using a self-signed certificate (as described in Pre-Requisites section).

Any help will be appreciated.


回答1:


In your technical profile for ADFS, add the following key <Item Key="ResponsesSigned">false</Item> to the metadata to see if this corrects your issue or not?

<TechnicalProfiles>
    <TechnicalProfile Id="MyADFS-SAML2">
      <DisplayName>MyADFS</DisplayName>
      <Description>Login with your MyADFS account</Description>
      <Protocol Name="SAML2"/>
      <Metadata>
        <Item Key="RequestsSigned">false</Item>
        <Item Key="ResponsesSigned">false</Item>
        <Item Key="WantsEncryptedAssertions">false</Item>
        <Item Key="PartnerEntity">https://sts.myadfs.com/FederationMetadata/2007-06/FederationMetadata.xml</Item>
      </Metadata>
      ...
 </TechnicalProfile>
</TechnicalProfiles>



回答2:


Turning off response signature checking weakens security, so probably not a good idea.

Azure B2C is expecting both the message and the assertion to be signed. By default, ADFS only signs the Assertion.

Run this on your ADFS Server:

Set-AdfsRelyingPartyTrust -TargetName <RP Name> -SamlResponseSignature MessageAndAssertion


来源:https://stackoverflow.com/questions/62736038/azure-ad-adfs-gving-error-aadb2c90168-the-http-redirect-request-does-not-conta

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!