New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/mgt-sharepoint-provider

Package Overview
Dependencies
Maintainers
2
Versions
828
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/mgt-sharepoint-provider - npm Package Compare versions

Comparing version 2.0.0-preview.9 to 2.0.0-preview.6594bcb

0

dist/es6/index.d.ts

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

20

package.json
{
"name": "@microsoft/mgt-sharepoint-provider",
"version": "2.0.0-preview.9",
"version": "2.0.0-preview.6594bcb",
"description": "The Microsoft Graph Toolkit SharePoint Provider",

@@ -40,21 +40,7 @@ "keywords": [

"setLicense": "gulp setLicense --cwd .",
"postpack": "cpx *.tgz ../../../artifacts",
"publish:next": "npm publish --tag next"
"postpack": "cpx *.tgz ../../../artifacts"
},
"dependencies": {
"@microsoft/mgt-element": "2.0.0-preview.9"
"@microsoft/mgt-element": "2.0.0-preview.6594bcb"
},
"devDependencies": {
"cpx": "^1.5.0",
"gulp": "^4.0.2",
"gulp-append-prepend": "^1.0.8",
"gulp-header-license": "^1.0.9",
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.0.2",
"gulp-util": "^3.0.8",
"shx": "^0.3.2",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.5"
},
"publishConfig": {

@@ -61,0 +47,0 @@ "directory": "dist"

37

README.md

@@ -1,1 +0,36 @@

# MGT Msal Provider
# Microsoft Graph Toolkit SharePoint Provider
[![npm](https://img.shields.io/npm/v/@microsoft/mgt-sharepoint-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-sharepoint-provider)
The [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.
The `@microsoft/mgt-sharepoint-provider` package exposes the `SharePointProvider` class to be used inside your SharePoint web parts to power the components with Microsoft Graph access.
[See docs for full documentation of the SharePointProvider](https://docs.microsoft.com/graph/toolkit/providers/sharepoint)
## Usage
1. Install the packages
```bash
npm install @microsoft/mgt-element @microsoft/mgt-sharepoint-provider
```
2. Initialize the provider in code
```ts
import {Providers} from '@microsoft/mgt-element';
import {SharePointProvider} from '@microsoft/mgt-sharepoint-provider';
// add the onInit() method if not already there in your web part class
protected async onInit() {
Providers.globalProvider = new SharePointProvider(this.context);
}
```
See [provider usage documentation](https://docs.microsoft.com/graph/toolkit/providers) to learn about how to use the providers with the mgt components, to sign in/sign out, get access tokens, call Microsoft Graph, and more.
## Sea also
* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)
* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)
* [Microsoft Graph Toolkit playground](https://mgt.dev)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc