Get Azure Active Directory token from an electron app

Viewed 1635

What would be the best way to obtain an AAD token from an electron app?

Microsoft has 2 javascript authentication libraries: adal.js and msal.js. Both are designed for browsers and not native Electron apps (For example - AAD won't allow for file:/// scheme as a reply URL).

Sounds like a long term solution would be native AAD packages (like Microsoft built for Apache Cordova), but since that's probably not going to happen any time soon, what is the best short-term option?

2 Answers
Related