Does anyone know how I could create an API to validate login with Azure AD and return a token?
Does anyone know how I could create an API to validate login with Azure AD and return a token?
First you should start your project, to help you with these route questions, you can use Express generator , then you can use the Passport-Azure
A simple example ...
app.get('/login',
passport.authenticate('azuread-openidconnect', { failureRedirect: '/' }),
function(req, res) {
log.info('Login was called in the Sample');
res.redirect('/');
});