Outlook 365
2 TopicsMSAL Modern Auth (OAuth 2.0) for personnal accounts
Hi, I am trying to use azure/msal-node on a node backend server. all work fine for business accounts onmicrosoft.com but not for personnal accounts like mailto:email address removed for privacy reasons, according to this documentation, Authentication seems to be possible https://docs.microsoft.com/fr-fr/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth But i don't understand if my problem come from azure AD configuration or from my code. exp.post('/connect', function (req, res) { let authCodeUrlParameters = { scopes: SCOPES_OUTLOOK, redirectUri: "http://localhost:4220/redirect", }; publicMicrosoftClient.getAuthCodeUrl(authCodeUrlParameters).then((response) => { if (req.body.email) { response += `&login_hint=${req.body.email}` } open(response) }).catch((error) => console.log(JSON.stringify(error))); }); exp.get('/redirect', async function (req, res) { try { const form = { 'code': req.query.code, 'client_id': CLIENT_ID_OUTLOOK, 'scope': SCOPES_OUTLOOK.join(' '), 'redirect_uri': 'http://localhost:4220/outlookOauth2', 'grant_type': 'authorization_code', 'client_secret': encodeURI(SECRET_VALUE_OUTLOOK), } const options = { url: 'https://login.microsoftonline.com/common/oauth2/v2.0/token', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, method: 'post', } response = await got(options, { form }); respToken = response.body ... } catch (error) { console.log(error) res.end(); } }); the error come from ...v2.0/token request. the server response doesn't really help (error 400 bad request) in azure AD we have app registered and all required scope with status granted. Thank you in advance for your help, Yan1.4KViews0likes2CommentsWhy is it so hard to save a file from Outlook to SharePoint?
This is one of the most basic tasks that even the most non-technical users expect: saving a file from (browser-based) Outlook to SharePoint. WHY do users have to download files or save it to their OneDrive first, instead of being able to just save it to SharePoint directly? This question has been asked https://sharepoint.uservoice.com/forums/329214-sites-and-collaboration/suggestions/16003996-please-let-me-drag-outlook-attachments-into-sharep https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_dep365/save-directly-to-an-office-365-outlook-group-files/906f5b02-4b67-41fc-8750-930abfa9dc55?auth=1 before. Since we haven't seen a response via Uservoice since 2016, could someone from Microsoft please respond here? I don't want to have to rely on an expensive third-party tool for something that should obviously be a standard feature. Thank you.Solved15KViews1like11Comments