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

Copilot- Issue with configuring SSO for Web #151

Closed
MariamPaulachan opened this issue Dec 8, 2023 · 5 comments
Closed

Copilot- Issue with configuring SSO for Web #151

MariamPaulachan opened this issue Dec 8, 2023 · 5 comments
Assignees

Comments

@MariamPaulachan
Copy link

MariamPaulachan commented Dec 8, 2023

Hi Team,

I have referred this code to configure SSO in web copilot (https://github.com/microsoft/CopilotStudioSamples/blob/master/BuildYourOwnCanvasSamples/3.single-sign-on/index.html). Could you confirm why is there a step to login with the validation code, when single sign on is enabled?
Also sharing screenshot for reference.

Capture
@adilei
Copy link
Collaborator

adilei commented Dec 9, 2023

Hey Mariam,

I can confirm that the code sample does work as expected when configured properly. I suggest you share any client side errors you are getting, as well as the configuration for your: 1. copilot app registration and 2. canvas app registration

@MariamPaulachan
Copy link
Author

Hi @adilei ,

Sharing screenshot below as requested:

  1. Copilot app registration
    MicrosoftTeams-image (19)
    MicrosoftTeams-image (18)
    MicrosoftTeams-image (17)

  2. Canvas app registration
    MicrosoftTeams-image (16)
    MicrosoftTeams-image (15)
    MicrosoftTeams-image (14)

@adilei
Copy link
Collaborator

adilei commented Dec 16, 2023

Thanks Mariam. Already asked for this on the Copilot Studio Community, but for the benefit of anyone reading here, can you reproduce the issue using the (unmodified) sample provided in the docs?

https://github.com/microsoft/CopilotStudioSamples/blob/master/BuildYourOwnCanvasSamples/3.single-sign-on/index.html

@adilei adilei self-assigned this Dec 19, 2023
@adilei
Copy link
Collaborator

adilei commented Dec 19, 2023

Hi Mariam,

Based on our conversation here I am closing this issue.

As you reported:

  1. The canvas app registration was missing permissions for the custom scope created for the copilot app registration
  2. The token exchange URL should have been populated in the copilot authentication settings

@adilei adilei closed this as completed Dec 19, 2023
@marcorocca1973
Copy link

Hi Adilei
one question.... the correct behavior is that when I open the test html web page in a browser session already authenticated the chatbot not require the login; this is true?

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