question

SvenGloeckner avatar image
0 Votes"
SvenGloeckner asked JamesTran-MSFT edited

AADB2C90006 Error in docker container

I registered redirect URI with HTTPS in app registration in my ADB2C tenant.

However, I get the following error:

Message contains error: 'redirect_uri_mismatch', error_description: 'AADB2C90006: The redirect URI 'http://xxxxxxx.germanywestcentral.cloudapp.azure.com/signin-oidc' provided in the request is not registered for the client id 'xxxxx-xxxxx-4267-b903-39fba9802137'.



My app hosted in a docker container Kubernetes .

What's wrong here?

azure-ad-b2cazure-kubernetes-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SvenGloeckner avatar image
0 Votes"
SvenGloeckner answered

Ok found my own solution:
You'll have to set ASPNETCORE_FORWARDEDHEADERS_ENABLED to true in Kubernetes Deployment script.

Source: https://andrewlock.net/deploying-asp-net-core-applications-to-kubernetes-part-5-setting-environment-variables-in-a-helm-chart/


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.