question

komatat avatar image
0 Votes"
komatat asked komatat edited

ERROR CancelledByUser is returned incorrectly in some scenarios

I am using ADALjs and Teams SDK to authenticate users and request some permissions.

So user clicks a button "Grant Consent" in my application, MSFT popup appears and there are three possible scenarios:

1) User closes the popup << MSFT always responds with "ERROR CancelledByUser", this is fine.

2) User presses Cancel button

Actual result: In some cases popup closes with the same message "ERROR CancelledByUser" as expected, but in ~50% of cases popup closes without any errors.

Expected result: Popup should always close with "ERROR CancelledByUser" message when user clicks Cancel.

3) User presses Accept button

Actual result: In some cases popup closes without any errors as expected, but in ~50% of cases popup closes with the same message "ERROR CancelledByUser"

Expected result: Popup should close without any error messages when user clicks Accept

9881-authentication-popup.png



azure-ad-libraries
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What happens in other ~50% of cases?

0 Votes 0 ·
komatat avatar image komatat amanpreetsingh-msft ·

Popup closes without any errors.
I have updated the description, hope it helps.

0 Votes 0 ·

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered komatat edited

Hi @komatat,


I'm not sure if this is the same issue, but I've seen others report this when they did not call teams Initialization in the index. If it's working sometimes and not others this might be because some attempts are on web and some are on desktop.


https://github.com/OfficeDev/microsoft-teams-library-js/issues/324


Can you confirm if this seems related?


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, @MarileeTurscak This indeed looks to be related, but we need to investigate on our side if initialization resolves the issue as we're using web authentication without actually using MS Teams.


I will comment on this post as soon as I have results.


0 Votes 0 ·