AAD Configured REST API consumption in another AAD Configured REST API

“,c,”>”].join(“”)}var c=”body”,e=h[c];if(!e)return setTimeout(q,100);a.P(1);var d=”appendChild”,g=”createElement”,i=”src”,k=h[g](“div”),l=k[d](h[g](“div”)),f=h[g](“iframe”),n=”document”,p;k.style.display=”none”;e.insertBefore(k,e.firstChild).id=o+”-“+j;f.frameBorder=”0″;f.id=o+”-frame-“+j;/MSIE[ ]+6/.test(navigator.userAgent)&&(f[i]=”javascript:false”);f.allowTransparency=”true”;l[d](f);trycatch(s)trycatch(t)a.P(2)};a.l&&setTimeout(q,0)})()}();c[b].lv=”1″;return c[b]}var o=”lightningjs”,k=window[o]=g(o);k.require=g;k.modules=c}({});
window.usabilla_live=lightningjs.require(“usabilla_live”, “//w.usabilla.com/”+buttonId+”.js”);

  • Question

  • Hi Everyone,

    Good Morning !!

    We have a scenario where a client app hitting a intermediary service (REST – AAD Configured) , will be inturn routed to another Service Endpoint (REST – AAD Configured). While doing so, we are successful in gettting accesstoken at client layer after
    hit to intermediary service. Now, Intermediary Service should consume an API of another service which is AAD Configured. For doing so, we have made use of BootstrapContext – for which we have got just token but not security token. We did try by making use
    of same token to consume, but in vain that wasn’t helpful.

    Exception while consuming REST Service from Intermediary service is nothing but ” AAD Login Page HTML ” and status is 200 OK.

    Kindly Suggest where we missed a piece and suggest needful.

    P.S : I have added Intermediary Service in azure portal to client app to have access for consumption and Intermediary service has access to consume REST Service which needs to be consumed. Also, in all layers we are using latest nu-get package of ADAL.




Leave a comment

Your email address will not be published. Required fields are marked *