Azure ADB2C | custom policy

Abhay Chandramouli 991 Reputation points
2023-10-20T11:17:20.2233333+00:00

Hi

I am making an API call from ADB2C technical profile. I am receiving a query param in b2c.login.com/authorize url, for example as "feature=new"

I want to read this feature query param and pass it to the service url in Technical Profile. so basically

I have this api url -> api.com/get?feature="feature param value"

Please advice how to achieve this

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,642 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 23,216 Reputation points Microsoft Employee
    2023-10-20T19:17:32.31+00:00

    Hi @Abhay Chandramouli , you could try using AdditionalRequestQueryParameters

    <Metadata>
      ...
      <Item Key="AdditionalRequestQueryParameters">feature={feature_param_value}</Item>
      ...
    </Metadata>
    

    More info here.

    If this doesn't work please let me know and I can help you further.

    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