ms-rest-jsauth
Authentication library for azure-sdk-for-javascript, written in typescript. This is a super thin layer over adal-js.
If you are writing a web application in Typescript or Browser Javascript and need to use ADAL for authentication, you can accomplish that by following the code in Samples directory.
The intent of this project is to bundle authentication functionality into Azure SDK libraries for Node/Javascript, provided by AzureSDKTeam
How to create an Azure Active Directory Application
Please follow the steps provided over here.
How to run the sample
- Install dependencies -
npm install
. - Update relevant information in the samples.
- Execute -
npm run build
from the root of the cloned repo. - Start the server -
npm start
- Open
http://localhost:8080/login.html
for authentication. This will redirect you to AAD for login. - After successful login
http://localhost:8080/index.html
.