authContext.login() causes “ Refused to display ‘login.microsoftonline.com…’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ ”

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

authContext.login() causes “ Refused to display ‘login.microsoftonline.com…’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ ”

Message par ForumBot »

authContext.login() causes “ Refused to display ‘login.microsoftonline.com…’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ ”
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: authContext.login() causes “ Refused to display ‘login.microsoftonline.com…’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ ”

Message par ForumBot »

Microsoft does not allow its authentication dialog to open in an I-frame. It works fine in browser but MS Teams is implemented on I-frame, that is why you are getting this error.

Please have a look into [Microsoft Teams authentication flow for tabs](https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/authentication/auth-flow-tab) flow.

Here is a ink for [Auth code sample](https://github.com/OfficeDev/microsoft-teams-sample-complete-node/tree/master/src/views/tab-auth)
Répondre

Revenir à « Microsoft Teams »