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 / How to bypass validati...
Copilot Studio
Unanswered

How to bypass validation code after authentication is successful?

(1) ShareShare
ReportReport
Posted on by
Hello,
 
I am trying to bypass the double validation in the power virtual agent upon authentication. After the user is prompted to sign in and then redirected to authentication page I want to avoid this page:
 
 
 
and just want the user to be redirected back to the chat window. One of the solutions I saw was using sample canvas https://github.com/microsoft/CopilotStudioSamples/blob/master/BuildYourOwnCanvasSamples/3.single-sign-on/index.html but would I have to create a new authentication using MSAL instead of leveraging the authentication I configured inside power virtual agent?
 
 
Categories:
I have the same question (0)
  • adilei Profile Picture
    on at
    Yes, you would want a second app registration for the custom canvas. Here are the instructions: Configure single sign-on with Microsoft Entra ID - Microsoft Copilot Studio | Microsoft Learn
  • anonymous882 Profile Picture
    on at
    @adilei Thank you for your help, I was able to configure it but now I have two log in prompts like shown in the documentation, I thought by configuring front end app registration it will sync with the back end one and fetch the token from authentication and avoid that login request from the bot. Is there a way to solve this issue as documentation does not offer a solution.
     
     
     
     
     
     
     
     
    Screenshot of logging in using validation code
  • adilei Profile Picture
    on at
    The sample is a bit tricky, as it starts the conversation before the user is signed-in. From the image, it seems you are signed-in, but can't be sure.
     
    Otherwise, it's possible that some misconfiguration makes copilot studio reject the token. How did you set up your canvas app registration in terms of permissions?
  • anonymous882 Profile Picture
    on at
    @adilei As per documentation, I granted the app Delegate User.Read permissions. I am signed in but still have the log in prompt from copilot studios. 
     
    From my understanding, if the user is signed in using MSAL the sign in from the copilot studios should be bypassed? or would I have to turn off manual authentication from copilot studios's side or simply change the sample code to prompt the sign in first and then start the conversation? 

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