question

Apolloservices-5653 avatar image
0 Votes"
Apolloservices-5653 asked AdnanDedic edited

What should be the end result of Teams custom tab authentication popup

Hi,
I am building a custom Tab for my web app with authentication.
I was able to open the login page of web app in a popup using microsoftTeams.authentication.authenticate() from SDK. But, after the successful login, The popup is not being closed automatically.
My Web app redirects the user to particular page on successful login. Is there any kind of response teams is expecting post login ?



office-teams-app-dev
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.

1 Answer

AdnanDedic avatar image
0 Votes"
AdnanDedic answered AdnanDedic edited

Hi,

Yes, after the user completes authorization, the user is redirected to the callback page you specified for your app at /tab-auth/simple-end.
In that page you need to determine success or failure based on the information returned by Azure AD and call microsoftTeams.authentication.notifySuccess() or microsoftTeams.authentication.notifyFailure().

See: auth-tab-aad



BR,
Adnan

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.