GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - microsoftgraph/microsoft-graph-toolkit: Authentication Providers and UI components for Microsoft Graph 🦒

This repository was archived by the owner on Aug 28, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

1,984 Commits
1,984 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.husky
.husky
 
 
.storybook
.storybook
 
 
.vscode
.vscode
 
 
.yarn
.yarn
 
 
artifacts
artifacts
 
 
assets
assets
 
 
cem-plugins
cem-plugins
 
 
packages
packages
 
 
samples/react-contoso
samples/react-contoso
 
 
scripts
scripts
 
 
specs
specs
 
 
stories
stories
 
 
.babelrc.json
.babelrc.json
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.release-please-manifest.json
.release-please-manifest.json
 
 
.stylelintignore
.stylelintignore
 
 
.stylelintrc.json
.stylelintrc.json
 
 
.yarnrc.yml
.yarnrc.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
SECURITY.md
SECURITY.md
 
 
auth.html
auth.html
 
 
azure-pipelines.yml
azure-pipelines.yml
 
 
contest.md
contest.md
 
 
custom-elements-manifest.config.mjs
custom-elements-manifest.config.mjs
 
 
index.html
index.html
 
 
lerna.json
lerna.json
 
 
package.json
package.json
 
 
prettier.config.cjs
prettier.config.cjs
 
 
readme.md
readme.md
 
 
release-please-config.json
release-please-config.json
 
 
sonar-project.properties
sonar-project.properties
 
 
tsconfig.base.json
tsconfig.base.json
 
 
tsconfig.web-test-runner.json
tsconfig.web-test-runner.json
 
 
web-test-runner.config.mjs
web-test-runner.config.mjs
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation


Microsoft Graph Toolkit

UI Components and Authentication Providers for Microsoft Graph

Important

Microsoft Graph Toolkit has been retired

As of August 28, 2026, the Microsoft Graph Toolkit project has been retired and is no longer maintained.

To everyone who built with MGT, filed issues, contributed code, and helped others along the way — thank you. This project would not have been possible without your support, feedback, and enthusiasm over the years. We are deeply grateful to the community that grew around it.

The source code remains available here under its existing license. If you would like to continue using or maintaining MGT, you are welcome to fork the repository and maintain your own version.

Documentation

The Microsoft Graph Toolkit is a collection of reusable, framework-agnostic components and authentication providers for accessing and working with Microsoft Graph. The components are fully functional right of out of the box, with built in providers that authenticate with and fetch data from Microsoft Graph.

Packages • Components • Providers • Getting Started • Using our samples • Contribute • Feedback & Requests
• License • Code of Conduct

Packages

Package Latest Next
@microsoft/mgt
@microsoft/mgt-element
@microsoft/mgt-components
@microsoft/mgt-react
@microsoft/mgt-msal2-provider
@microsoft/mgt-teamsfx-provider
@microsoft/mgt-sharepoint-provider
@microsoft/mgt-proxy-provider
@microsoft/mgt-spfx-utils
@microsoft/mgt-electron-provider

Preview packages

In addition to the @next preview packages, we also ship packages under several other preview tags with various features in progress:

Tag Description
next Next release - updated on each commit to main

To install these packages, use the tag as the version in your npm i command. Ex: npm i @microsoft/mgt-element@next. Make sure to install the same version for all mgt packages to avoid any conflicts. Keep in mind, these are features in preview and are not recommended for production use.

Components

You can explore components and samples with the playground powered by storybook.

The Toolkit currently includes the following components:

  • mgt-agenda
  • mgt-file
  • mgt-file-list
  • mgt-get
  • mgt-login
  • mgt-people
  • mgt-people-picker
  • mgt-person
  • mgt-person-card
  • mgt-picker
  • mgt-search-box
  • mgt-search-results
  • mgt-tasks
  • mgt-taxonomy-picker
  • mgt-teams-channel-picker
  • mgt-theme-toggle
  • mgt-todo

All web components are also available as React component - see @microsoft/mgt-react documentation.

Providers

Providers enable authentication and provide the implementation for acquiring access tokens on various platforms. The providers also expose a Microsoft Graph Client for calling the Microsoft Graph APIs. The components work best when used with a provider, but the providers can be used on their own as well.

  • Msal2Provider
  • SharePointProvider
  • TeamsFxProvider
  • ProxyProvider
  • SimpleProvider
  • ElectronProvider

You can also create your own providers by extending the IProvider abstract class.

View the full documentation

Getting Started

The following guides are available to help you get started with the Toolkit:

  • Build a web application (JavaScript)
  • Build a SharePoint web part Part
  • Build a Microsoft Teams tab
  • Build an Electron app
  • Use the Toolkit with React
  • Use the Toolkit with Angular
  • Build a productivity hub app

You can use the components by installing the npm package or importing them from a CDN (unpkg).

Use via NPM:

The benefits of using MGT through NPM is that you have full control of the bundling process and you can bundle only the code you need for your site. First, add the npm package:

npm install @microsoft/mgt-components
npm install @microsoft/mgt-msal2-provider

Now you can reference all components and providers at the page you are using:

<script type="module">
  import { Providers } from 'node_modules/@microsoft/mgt-element/dist/es6/index.js';
  import { Msal2Provider } from 'node_modules/@microsoft/mgt-msal2-provider/dist/es6/index.js';
  import { registerMgtLoginComponent, registerMgtAgendaComponent } from 'node_modules/@microsoft/mgt-components/dist/es6/index.js';
  
  Providers.globalProvider = new Msal2Provider({clientId: '[CLIENT-ID]'});
  
  registerMgtLoginComponent();
  registerMgtAgendaComponent();
</script>

<mgt-login></mgt-login>
<mgt-agenda></mgt-agenda>

Use via CDN:

The following script tag downloads the code from the CDN, configures an MSAL2 provider, and makes all the components available for use in the web page.

<script type="module">
  import { registerMgtComponents, Providers, Msal2Provider } from 'https://unpkg.com/@microsoft/mgt@4';
  Providers.globalProvider = new Msal2Provider({clientId: '[CLIENT-ID]'});
  registerMgtComponents();
</script>
<mgt-login></mgt-login>
<mgt-agenda></mgt-agenda>

NOTE: This link will load the highest available version of @microsoft/mgt in the range >= 4.0.0 < 5.0.0, omitting the @4 fragment from the url results in loading the latest version. This could result in loading a new major version and breaking the application.

NOTE: MSAL requires the page to be hosted in a web server for the authentication redirects. If you are just getting started and want to play around, the quickest way is to use something like live server in vscode.

Using our samples

We, in collaboration with the community, are providing different samples to help you with different scenarios to leverage the Microsoft Graph Toolkit. Our samples are hosted in another repo and is also fully open-source! Head over to the Microsoft Graph Toolkit Samples Repository and you will find all sorts of samples to get you started quickly!

Contribute

We enthusiastically welcome contributions and feedback. Please read our wiki and the contributing guide before you begin.

Feedback and Requests

For general questions and support, please use Stack Overflow where questions should be tagged with microsoft-graph-toolkit

Please use GitHub Issues for bug reports and feature requests. We highly recommend you browse existing issues before opening new issues.

License

All files in this GitHub repository are subject to the MIT license. This project also references fonts and icons from a CDN, which are subject to a separate asset license.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

About

Authentication Providers and UI components for Microsoft Graph 🦒

docs.microsoft.com/graph/toolkit/overview

Topics

devxenghacktoberfestmgtmgt-reactmicrosoft-graphmicrosoft-graph-toolkitmicrosoft-teamsmsalpeople-pickerperson-cardreactsharepointspfxtaskstodoweb-components

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1.1k stars

Watchers

56 watching

Forks

361 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.