microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
964 stars 309 forks source link

mgt-people-picker - Doesn't work when I use App Service level authentication #572

Closed aakash15patel closed 4 years ago

aakash15patel commented 4 years ago

Support Question

Currently I'm trying to implement mgt-people-picker into the react project which is deployed in Azure App service. There are two ways to authenticate the user

  1. Authenticate using the MSAL library on the UI side.
  2. Turn on the App Service Level authentication and keep the UI Code anonymous.

mgt-people-picker is working fine for the first point mention above. But whenever I use the second point, mgt-people-picker doesnt work at all. Below is the sample code that I'm using: image Note:'####' has been replaced with appropriate ID and URL' Am I missing something here or to use mgt-people-picker in react project, I'll have to authenticate the user using MSAL library?

ghost commented 4 years ago

Hello aakash15patel, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

shweaver-MSFT commented 4 years ago

Hi @aakash15patel,

I'd love to learn more about your project. Are you able to provide a repro sample?

Also, you may find the ProxyProvider helpful for getting at Graph tokens. Check out the docs here

ghost commented 4 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.