Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot go past login page when accessed via Microsoft Teams's website tab #408

Open
tforce7171 opened this issue Jul 24, 2024 · 6 comments

Comments

@tforce7171
Copy link

Hi, I have a working AzureChat and want to access its ui through Microsoft Teams.
I created a website tab which points to my AzureChat endpoint.
It shows a login page(first image), but clicking "Microsoft 365" button to login only redirects to a page below (second image) and won't let me login.
無題 22
無題 23

And then I read this article and learned logging in does not work well with MS Teams website tab.

So are there any ways to disable or bipass a login page? I just want to see a chat page on MS Teams, and security or privacy is not really that important at this moment.

@jeremy-mooney-2024
Copy link

@tforce7171, did you ever find a work around for your post above? I too am seeing the behavior where, on a newly deployed Azure Chat instance, I'm getting the loop of "Sign in with Azure Active Directory" and I sign in successfully, only to be directed back to the same blue button. However the difference is that I am not using Teams. I've tried it in Chrome and Edge (standard and incognito), but no luck.

@tforce7171
Copy link
Author

No, I have not found a work around. But it seems like Teams website does not store cookies thus causing an issue. So may be looking into cookie settings might be an option.
By the way have you followed these steps?

@jeremy-mooney-2024
Copy link

Yes, I was going for the Azure AD Production setup. Thanks for the tip on the cookies. I may look into that further. But I found a newer Azure AI Chat project that I'm interested in testing and it seems to be more active. https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator

@tforce7171
Copy link
Author

Thanks for the info. I'll take a look at it.

@oliverlabs
Copy link
Contributor

I can confirm that this issue is fixed when User Email field is filled in as per @heguro's comment above.

@toellbe
Copy link

toellbe commented Feb 12, 2025

Can't confirm that it works out of the box in Teams Tab App. Not even with heguro's fix for the auth loop regarding the missing email claim.

Can anyone share what additional changes are necessary to get a login in a Teams Tab App. Teams Client Side Access Token to NextAuth or Cookie adjustments?

@olafwrieden olafwrieden reopened this Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants