I'm using the following Microsoft sample for Azure B2C on NodeJS and am receiving the following error:
ERROR: AzureAD: Metadata Parser/59044 on DESKTOP1: cannot get AAD Federation metadata from endpoint you specified
INFO: AzureAD: OIDC Passport Strategy/59044 on DESKTOP1: authentication failed due to: Cannot get AAD Federation metadata
I assume this is referring to the config.js/exports/creds/IdentityMetadata, however I am able to access both of the following B2C URLs directly.
- https://TENANT.b2clogin.com/TENANT.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1_TestUserFlowSignUp
- https://login.microsoftonline.com/TENANT.onmicrosoft.com/v2.0/.well-known/openid-configuration
Question
- How can I debug the Passport's library failure to access FederationMetadata? (fiddler didn't show any network IO)
- Is it stored or cached somewhere?
- When and how is it used (for troubleshooting)?
identityMetadata
andisB2C
? – Chris PadgettisB2C
setting istrue
and the metadata ishttps://login.microsoftonline.com/gyb2cnonprod.onmicrosoft.com/v2.0/.well-known/openid-configuration
, only minor modifications (npm update) from the pull athttps://github.com/AzureADQuickStarts/B2C-WebApp-OpenIDConnect-NodeJS.git
– CMEdgehttps://gyb2cnonprod.b2clogin.com/tfp/f8d69b61-eb5a-406a-8a31-654001011012/B2C_1_PassportFlow/v2.0/.well-known/openid-configuration/
@ChrisPadgett – CMEdge