Node Create an API to validate login with Azure AD [closed]

0

Does anyone know how I could create an API to validate login with Azure AD and return a token?

    
asked by anonymous 21.09.2017 / 17:51

1 answer

1

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('/');
});
    
21.09.2017 / 17:58