mercredi 14 février 2018

Authenticating ember js using Azure AD and torii

I'm using torii to authenticate my front end using Azure AD and it's working fine. Now, my frontend needs to request a new token to access a backend that is also protected using Azure AD. I have a POC using Angular and Adal, and it fires the following request that I can't reproduce using Torii:

https://login.microsoftonline.com/myazuread.onmicrosoft.com/oauth2/authorize?response_type=token&client_id=6c49f322-11b4-42df-b064-96b9213c5754&resource=https%3A%2F%2Fmyazuread.onmicrosoft.com%2Fa6a6f6f0-7969-49e9-ad7e-cdf5299f8f59&redirect_uri=http%3A%2F%2Flocalhost%3A44342%2F&state=9db112a9-d644-4380-ba7d-c9e93bb2c756%7Chttps%3A%2F%2Fmyazuread.onmicrosoft.com%2Fa6a6f6f0-7969-49e9-ad7e-cdf5299f8f59&client-request-id=c83e62c3-bd86-4193-ac97-eefa8600916a&x-client-SKU=Js&x-client-Ver=1.0.12&prompt=none&login_hint=test%40myazuread.onmicrosoft.com&domain_hint=myazuread.onmicrosoft.com

PS: I just need the https://login.microsoftonline.com/myazuread.onmicrosoft.com/oauth2/authorize? the query parameters I can get them from Azure Portal.

Any help? Thanks in advance




Aucun commentaire:

Enregistrer un commentaire