1.1.0 • Published 6 years ago

azure-client v1.1.0

Weekly downloads
13
License
ISC
Repository
github
Last release
6 years ago

node-azure-client

This is a class that allows you to get authentication from azure active directory easily.

Constructor expects these parameters:

The only method is "getToken", which, as you could imagine, gets you an authentication token. You then use it as follows:

azureAdClient = new AzureAdClient(authorityUrl, clientId, clientSecret, resource);
const token = await azureAdClient.getAzureAdToken();
headers.Authorization = `Bearer ${token}`;
1.1.0

6 years ago

1.0.0

6 years ago