Hello @James Palmer , and thanks for sharing your solution. I'm reposting it here so it can be accepted and feedback provided. This will help others experiencing similar issues to find your answer faster:
For anyone coming to this with the same issue, the reason for me was because my IDP did not have access to my client secret; I created my app registration before my app service, rather than at the same time. Therefore the client secret was not stored as the MICROSOFT_PROVIDER_AUTHENTICATION_SECRET
application setting, nor applied automatically to the identity provider I added to my app service.
To resolve this I took the following steps:
- Generated a new client secret from my app registration
- Copied this into an application setting named
MICROSOFT_PROVIDER_AUTHENTICATION_SECRET
- Went to the authentication panel for my app service, and clicked on the Edit icon on my identity provider
- Set
Client secret setting name
toMICROSOFT_PROVIDER_AUTHENTICATION_SECRET
- After saving these settings, I can now access the full set of headers