✅ ASP.NET Core Environment Variables: missing Parameter "clientSecret" for EntraId
I want to authenticate Users with EntraId & call Downstream-APIs
However, I struggle to get my Environment Variables & Secrets working
Because this is running in a Container I use Environment Variables.
This works fine:
The Compose Secret is in the correct Path in the Container and i add it to config with:
But i have no idea how to get Auth to work. I have a workaround for the Config that works:
The secret however is not recognized. This error occurs on Request:
7 Replies
IDK how to configure this in general. This also fails with the same exception
Sry for the Typo in the title
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
I have a shared secret that allows my API to call Azure Resource Manager.
But there is no way to set it. other than appsettings.json
Im using environment variables though
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
i got that. But it doesn't accept my ClientSecret
i explicitly set it there
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
ok
ill create a new project
& add nothing but this part
then ill attempt to create a authenticated client
The Problem was elsewhere.
The Client Secret was set correctly. The Config was just fine.
The errer occured, when my OBO flow tried to obtain the token for the ArmClient.
I had to refactor my ArmClientBuilder to use the correct Configuration.