How to Access HTTP Header Values in Azure AD Claims Transformation?

Lal, Amrit (Cognizant) 20 Reputation points
2024-12-16T12:14:05.4333333+00:00

I have an application hosted in Azure AD that uses SSO. The application sends a custom "ABC" value in the HTTP header during the authentication process. I need to capture this value and pass it as a claim to Azure AD for further use.

From my understanding, Azure AD does not natively allow accessing HTTP headers directly in claims rules, unlike ADFS. Please confirm if I'm right.

  • Is there any workaround to achieve this in Azure AD?
  • Would Azure API Management or middleware be suitable for intercepting and injecting the header value into the claim?
  • Are there other recommended approaches for handling such scenarios?
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Answer accepted by question author
  1. Anonymous
    2024-12-18T22:47:50.2333333+00:00

    Hi @Amrit Lal , unfortunately, this is not currently possible.

    I would suggest posting this idea at the Azure Feedback Portal, which is monitored by the product team for feature enhancements. Thank you for your time and patience throughout this issue.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.