I successfully logged in with AD authentication and redirect to my API page (API page is given below)
I tried "req.azureMobile.user" and "req.user" but both are not returning user details.
I am trying this in desktop browsers
var azureStorage = require('azure-storage');
var azureMobileApps = require('azure-mobile-apps');
var api = {
get: function (req, res, next) {
res.status(200).send(req.azureMobile.user);
// alternative code i tried
// res.status(200).send(req.user);
}
};
module.exports = api;
via Navneet Garg
No comments:
Post a Comment