[Please Help]There is an error when testing samlsso using custom policies.

asdffffwsev 11 Reputation points
2022-09-28T02:47:25.23+00:00

There is an error when testing samlsso using B2C custom policies.

AADB2C90031: Policy 'B2C_1A_TrustFrameworkBase_28' does not specify a default user journey. Ensure that the policy or it's parents specify a default user journey as part of a relying party section.

245276-image.png

It is understood that the TrustFrameworkBase does not have a default user journal and stores a default user journal in the sub-xml. ex) SignUpOrSignin.xml ...

I referred to the following link.
https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows?pivots=b2c-custom-policy
https://learn.microsoft.com/en-us/azure/active-directory-b2c/saml-service-provider?tabs=windows&pivots=b2c-custom-policy

I wonder why this error occurs and I want to know the solution.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,663 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,665 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 22,086 Reputation points Microsoft Employee
    2022-10-04T19:05:27.737+00:00

    Hi @asdffffwsev , you need to specify the user journey you wish to use. Example here.

    <RelyingParty>  
      <DefaultUserJourney ReferenceId="SignUpOrSignIn">  
      ...  
    

    Have you set up a sign-up/sign-in flow? You can download the starter pack in the doc you linked and it will contain one if not. Please let me know and I can help you further.

    Thank you,
    James