title: SaaS App with AzureADB2C: User Flows for Client SSO?
body: <p>We have a SaaS web app and our clients are requiring SSO authentication for each of them.  We are using AzureADB2C and it works great, but now are looking at adding SSO.</p>
  <p>I put in the SSO setup into the B2C tenet and it works great, but really messed up our login screen with a &quot;MyCompanySSO&quot; button to log in with, on our customer-facing login screen.</p>
  <p>So now my idea is to have a separate user flow that handles each SSO setup.  Starting with us.  We'd go to MyCompany.OurSaaSApp.us and that'd forward them directly to the user flow endpoint and prompt them to login with their SSO account (AzureAD).</p>
  <p>This all seems to try to work, but I'm getting these errors within the AzureADB2C middleware:</p>
  <blockquote>
  <p>Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler:Warning: .AspNetCore.Correlation. state property not found.</p>
  <p>Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler:Information: Error from RemoteAuthentication: Correlation failed..</p>
  </blockquote>
  <p>Then I get pumped out onto a error page and the login fails.</p>
  <p>So 2 things...
  1.) Am I going in the right direction knowing what we're wanting to accomplish
  2.) What do we need to do to resolve this?</p>
  <p>Thanks everyone for the help, it's been greatly appreciated.</p>
  <p>(note:)</p>
  <p>Just to reiterate.  The SSO works properly when the custom identity provider is attached to the existing SignUpOrIn UserFlow I have configured in the app.  I'm only getting this error when I try to use another UserFlow that I want to use specifically for this SSO.</p>