

The userInfo.profile property provides access to the claims in the ID token received from AAD. Furthermore, you can access properties of the currently signed in user directly form JavaScript (via userInfo and userInfo.profile). If you so choose, in addition (or substitution) to route level protection you can add explicit login/logout UX elements. Routes that do not specify the requireADLogin=true property are added to the anonymousEndpoints array automatically. ADAL will not attach a token to outgoing requests that have these keywords or URI. ADAL's interceptor will automatically add tokens for every outgoing call.Īnonymous endpoints, introduced in version 1.0.10, is an array of values that will be ignored by the ADAL route/state change handlers.
ADAL LIBRARY ANGULAR DIRECT URL CODE
You can use ADAL JS as follows in a plain JavaScript application without any frameworks.ġ- Include a reference to adal.js in your main app page before your application scripts.Īny service invocation code you might have will remain unchanged. Note: Currently there is one NPM package providing both the plain JS library (adal.js) and the AngularJS wrapper (adal-angular.js).ĬDN will be updated to latest version 1.0.18. You have multiple ways of getting ADAL JS: This library works with both plain JS as well as AngularJS applications.

Existing applications relying on ADAL JavaScript will continue to work.Īctive Directory Authentication Library (ADAL) for JavaScript Getting StartedĪctive Directory Authentication Library for JavaScript (ADAL JS) helps you to use Azure AD for handling authentication in your single page applications.If your application is using the previous ADAL JavaScript library, you can follow this.If you are starting a new project, you can get started with theįor details about the scenarios, usage, and relevant concepts.This library, ADAL for JavaScript, will no longer receive new feature improvements.
