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

SSO is not working for new PVA Bots #90

Open
aksridhar opened this issue Oct 21, 2022 · 7 comments
Open

SSO is not working for new PVA Bots #90

aksridhar opened this issue Oct 21, 2022 · 7 comments

Comments

@aksridhar
Copy link

I have been using PVA Bots with SSO Javascript implementation and it has been working fine so far. I created a couple of new bots and followed the same steps with AAD App registration and PVA but SSO does not seem to be working. Not sure if recently something has changed in the way SSO is handled in PVA.

I tried with ReactWebchat as well and I see that SSO works fine with existing PVA Bot and Azure AD App. It keeps prompting for login when used with my new PVA and new AAD App.

Appreciate if someone can shed some light on any recent changes that could break SSO

@iMicknl
Copy link
Member

iMicknl commented Dec 5, 2022

@aksridhar have you been able to resolve this already? I am currently working on improving the SSO sample in this repository and I didn't face any issues.

Please let me know if you still face issues, otherwise we will close this issue.

@aksridhar
Copy link
Author

Hi @iMicknl Thanks for checking. As I have mentioned Javascript version works perfectly fine. I am still having issue using Direct line secret and using the react version of webchat. It somehow does not perform the sign in. I tried using the same javascript code for the token exchange but somehow this is not working. It always prompts with login - https://learn.microsoft.com/en-us/power-virtual-agents/configure-sso

@iMicknl
Copy link
Member

iMicknl commented Dec 7, 2022

If you still face issues with new chatbots, best is to create a support ticket. Through this repository we won't be able to help you debug your issue with SSO and Power Virtual Agents.

Recently I have added a new pull request (#94) which has a more modern version of the SSO HTML/JS sample.

@aksridhar
Copy link
Author

Hello @iMicknl . I did raise a ticket with Microsoft but they asked me to reach out to community as they were not able to help. I raised a similar question on Azure Bot Dev Github community also. It is being looked into. Do you have any working code that uses React webchat instead of webchat.js and that uses Direct line secrets?

@adilei
Copy link
Collaborator

adilei commented Jan 2, 2024

@aksridhar, is this still an issue for you? I've been setting up SSO for new copilots/bots so I don't think anything is broken.

Are you able to repro this using the SSO sample in this repo?

@aksridhar
Copy link
Author

Hi @adilei Thanks for following up. I had put this project on hold due to other priorities. I will have to revisit this thread again. Will keep you posted.

@adilei
Copy link
Collaborator

adilei commented Jan 2, 2024

Whenever you're ready 😊

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

3 participants