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 / Configure Single Sign ...
Copilot Studio
Answered

Configure Single Sign On with React and @azure/msal library

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi This is Runhua(Allen).

I am trying to moving our bot to the typescript and also want to configure the single sign on for it.

Allen_Gao_0-1615857980196.png

 

But the PVA/Configure SSO  is with javascript. So could some one take a look at here?

 

The first question is that how could I export the directLine, as in react it is a component state not a global variable.

 

Second question is for the msal client, if I want to use @azure/msal-browser library, how to get that userId?  

 

Looking forward to your reply 🙂

 

Categories:
I have the same question (0)
  • Verified answer
    cabata Profile Picture
    314 Most Valuable Professional on at

    hi @Allen_Gao  here you have some examples about Azure/msal  

     

    @azure/msal-browser - npm (npmjs.com)

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 713

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 117

Last 30 days Overall leaderboard