https://github.com/menci/msal-rbac-demo
Demo of MSAL.js for AAD authentication and authorization in a SPA
https://github.com/menci/msal-rbac-demo
Last synced: 28 days ago
JSON representation
Demo of MSAL.js for AAD authentication and authorization in a SPA
- Host: GitHub
- URL: https://github.com/menci/msal-rbac-demo
- Owner: Menci
- License: unlicense
- Created: 2021-10-18T10:29:13.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-20T04:56:24.000Z (almost 5 years ago)
- Last Synced: 2026-06-23T10:34:13.864Z (about 1 month ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
1. Create an AAD application in Azure Portal and configure app roles and role assignment.
2. Copy `config-example.mjs` to `config.mjs` and fill tenant ID and application ID (client ID).
3. `yarn install`.
4. Run `yarn dev` in `front`.
5. Run `node index.mjs` in `back`.
6. Check your frontend URL, if it's `http://localhost:3000`, enter `http://localhost:3000/login` as your app's **Redirect URIs** in Azure Portal.
7. Visit your frontend URL, open DevTools and login to AAD. You'll see the result in Console.