T
Twenty3mo ago
Neruu2

Regarding Microsoft oAuth

Hello there, I'm self hosting Twenty using Coolify's template. Everything works fine, but I'm trying to push it by implementing the Microsoft oAuth. I've seen the .env vars required from https://twenty.com/developers/section/self-hosting/self-hosting-var#setup-environment-variables. I've created my applicaiton on my Azure portal, but I have 2 questions: 1) where can I find the value of AUTH_MICROSOFT_CALLBACK_URL? I guess it should be something like <instance.domaine.tld>/api/auth/microsoft, but can't be sure and I don't seem to find any help on that (I think your search feature in the developper's docs is broken, any word won't work, even if its present on the current page like, in my case, "microsoft" got me nothing but the word is repeated multiple times on the current page) 2) Are we not supposed to pass a callback URL to the Azure's application as well (it's optional from Azure settings but all the oAuth I've done so far got one, sometimes simply the instance's URL)? Will it be the same? Sorry if these questions are already posted/answered, I didn't manage to find any help regarding that matter. PS: I'll be also very interested if someone managed to make the integration of any SMTP/IMAP (not only google's). I know it's on the roadmap for the team to make it easier to integrate, I'm just very interested 😇😅 Can't wait! PS2: You did a really good job on that product! Congrats to all that participated!
No description
7 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
As of now, there is no support for Microsoft Oauth, there is a discussion about this (not directly about oauth but still somewhat connected) https://github.com/twentyhq/twenty/discussions/3940 There's also a related discussion which should give you more information https://github.com/twentyhq/twenty/discussions/6988
GitHub
Email + Sign-in provider: Microsoft 📬 · twentyhq twenty · Discussio...
We've enabled sign-in though Google but it would be nice to also support for Microsoft Office 365.
GitHub
Support OpenId Connect as SSO standard · twentyhq twenty · Discussi...
Scope & Context I would love to see Openid Connect Integration in this tool! It would allow to connect twenty to any authentication provider like google, microsoft354, keycloak, authentik and m...
Neruu2
Neruu2OP3mo ago
Does that mean that env variables presented in docs are deprecated and I should not try to implement it?
No description
Neruu2
Neruu2OP3mo ago
I've setup my env vars for EMAIL SMTP as well, but it seems the system does not manage to send email with that settings... I've seen multiple discussion about the EMAIL_LOGGER to set either to "logger" or "smtp", but both settings does not allow logs, so I'm not able to check what's wrong... Any workaround ? Would a connection to the microsoft app (when/if available) would fix these issues ?
No description
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
AFAIK they're in use and not deprecated (at least according to issues and discussions in repo), @charles could you help?
charles
charles3mo ago
Hi @Neruu2, happy to help here The variables you are looking at enable you to configure SSO login with Microsoft but not the email synchronization. Are you trying to enable SSO in your case? Regarding the SMTP setup, it is limited at the moment to send "Admin" emails (Reset Password & co), we are currently working on a way to send emails in the case of workflow / automations but it's unlikley to be out before the end of the year
Neruu2
Neruu2OP3mo ago
Thanks so much both for clarification ! So yes, first idea was to connect MSO for SSO. My initial question for that matter was : MSO apps asks for a redirect UTL after performing the auth, but I couldn't find any on the twenty docs? I'm a bad searcher so probably I missed it :D). Or maybe it's just the twenty instance's URL, but often there should be added a few routes like /auth/v1/microsoft ... Then, I was hopping maybe the SSO could lead to fix some of my other SMTP issue but I completely get it's 2 separate things 😄 Even without emails working (admin email, I mean) your soft is very nice to use! Keep up the good work ❤️
charles
charles3mo ago
Thank you! Enjoy using it! Note that our code is ready to accept another mail driver (we only support Google but the code is architectured to support several drivers) so if someone in the community wants to implement it, we could have it!
Want results from more Discord servers?
Add your server