Posts

Showing posts from January, 2022

Vue.js User Authentication and the new Azure SDKs

Image
  Vue.js User Authentication and the new Azure SDKs Working with Vue.js and the Azure SDKs The new Azure SDKs  are available for the most popular languages to enable developers to quickly and efficiently build apps that consume Azure services. To interact with Azure resources securely, the Azure SDK includes a library called Azure.Identity that handles the authentication and token management for the users. However, there are scenarios where you may want to use an already authenticated user and existing tokens to pass to the Azure SDK instead of requiring the user to authenticate twice. In this blog, we’ll examine how to build a Vue.js (Single Page app) that uses the new  Azure SDKs  to communicate securely with Azure Storage to retrieve a list of containers. We will be using MSAL.js, the Microsoft Authentication Library to authenticate users to Azure AD and then acquire access tokens. We will be passing these tokens to the Azure Storage clientby creating a custom tok...