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 / Manual Authentication ...
Copilot Studio
Suggested Answer

Manual Authentication on Copilot with Prompt flow

(1) ShareShare
ReportReport
Posted on by 60
Hi everyone,
 
I've tried many methods, but I'm stuck with my manual user authentication and I hope someone can help me.
I have a prompt step in my Copilot Studio. I'm not calling any data or similar in my prompt flow, at this stage I'm just trying to get my chat to process it.
My topic looks like this:
 
I followed this guide for setting up app registration using "manual authentication" for my copilot:


I get through my "message" step, but as soon as I reach the Prompt step, I get this error:​​​​​​​

What am I doing wrong in my setup?

Thanks in advance!

Categories:
I have the same question (0)
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,590 Super User 2025 Season 2 on at
     
    It seems like you have missed some configuration steps while configuring the Authentication.
     
    Ideally if configured and Published properly, it will ask for Login in the first place.
     
    To continue pls Login?
    You will need to copy the generated code and Paste it to continue.
     
     
    Kindly follow every step mentioned in the below reference links.
     
     
     
    Thanks.
     
     
  • MR-10091350-0 Profile Picture
    60 on at

    Hi Vinoth,

    Thank you for your response!

    My screenshot with the error message is after I have logged in. This means I’ve already gone through what you described, so I was able to successfully log in with my app registration, start my chat thread, and then as soon as it reaches my Prompt step, my authentication fails, even though it works perfectly fine in testing when I, for example, select authentication for Teams.

    I hope you can help me move forward, thank you in advance!

  • Suggested answer
    Vinoth Selvam Profile Picture
    1,590 Super User 2025 Season 2 on at
     
    Thanks for the clarification.
     
    Can you please let know what are you doing inside the Custom Prompt. I hope you are using some AI model to create a Custom Prompt?
     
    • This error often occurs when the system expects an authentication token to be present, but it’s either missing or expired. Ensure that the authentication token is being properly retrieved and passed along from the previous step.
    • Azure app might not have the right permissions or scopes assigned to perform the actions you're requesting. Check if we have Correct API permissions and Admin consent granted for those permissions.
    • The user session or context might not be carrying over to the Prompt step, especially if the flow involves multiple steps where the user identity might get lost.
     
    Thanks.
  • MR-10091350-0 Profile Picture
    60 on at

    Hi Again,

    I have tried setting up a very simple prompt flow that currently doesn’t involve any external data, and I can’t even get this to work. I have logged my "activity text" to check if my bot enters the topic, and it does just fine. But when it reaches the Prompt step, I get the following error:

    This is a screenshot of my prompt, where my tests, etc., work perfectly fine:

     

    When I try to run this in, for example, the demo website, I get the option to log in with authentication, and my welcome message appears, my activity.text is logged, and then I get the error at the prompt.

    I have followed the guide I linked to, meaning I have set my scopes to file.read.all and sites.read.all.

     
     

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