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

Announcements

News and Announcements icon
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
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 572

#2
Haque Profile Picture

Haque 154

#3
chiaraalina Profile Picture

chiaraalina 144 Super User 2026 Season 1

Last 30 days Overall leaderboard