For authenticating API requests of user, Azure Active Directory is used. The
recommended way for a browser app
(https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-overview)
is to use msal.js
(https://github.com/AzureAD/microsoft-authentication-library-for-js) which I
managed to set up in the React up ...
6 replies
but it can't be used with the IoT SDK:
https://github.com/Azure/azure-sdk-for-js/issues/2556#issuecomment-497505818
So, I ripped it out again and added the authentication flow using
ms-rest-browserauth (https://github.com/Azure/ms-rest-browserauth) ...
Now I encountered a bug which enters the app in an endless redirect loop:
https://github.com/Azure/ms-rest-browserauth/issues/21
I tried to to reproduce this issue with the plain sample app, but the
dependencies won't install because they are hopelessly outdated
(https://github.com/Azure/ms-rest-browserauth/issues/22).
While trying to update the dependencies in the sample I encountered version
incompatibilities similar to this one:
while implementing the Node.js CLI for Bifravst I hit the issue that the latest
package individual relasese of packages from the azure-sdk-for-js are not
compatible, you need to now which versions to mix:
https://github.com/Azure/azure-sdk-for-js/issues/6361
All I want is a working, up to date example of a browser-based app that
interacts directly with the @azure IoT REST API. Ideally before Christmas.
@Azure Inventor of #TypeScript, has broken typings:
https://github.com/Azure/azure-iot-sdk-node/pull/663