web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot- Issue with co...
Copilot Studio
Answered

Copilot- Issue with configuring SSO for Web

(0) ShareShare
ReportReport
Posted on by 86

Hi Team,

 

As per this document (https://learn.microsoft.com/en-gb/microsoft-copilot-studio/configure-sso?tabs=webApp)  I have configured SSO for Web and was able to successfully login to my credentials. But noticed that even after successful single sign on , I am again asked to login with code. Is this the expected behavior of SSO in web copilot? Please refer the screenshot for your reference.

 

MariamPaulachan_0-1701152604180.jpeg

 

Categories:
I have the same question (0)
  • HenryJammes Profile Picture
    on at

    Hi @MariamPaulachan 

     

    No this isn't expected. Single-sign on shouldn't prompt the user to login, they should automatically be signed-in.

     

    Henry

  • MariamPaulachan Profile Picture
    86 on at

    Hi @HenryJammes 

     

    Here is the code sample link ( https://github.com/microsoft/CopilotStudioSamples/blob/master/BuildYourOwnCanvasSamples/3.single-sign-on/index.html) that is used for SSO integration in web. Could you please review and let me know if there is any further updates needed. 

  • HenryJammes Profile Picture
    on at

    Not really an expert on SSO. We shared another sample recently, but for SharePoint. Can you check?

    CopilotStudioSamples/SharePointSSOComponent at master · microsoft/CopilotStudioSamples (github.com)

  • adilei Profile Picture
    on at

    @Mariamthis sample requires clicking on the sign-in button ahead of time - so before the copilot sends the sign in request, but it can be tricky if your copilot is configured to sign users in as soon as the conversation starts. 

     

    Are you clicking "sign-in" before the "login" card even appears?

     

    Edit: based on your image, now I'm seeing that you are in fact signed-in but the login card still appears.

     

    Can you check dev tools to see if there are any client-side errors and paste here?

  • MariamPaulachan Profile Picture
    86 on at

    Hi @adilei 

     

    Yes, for web, I am first redirected to sign in page then it loads the login card which is not expected SSO behavior. From the code side there is no error and we have referred in this (https://github.com/microsoft/CopilotStudioSamples/blob/master/BuildYourOwnCanvasSamples/3.single-sign-on/index.html) solution. Could you be more specific on the dev tools error you are looking for?

     

    Also today I integrated SSO in MS teams referring this document (https://learn.microsoft.com/en-us/microsoft-copilot-studio/configure-sso-teams). But again its show the login card inside it. Could you confirm if this is the expected behavior of SSO in copilot?

     

    MariamPaulachan_0-1701327787945.png

     

     

  • adilei Profile Picture
    on at

    Let's zoom out a little bit. Can you share the settings for your: 1. copilot app registration 2. canvas app registration 3. copilot authentication settings?  

  • MariamPaulachan Profile Picture
    86 on at

    Hi @adilei 

     

    I currently do not have access to AD to share the details of copilot app registration as the AD configuring part is done by client side. They have created the app registration as per the step given in the document. With, app id/client id  I configured in the Copilot. Sharing screenshot copilot authentication settings and details

     

    MariamPaulachan_1-1701339179797.png

    MariamPaulachan_2-1701339944233.png

     

  • adilei Profile Picture
    on at

    Without additional details it wouldn't be possible to troubleshoot.

     

    For example, it's possible that your canvas app registration doesn't have permissions for the custom API, but again, the app registration details are nessecary here.

  • MariamPaulachan Profile Picture
    86 on at

    Hi @adilei 

     

    This is steps that we have added 

     

     

    MariamPaulachan_2-1701414610811.png

    MariamPaulachan_3-1701414635277.png

     

    MariamPaulachan_0-1701414548184.pngMariamPaulachan_1-1701414569079.png

    https://learn.microsoft.com/en-us/microsoft-copilot-studio/configuration-authentication-azure-ad

  • adilei Profile Picture
    on at

    @MariamPaulachan , what about the 2nd app registration, for your canvas?

     

    https://learn.microsoft.com/en-us/microsoft-copilot-studio/configure-sso?tabs=webApp

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard