This repository has been archived by the owner on Jun 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 372
ADAL Basics
Navya Canumalla edited this page Nov 14, 2018
·
10 revisions
Before using ADAL JS, follow the instructions to register your application on the Azure portal. Also, make sure to enable the OAuth 2.0 implicit flow by setting the property oauth2AllowImplicitFlow
to true by editing your application manifest on the portal. Implicit flow is used by ADAL JS to get tokens.
Please refer Installation
You can use ADAL JS as follows in a plain JavaScript application without any frameworks.Include a reference to adal.js in your main application index page before your application scripts.
<script src="App/Scripts/adal.js"></script>
<script src="App/Scripts/app.js"></script>
Please refer Configure AuthenticationContext
Please refer Login APIs
Please refer Acquire tokens APIs
Please refer sample for a full implementation example.