Questions tagged [microsoft-graph-toolkit]

Questions relating to the Microsoft Graph Toolkit

Find out more about the Microsoft Graph Toolkit in the documentation or at the GitHub project page.

112 questions
4
votes
2 answers

Use Microsoft Graph Toolkit with msal-browser

I am working on a React App and am using the @azure/msal-react library for authentication. This is working great , but then I realized I'd quite like to use the people picker widget from the @microsoft/mgt-react library. Is there any way I can wire…
4
votes
1 answer

Is silent authentication possible in a Microsoft Teams Tab using Graph Toolkit 2.0

We currently have an SPFX webpart (React application) that uses SSO and then calls Graph APIs 'on behalf of' the user. The SPFX package is installed into SharePoint/Teams where consent to use the Graph APIs are agreed by the Administrator installing…
3
votes
2 answers

Validating a Microsoft Graph JWT Token

I'm by no means an expert on MSAL/JWT/Graph authentication, but I'm hoping someone can explain this issue more clearly to me, or help me understand if there's a workaround or better approach. Essentially, there are certain scenarios where I might…
3
votes
1 answer

Event handlers of Microsoft Graph Toolkit components not called in React app

I am trying to use the login component from the Microsoft Graph Toolkit in my React app. It works fine, but I cannot seem to be able to make any of the events fire. For example - import React from "react"; import { MgtLogin, Providers, MsalProvider…
Justin XL
  • 38,763
  • 7
  • 88
  • 133
2
votes
1 answer

@microsoft/mgt Graph toolkit Compilation error after migrating from Angular 11 to Angular 13

I was using the Microsoft toolkit in my angular 11 app. Everything was working fine. Then I was requested to upgrade to Angular 13. Even with the latest version of the toolkit(2.3.2 as of this post), I get compilation errors. The errors are on the…
chiguirex
  • 31
  • 2
2
votes
0 answers

Is it possible to use graph toolkit components (mgt-people-picker, mgt-login etc.) inside an iframe?

In my project, I am trying to use graph toolkit components (mgt-login and mgt-people-picker) inside a teams tab using mgt-msal-provider or mgt-teams-provider, but it doesn't seems to work. Any help is much appreciated. Those components work as…
2
votes
1 answer

Can you use the Microsoft Graph Toolkit in a Teams tab

We are trying to use the Microsoft Graph Toolkit people picker in a Microsoft Teams tab app we are creating. We are writing the app in angular JS hosted in an Azure Web App. We don't want to prompt the user for their credentials prior to using the…
Ivan Wilson
  • 403
  • 3
  • 12
1
vote
0 answers

How can I access the CachedUser from SessionTokenStore elsewhere in my backend?

I am using the ProxyProvider aspnet mvc sample project to add SSO as well as MGT Toolkit to my application, the sample can be found here In App_Start > startup.auth.cs, I've extended the boiler plate action OnAuthorizationCodeReceivedAsync, to add…
1
vote
1 answer

PersonCard in a Person template

I am using microsoft-graph-toolkit react in SPFx 1.15.0 webpart I have an Ag-Grid rows each with a cell containing a Person
Ofer Gal
  • 707
  • 1
  • 10
  • 32
1
vote
1 answer

How to make AgGridReact rows lower z-index

I have a cell renderer that shows an mgt-person fine but the hover mgt-person-card goes behind the following ag-rows. I tried .ag-row { z-index: -unset !important; } .ag-cell { overflow: visible !important; } and mgt-person-card { …
Ofer Gal
  • 707
  • 1
  • 10
  • 32
1
vote
0 answers

Getting "Uncaught (in promise) null" with Microsoft Graph Toolkit

Every once in awhile I get the error "Uncaught (in promise) null" when using MGT and I'm unable to access any of the toolkit components. I refresh the page and the error goes away. Any reason that this could be happening? I'm guessing that the SDK…
Ovii
  • 67
  • 7
1
vote
1 answer

How do you set the focus onto the Microsoft Graph Toolkit People Picker?

I'm trying to set the focus on the people picker input once it is rendered, however, I cannot use any dom query selectors etc as it doesn't really exist at the right time. There is no tabindex value that works and the input is severla children deep…
Ryan Healy
  • 11
  • 2
1
vote
1 answer

Not able to import mgt elements from Node js application

I am trying to import from the @microsoft/mgt library in my Node js application and facing issues - can someone help. I am already using Babel for using the ES6 modules. Am I missing something - I am new to Node :( export * from…
1
vote
1 answer

mgt-react PeoplePicker defaultSelectedUsers not working as I would expect

I've been writing a React app that relies on the mgt-react components. The app is basically just an interface to a SharePoint library. Everything has been working great and the PeoplePicker is working in so much as I can start typing a users name…
John McAulay
  • 185
  • 9
1
vote
1 answer

Microsoft Graph Toolkit (MGT) - How do I modify/add request headers for the MGT-GET component?

Trying to figure out how to modify request headers for the graph client toolkit and have it apply when using the GET component. I don't necessarily want to override the entire graph client. For reference, here's how you do it: // Already likely on…
CeeMoney
  • 215
  • 3
  • 10
1
2 3 4 5 6 7 8