

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.

