The following forum(s) have migrated to Microsoft Q&A (Preview): Azure Active Directory!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
REST API Calling From Azure ADB2C Custom Policy RRS feed

  • Question

  • Hi All,

    I am just trying to understand that is there any possible way to give the Service URL in the REST API calling by any variable or other alternative instead of hard-coding the link.

    For eg: 

    In the below code, can we refer the "ServiceUrl" by means of any variable instead of hard-coding the link.

    <TechnicalProfile Id="****">
    <DisplayName>Validate the User</DisplayName>
    <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.RestfulProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
    <Metadata>
    <Item Key="ServiceUrl">https://***/abc/efg/isUserExist?subscription-key=#####</Item>
    <Item Key="SendClaimsIn">Header</Item>
    <Item Key="ClaimsFormat">Body</Item>
    <Item Key="AuthenticationType">Basic</Item>
    <Item Key="AllowInsecureAuthInProduction">true</Item>
    <Item Key="DebugMode">false</Item>
    </Metadata>

    Thank you for looking into this!


    Friday, October 18, 2019 2:43 PM

All replies

  • Hey Srivalli,

    I don't think this is possible... I'm going to look into this issue for you and get back to you as soon as possible, however these values are a bit hardcoded in. 

    Thanks,

    - Frank Hu

    Saturday, October 19, 2019 1:52 AM
    Moderator
  • Hi Frank,

    Thanks for checking. Please keep me posted. 

    - Srivalli

    Monday, October 21, 2019 7:50 AM