Which MSAL library for a plugin for an electron app?

Shawn s 0 Reputation points
2023-09-07T05:54:01.0133333+00:00

Hi,

I'm struggling to wade through the graph and msal documentation for a project I'm doing. I want to help users sync between logseq and microsoft to do. Logseq is an electron application with a plugin ecosystem. I believe the plugins run on the render process.

I'm currently trying to follow the react msal tutorial because it's fairly common to use react to build plugins for logseq. However I'm getting errors no matter what I try. If the sign in popup appears, it either goes blank completely after entering my email, or it gives an issue with the redirectUri. Speaking of that, how do you decide on a redirectUri? The furthest I got was using https://login.microsoft.online/${'YOUR_TENANT_ID'} as my redirectUri, but this requires specifically adding users' emails to the app. That's very much not an option as I plan to release this for anyone to use.

It's very confusing, I'd appreciate any help.

Thank you

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,628 questions
0 comments No comments
{count} votes