Closed prashantharshi closed 4 years ago
adal js
and msal js
are only for browser based clients; For native there are various solutions and some environments support webview in which msal js
or adal js
can run.
All current authentication work from microsoft is delivered through msal js
library here. adal js
is still supported only for security fixes. We would recommend to move to msal js
for any advanced feature asks.
Hi
We have a use case where in we want to fetch user's id_token. We have not used ADAL in our project but we are leveraging ADAL.js renewIdTokenMethod() to call v2 endpoint with reponse_type as id_token in hidden iframe. in browser we check keep me sign in checkbox so that authentication cookies is persisted and AAD successfully returns me id_token in the url fragment.
but when i try running my add-in in word desktop , AAD gives me the error AADSTS50058.
1) Is there a way we can set authentication cookies in desktop client since there is no keep me signed in checkbox when i log in to word desktop.
2) Does ADAL.js works only with javascript client running on browser and not for desktop clients ?
I have attached the method which we have used
`static getOfficeIdToken() {