mattermost / mattermost-plugin-mscalendar

Mattermost plugin for Microsoft Office365
Apache License 2.0
12 stars 20 forks source link

Account connection does not work #367

Open KuestenKeks opened 1 month ago

KuestenKeks commented 1 month ago

This is the sequence of steps, when I try to connect the plugin to my M365 account:

  1. I click on the bot message: grafik

  2. A window pops up where I can choose my M365 account. It says I'm already logged in ("Angemeldet"), probably because I've also installed and configured the Teams meeting plugin: grafik

  3. This message box is shown where it says that certain permissions are required, that need to be approved by an administrator. When I click on "Genehmigungsanforderung", administrators get an approval request: grafik

  4. I approve the permission request in the azure portal

  5. I try again to connect the plugin to my M365 account, but I still get the same message box as in step 3, where I can create a new approval request despite that the previous one has already been approved.

That's how it played out yesterday. I thought maybe waiting a day would change something, but it's just the same today. I've configured the plugin as described in the documentation. The configuration was very similar to the MS Teams plugin, which works just fine. When connecting the Teams plugin with my M365 account, There was no permission approval needed, I did not get a message like I did here in step 3.

Kind regards!

jprusch commented 1 month ago

Same here. After switching back to 1.2.1 it's working again.

jprusch commented 1 month ago

@KuestenKeks Delete the 1.3.0 version, download the 1.2.1 release from last year & install it. Should be working immed.

Kshitij-Katiyar commented 1 month ago

@KuestenKeks @jprusch Can you please tell me the mattermost server version and other details you can give me about the environment and error maybe.

jprusch commented 1 month ago

Sure: Mattermost 9.8.0. Upgraded plugin to 1.3.0 and did an disconnect / connect to test. The new connect didn't work (See above. Exactly the same on our side). We checked the application permissions on the M$ 365 / Azure side: They were correct. Any user trying to connect got an authentication dialog eventually asking for an Azure admin confirmation. Even if this has been given while waiting in the dialog, that never got thru. Reverting to 1.2.1 fixed the issue immediately.

jprusch commented 1 month ago

I can update again to 1.3.0 & enable all logs, if this is of any help.

Kshitij-Katiyar commented 1 month ago

I can update again to 1.3.0 & enable all logs, if this is of any help.

Thanks @jprusch that would be much appreciated.

jprusch commented 1 month ago

Desktop logs are clean.

This is whats displayed: image

Mattermost server log (only lines which contain "calen")

mscal-log-9.8.1-1.3.0.log

In contrast to the 1.2.1 plugin the connect message is shown opening the M$ connect dialog. With 1.2.1 this doesn't open, it's just connected.

KuestenKeks commented 1 month ago

thanks @jprusch! Version 1.2.1 is working just fine. It seems like the 1.3.0 release has also been removed in the meantime.

@Kshitij-Katiyar We're running the current ESR release of Mattermost: 9.5.5. Let me know if you need anything else.

jprusch commented 1 month ago

Yes, I discussed with devs & we decided that it doesn't make sense to have a non-working release in the marketplace. I'll test the next release before it's heading to the marketplace.