Skip to main content

Notifications

Community site session details

Community site session details

Session Id : cAZWQ6dOxqhg5hLWM9mDPi
Copilot Studio - General
Suggested answer

Automatic Login

Like (0) ShareShare
ReportReport
Posted on 10 Oct 2024 20:22:25 by
 

Hi everyone!

 

I'm currently using Copilot Studio and have built a bot for a site, which is functioning well overall. However, I need users to be able to automatically log in if the user is already authenticated with my site.

When a user starts a conversation with the bot, it prompts:

 

"Hello! To be able to help you, I’ll need you to sign in. To continue, please login and enter the validation code."

 

It provides a login button, which redirects to our custom login page when clicked. This flow works well, but I need to set up the bot to automatically log in if the user is already authenticated, no validation codes.

 

Does anyone know how I can automate this process to detect if the user is already logged in and bypass the manual login step? Any guidance or best practices would be greatly appreciated!

 

Thanks in advance for your help!

Categories:
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,527 Super User 2025 Season 1 on 11 Oct 2024 at 03:44:10
    Automatic Login
     
    I think this can be achieved. I remember seeing some documentation where they are asking to setup Single Sign On mechanism.
     
    SSO will allow the application to automatically log in users if they are already authenticated in your site's session. We need to enable OAuth 2.0 or OpenID Connect (OIDC) for your bot to securely access the user’s authentication status and bypass the manual login step.
     
    But personally i have not implemented the above.
     
    If u can do it successfully, please share your knowledge too :)
     
    Thanks.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Artur Stepniak Profile Picture

Artur Stepniak 5 Super User 2025 Season 1

#2
Ekta Gupta Profile Picture

Ekta Gupta 4

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 4 Super User 2025 Season 1

Overall leaderboard