samples icon indicating copy to clipboard operation
samples copied to clipboard

Okta IDP Error: the subject claim 'sub' which is missing in the claims collection.

Open Bill-Spaulding opened this issue 2 years ago • 1 comments
trafficstars

Hello,

I am trying to follow this tutorial to implement Okta as an IDP for B2C. https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-generic-openid-connect?pivots=b2c-custom-policy

I receive the following error: 'B2C_1A_DisplayControl_SignUp_Signin' policy in 'externalusersprod.onmicrosoft.com' specifies the subject claim 'sub' which is missing in the claims collection.

Not sure if the issue is with the custom policy or perhaps the Okta app registration configuration. Any help will be appreciated!

Thank YOu, Bill

SignUp_Signin Policy image

OKTAK CLAIM PROVIDER

image

Bill-Spaulding avatar Aug 08 '23 16:08 Bill-Spaulding

I suggest trying to debug with application insights: https://learn.microsoft.com/en-us/azure/active-directory-b2c/troubleshoot-with-application-insights?pivots=b2c-custom-policy

To see where it's failing (much easier if you setup Visual Studio Code as well). I think this may be related to an issue i'm having: https://github.com/azure-ad-b2c/samples/issues/567

tripflex avatar Aug 24 '23 15:08 tripflex