Demo showing pure client side AAD login (without server) using AdalJS.
- Create an active directory app in azure management portal
- Set the signin url and app id url. For example: http://localhost:8089
- Add permissions - Office 365 unified API and set delegate permissions to
Read and write access to user mail
- Edit
window.config.tenant
andwindow.config.clientId
. If you remail is[email protected]
then your tenant isdomain.com
. - Configure OAuth 2.0 implicit grant flow in the management portal by downloading the manifest file and set
oauth2AllowImplicitFlow
totrue
and upload the manifest file. - Run the app in any http server. For example:
npm install -g http-server && http-server -p 8089
- Open http://localhost:8089 in the browser