[self-hosting] M365 link doesn't seem to be working

Hi, I'm trying to set up M365 with Twenty 0.53.0 to use the email/calendar feature. I have set up the environment variables and the cron jobs just like this says : https://twenty.com/developers/section/self-hosting/setup#for-outlook-and-outlook-calendar-(microsoft-365) My vars are as follows :
MESSAGING_PROVIDER_MICROSOFT_ENABLED=true
CALENDAR_PROVIDER_MICROSOFT_ENABLED=true
AUTH_MICROSOFT_ENABLED=true
AUTH_MICROSOFT_CLIENT_ID=myid
AUTH_MICROSOFT_CLIENT_SECRET="mysecret"
AUTH_MICROSOFT_CALLBACK_URL=https://mydomain.com/auth/microsoft/redirect
AUTH_MICROSOFT_APIS_CALLBACK_URL=https://mydomain.com/auth/microsoft-apis/get-access-token
MESSAGING_PROVIDER_MICROSOFT_ENABLED=true
CALENDAR_PROVIDER_MICROSOFT_ENABLED=true
AUTH_MICROSOFT_ENABLED=true
AUTH_MICROSOFT_CLIENT_ID=myid
AUTH_MICROSOFT_CLIENT_SECRET="mysecret"
AUTH_MICROSOFT_CALLBACK_URL=https://mydomain.com/auth/microsoft/redirect
AUTH_MICROSOFT_APIS_CALLBACK_URL=https://mydomain.com/auth/microsoft-apis/get-access-token
But there is no difference in the app (see image). How to get logs for this, and how can I debug this problem? Also, my Twenty setup is exposed on the public internet, is this necessary for the M365 link to be working? Thanks!
No description
13 Replies
Prastoin
Prastoin3w ago
Hey @BigBadVoodoo please use latest 0.53 version ( I would recommend directly consuming the 0.53 docker hub mirror instead of precising a patch version ) Do you have a prenium microsoft 365 account ? ( needs to be, no the free one ) You can get logs from imports within your worker container Have you restarted your containers after uddating your env variables ?
BigBadVoodoo
BigBadVoodooOP3w ago
Alright, I did switch to the latest 0.53, and restarted the containers but it's not different. There is no "Connect with Microsoft" on the UI like there is on the SaaS version
DemonNo0zy
DemonNo0zy3w ago
You talk about account application or account m365 ... We dont have any button to try a connexion
Prastoin
Prastoin3w ago
Please double check your microsoft env variables configuration, high chances this comes from there. @Guillaume could you please give this an eye when you have some free time please ?
Guillaume
Guillaume3w ago
There is a new feature where we look in the database for variables like thoses ones. can you make sure you have the same values here http://localhost:3001/settings/admin-panel#config-variables ? The button should appear if the approparites env vars are setup
BigBadVoodoo
BigBadVoodooOP3w ago
indeed these microsoft vars are null in the admin panel : but they are set in the .env file. All other variables are just like the .env file
No description
Prastoin
Prastoin3w ago
Have you updated your docker-compose.yml file too ?
DemonNo0zy
DemonNo0zy3w ago
Pas sur :/
BigBadVoodoo
BigBadVoodooOP3w ago
too bad, it was still off in the compose
Prastoin
Prastoin3w ago
This should do the trick !
Guillaume
Guillaume3w ago
👍
BigBadVoodoo
BigBadVoodooOP3w ago
indeed, thanks for that !
Prastoin
Prastoin3w ago
Perfect ! Enjoy coding !

Did you find this page helpful?