samples icon indicating copy to clipboard operation
samples copied to clipboard

Error when using SAML in a subjourney

Open Tiberriver256 opened this issue 3 years ago • 5 comments

I'm using the sample provided here: https://github.com/azure-ad-b2c/samples/blob/master/policies/default-home-realm-discovery/policy/SignIn_HRD.xml

Everything seems to work fine but when AAD redirects back to AAD B2C it results in the following error in the logs:

{
    "Kind": "FatalException",
    "Content": {
      "Time": "7:53 PM",
      "Exception": {
        "Kind": "Handled",
        "HResult": "80131515",
        "Message": "ValidateAsync is not supported for Web.TPEngine.Providers.RestfulProvider",
        "Data": {}
      }
    }
  }

Any ideas what that error might mean?

Tiberriver256 avatar Oct 12 '21 20:10 Tiberriver256

Have you added a REST API technical profile? It’s complaining about a RESTful provider.

JasSuri avatar Oct 13 '21 07:10 JasSuri

@JasSuri - Thanks for the response. I didn't have any RESTful provider added which was the weird part. I did however find out the error only shows up when doing the SAML federation inside of a subjourney.

Tiberriver256 avatar Oct 18 '21 13:10 Tiberriver256

Same error message, but with a OIDC provider inside of a subjourney.

davidspiess avatar Feb 16 '22 07:02 davidspiess

Can one of you post your files? We have definitely used OIDC providers within subjourneys without issues. Make sure to re-upload the final file which contains the relyingparty section to check for final syntax.

JasSuri avatar Feb 16 '22 09:02 JasSuri

@JasSuri I am having a similar issue calling a SAML Provider from a subjourney. Could you possibly post a code example in the repo for us to study and compare with our policy to see what we could possibly be doing wrong?

mrcunninghamz avatar Aug 11 '23 17:08 mrcunninghamz