Azure-AD-Back-Client icon indicating copy to clipboard operation
Azure-AD-Back-Client copied to clipboard

This is a minimal exmaple for a login with azure active directory with a backend Node js express in Typescript and vue client un javascript

Azure-AD-Backend & Client

Example Azure Active Directory login Oauth2 passport Typescrit backend with cleint in Vue.js

Install modules and dependencies

cd client
npm i

cd server
npm i

You need a register app in azure active directory and create a secret of aplicacion.

Config the url reply to localhost:3000/signin, this is the backend

Grant tokens id to aplication

create a .env with a config parameters in backend

You need a TENANT, CLIENT_APP_ID, and create a CLIENT_SECRET

Start the backend server

npm run start

Start the front server

npm run serve

[Example Video]https://youtu.be/RBFFKZdkm2I