Skip to content

Latest commit

 

History

History

sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

How to build and run sample

prerequisite: register your web application in AAD, edit its manifest and set "oauth2AllowImplicitFlow": true. Note down the app's clientId, tenant and reply url.

  1. cd sample\server
  2. edit server.ts to make server listen at url and port that matches app's reply url and homepage
  3. tsc -p tsconfig.server.json (this should output server.js to <project-root>\dist\sample)
  4. cd sample\client
  5. edit sample.ts and update the clientId and tenant information in config
  6. [optional]: change popUp: true, if you would like a pop-up instead of main page being redirected for authentication.
  7. webpack (this should output bundle.js to <project-root>\dist\sample)
  8. cd <project-root>\dist\sample
  9. node .\server.js to start server
  10. open browser, navigate to the URL where the server is listening (as configured in step 2)
  11. follow adal auth flow to complete authentication.