{"_id":"@microsoft/mgt-teams-msal2-provider","_rev":"351-e83d264f54ec6efba1925039ac5ed4b3","name":"@microsoft/mgt-teams-msal2-provider","dist-tags":{"next.groupTypeTest":"2.3.1-next.groupTypeTest.e879764","next.teamsfx":"2.4.1-next.teamsfx.8d56785","next.fluent-deps":"3.0.0-next.fluent-deps.4bc5741","next.login-design":"3.0.0-next.login-design.17a198b","next.lit-element-update":"3.0.0-next.lit-element-update.dbb1f26","next.merge":"3.0.0-next.merge.cdd49dc","next.wc-registration-samples":"3.0.0-next.wc-registration-samples.6363b76","next.node16-support":"3.0.0-next.node16-support.f415340","next.wc-registration":"3.0.0-next.wc-registration.43194e0","next.fix-people-picker-flyout-a11y":"2.7.1-next.fix-people-picker-flyout-a11y.0210f09","next.fix-msal2-provider":"3.0.0-next.fix-msal2-provider.89cb1c3","next.wip":"3.0.0-next.wip.31dfb9e","next.enhanced-file-list":"3.0.0-next.enhanced-file-list.49c3edd","next.wc-registration-utils":"3.0.0-next.wc-registration-utils.6ca9b59","next.dark-toggle":"3.0.0-next.dark-toggle.5e7a689","next.disambiguation-util-fixes":"3.0.0-next.disambiguation-util-fixes.aecf062","next.preview-pipeline":"3.0.0-preview.1-next.preview-pipeline.8bf3848","next.fix-grid":"3.0.0-preview.1-next.fix-grid.a34c8fc","preview":"3.0.0-preview.2","next.mgt-chat":"3.0.0-preview.1-next.mgt-chat.6a93d6b","next.fluentui":"3.0.0-preview.2-next.fluentui.ab2ddda","next":"2.11.2-preview.4dac3ba","latest":"2.11.2"},"versions":{"2.3.0-preview.16b6ac0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.0-preview.16b6ac0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.0-preview.16b6ac0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1ba991b16f1e34df5b39245dc1c154498b1b55a4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.0-preview.16b6ac0.tgz","fileCount":18,"integrity":"sha512-4F4Om1f9b5AYVW72BlrNqFlaOFbM4jSD/9wYGwT0JYv3Tg0Yay0UGfJqe0zfRIVaBPuD2lKgry86FLaf+VM4/Q==","signatures":[{"sig":"MEUCIQCQschSDdW3/Qf8aAyZU9A7gxxB27sq8DfmMYnBf5/7sAIgDnkpjRBHkB0Pfq43eqm0Bei1wxwAYZsEyM4NwuL5bVg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":942310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKDkTCRA9TVsSAnZWagAAWDsP/RrM/0SiE64zVySLx3LL\nkb3azDfAwoa5WBTFJOyoBO+VIemg8QydjiHAIgxoHrsfq7gT9wu8+Ii4w3aT\nn0i4OHbw4e7Rse8BkAJrpPWnTIqxLo3gi651joSpfPv18Gn4uz9S6kX/4dbH\niiL/Zf1pNL2dTTmUk5mPANnJIMjQ0acQkVJas4FDSL9tZq0+rxn6gSwCVAyS\neAOKHE6BZm7PMDtc6I5R/X6NwUP/RWabYPNYjYSKqXJaOp5oyy7VHtJh2iGt\niAoVPP0T4z8svS9okrQCqvyVSxOz5dIknUPp/zAOUrmWRK0YAKTFj1yuUw1q\nA/sbuTMAZGM2Ivk9ApQV7vkEdba1+URxO95afytgmTrSsi4YfQkKT7k+eYx1\nLSxQYsN/vAGsEugRUk1hrLL3ZwrCJlphSbU9Mn6buQC7frA5bG4h++LFZLu4\n5n0P4EgecZzJ6vYfEMcyeuY1tLiHtUnp9OL7dSkkP4kz+gi8NxIoej4po6HS\n+Xrl2rw9VVhzfyxDbElr+VAeV3ISwIafjyx8Jk90UfHB4SCoqIBrgHP4CiJT\nDA8ZK/cTcoAdLSPgimZbNlp5eBZ0yxJpRMwDd01hXuWr5pkiad0Bx7Ua28f4\nThpYa9Yjd3AZvFSqgyg8S37hEgvSqzp2ds0LLhnPGHKlsavVltXQfTL8CoFr\nxkxf\r\n=3Pxl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.14","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.5","dependencies":{"@azure/msal-browser":"^2.14.2","@microsoft/mgt-element":"2.3.0-preview.16b6ac0","@microsoft/mgt-msal2-provider":"2.3.0-preview.16b6ac0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.0-preview.16b6ac0_1630026002662_0.8948760209917159","host":"s3://npm-registry-packages"}},"2.3.0-preview.be732c6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.0-preview.be732c6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.0-preview.be732c6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"88990d09e3fc479f60acb7c5b5627407cc201fa4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.0-preview.be732c6.tgz","fileCount":18,"integrity":"sha512-07ZYNhxDKL57QZ/5PehmbV1vPPyHLHwXzPmjrwE86XPYIOsHxotGN2Lh83c0reaGIB0lSxN1i/OepLziZaYmOw==","signatures":[{"sig":"MEUCIQCw2C6IxK/0VP5myojZuCzFSxqP6DkyrYh/g7t5hrslogIgIaUntSquEVQnyaVI6lj7CUr6+gcM6NU2k7e58q3c5zM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":942310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKRmYCRA9TVsSAnZWagAAEesQAJDr422qR3wU2B+acIUm\nSfJwpXT5e1EoPvLCFXmM+ipFAnJ3onG1CdQFar6h7HDa/BQZA/FkFbchrNZT\n0LUq2b7htK3VNDZ/xbXuI7MVOmb1A3BwFNwY3O1JYccLQmjUY1IRf3WdjAgg\ngbUyvSG9GtHWFBXFRcYBFp0fM8PcwhX26p0Osq5flngAELmgN3+lTSLb2qiY\nInWkFTUUX3lsDdS6+g9XRH8H9lnBRHgsWk8C06DhkWzSiDeKBcN08YNBLdqM\nB/CqxqROl3mdExgvhN3BZnmjdDg7SCDZEwJDsflWNarpjRnPx7cZA1EmQhXf\nYQ/o0O+u4dCq26yK8+OEPPsqo0XDoRZjh+Sq2AKozYrEVFSgVy2k2G199hKR\nkmSJ86lUDOuAAFcOHqMrn10msbBm+FE2FqA9qo7dEvjnyrZYCoOcGwSmS8Z8\nG6sNHLPXQZvMZBWoqCaNHp4oe80IrD4nRVRcjGOh7K9N/KtrdLBtoRZKXdgk\nL9r1wzmhyn+hKQSt723kI+YuRrCF2gLT8cd23QkMngyEnGfReLbb3TVkDoM+\nUjpRSXj7+DTcZMoEPX6N50POc4XcAnS+PUmcB+rzwh32hLyAAilbI/bdDNEh\n2r7LRASipf0XKUj8afQpK5Wgrj+JthNM53Cvl3f/TVPRmvdDsL13WhMXRnBC\nIHM2\r\n=k7TP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.14","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.5","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.0-preview.be732c6","@microsoft/mgt-msal2-provider":"2.3.0-preview.be732c6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.0-preview.be732c6_1630083480825_0.9818452476490511","host":"s3://npm-registry-packages"}},"2.3.0-preview.2385e24":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.0-preview.2385e24","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.0-preview.2385e24","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"81fe1853cc4b94c996cd30d8938e6f88e06ae631","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.0-preview.2385e24.tgz","fileCount":18,"integrity":"sha512-SFlGzJJPeFuPXFQFg128GXgkFblFs92q8qBNSFNovWI5Ex2GvstEQ47fQx9Bn9Dqd9yXzYyyO0lj4ssVE674IQ==","signatures":[{"sig":"MEUCIQDi7HwxUs234ee/Yq+XLUk+bWSxdNzprrTRDS/1wex6nQIgFH1lutpjoxVc1z0BoyejBJtM0SKEGq5n7JkHVKEwK5U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":942310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhLUilCRA9TVsSAnZWagAAJZwP/2YASBdX4RtihYor34gp\n7rhti56iv0k+yi7K1btY4hefUSJXCpgSSZv9mAx5Ea+60iTPmV2Bp3bTqu6U\nJznYSQ6T5HqM5/9tZSm6nksnU306sB8kTfWBLeqrvcJqZdjlx99T+ulP1ImN\nXFQ79KvjcOaBSPObWm85BZynVcWtwQF2h1QYk8U0xMCqyO3VPQBdNvBQ0RsL\nyiKN9+CFwutFn0JdnBHx7pnLbFr/X424n1VgVgrrDECy+K6cb1AoutsY8VJ9\nuk1dkNi0+Dk86ycyTjxIBvaIur5VQ+uOU8Shb2aFYWjUsoluJb9z5va0+rWo\ngRQpX/gUCXzMHbvBPag60vnHMkoD2rOu/K1xo6j2OLpaTVhYKThvkE93Ze1N\ncppfMHyhO3Ha4ciPVrViKD4bqNftZlrkwjUJ7wcnxPWRVeUUDw63/KI/wSJ6\nwSmCHzG5bN3IiDgWSE3RcAYuHugOc1Uwek+q2B71ZjHuigT6AybdzFLFYvJm\nqcoI9WG/Z8pWSlo2DyJR0dS3gyUSEL6TKX8wlo3NmqfUT3YEo5F+zQnSLTq1\nwhvjVOoO9xh6QG6BgWwpUMCYAL/YyHHIjWFA7OFVsNWCgofBJ0uWUr3cW6UE\nbyn/IL2sq+1qHsSBtfg9P8WYjhV6X1xPrpySTPb5+sT6STz77vPxzOsoQJoi\nF/nm\r\n=X9iE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.14","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.5","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.0-preview.2385e24","@microsoft/mgt-msal2-provider":"2.3.0-preview.2385e24","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.0-preview.2385e24_1630357669511_0.4624827485648124","host":"s3://npm-registry-packages"}},"2.3.0-preview.aaf6d02":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.0-preview.aaf6d02","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.0-preview.aaf6d02","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"790efdd1721edbf16288b452ffc9cec4e1230aa2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.0-preview.aaf6d02.tgz","fileCount":18,"integrity":"sha512-1jIpQjdYWMPPP7PMTuZsIornWpL6aTP0x3giFmrduvvTIUjufZs9eIOCvARm8fK51ROh5kXWvEVKJjdYuWRgDg==","signatures":[{"sig":"MEQCIEKlK9rr+/w/dMzymXRTo0mqD2P6XBg9urGksdzLS7d3AiAxx/ol/nFYfxK1s9ak7VhKmxzOFqDXWlOeyxJGgcQXzw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":942310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhL9M9CRA9TVsSAnZWagAAdRIQAI6Ib++qKteNDrUmJEPw\nMo4S2IeboQcr4jI6dxHVyOJ5iT03YO5ni8SBKD65LGcIgPSEHsZ1Ud5HKul0\nulB7ajuqsY07wXni5DnUo/fNBreG2rA4dTke6RNTRcc7ygW9179LhaV+uMma\n31+un4T0yEz4UT+KSKp65ObiMG2R2SBzVwI2hkkAQyG8cwWMemvAZCEQ3HgA\n41/TBYEdaHBRvNtdxjBrVp0CV9lHiOagCPpL2TKu/iRlkCUpYBOveVpPZIYh\nD8Nk6ZDGLntiPTtxqeHTpOH4EoVSuTmqhBS4xjVNAgpQAg6PS6zbk40q9LQN\nDVVk02bf8FRZq+dw986JvnicZKSqxYr1MA84QrkuuU/mc2G7dquPIov9xE4m\nBn1qlsxqnDIcyKsmYB7CJ2NzG71EfHnfVDva+ATDkGfEdeibrpLrqrpCOwnA\ndGG46eGq25+RTTBozlonsy2irgy/VgEQ5WnyWrCIoXJmw0ZAajICduA6HM6v\nUXVOEZGJu1qDEOGnLji+rI0hZv3Jd+5UjlnUAQ1G0VSnCTL8bOYjAqbK/FrF\nJvnJYxbW9qTlXtd6prqCXk/SG0sl/mSzJCeaWjJrrU7j2YhPpLFuBMVFDVlt\ne8FSgK53zHDtuYRCEcO6GiDW7wuFUQca7HsPH8C241HXjQ3WuBDHVFxULdqc\n1Hbt\r\n=Yl+l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.14","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.5","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.0-preview.aaf6d02","@microsoft/mgt-msal2-provider":"2.3.0-preview.aaf6d02","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.0-preview.aaf6d02_1630524221360_0.7522645890353756","host":"s3://npm-registry-packages"}},"2.3.0-preview.3877d84":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.0-preview.3877d84","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.0-preview.3877d84","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"9f4c210cc6f4266b3cc64d3abba875c93a1949a2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.0-preview.3877d84.tgz","fileCount":18,"integrity":"sha512-gGPE7hPEDroUzpIlHtzgXmtuL07DXlLJ+EYFEwjzDTW/cWvf5wYgR7tSPLWZDb1iwGNW7PEGSObjyUdXQA4N/Q==","signatures":[{"sig":"MEUCIQCbz+Q6o6C36Jvrcxz9yiPpIa09mjYYR4+Rd4u2qhBP8AIgQY+UobAbWqZn2F7c1Btnj4JDK+dXBbaYsjVEKNDQ+3k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":942310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhL+9BCRA9TVsSAnZWagAAlpIP/0oyigDV2TlxIrUvD2hN\n5Y+4iE6kJmesfAmJ1Ud7nVmlO+bblcaUGfRv+z2PlgkE6IibuZ9AzPRKR2py\ngP+uWjq1BaY4TY9kt15Cw3dtIjK+s6oxGx5PMhVb4p1L3w+uwiHRM1Ifoh5T\n//2gbQC3KIgApYkZpU64tu6AO4Ad2C26caC4TyXz0hqWInmE1vtKH3rSIhaw\njDypOhwxqBHRg8bymD/qSgBFAlNkgVYWsbKB7fSEXHTth6u4ravLJ/869jub\nJ9HZ37Ndi3o3KhSl8C9c8ZdSpOEl/RVLGFTS2BBoa/aScqOch21hLRo2XOnb\nx3QXOoxOOWFXkNFXX+qqlKrH2KofQid/yyFoPz3bIPeyN9edleW8rQcu3Ggb\n0ALO8cMfCpUPVH22krNRkXBDB9j2gLeX3t9CjhfxgvMpTaZWwF7+3aMAItuk\nnoSXV5esNnsLnlK1cW9RDYHClTPBOSnwv1F65guAMEg6CcZRCrwi499eNS46\n+HdQNBx7d6eMfnP18GSB/eLa6sUVotRAcb/FHTyiQcGQdlLLsnvDPHK/2520\nmmn1A33Nba58FMGP3KNvSMO/CD9ExKfEasBntHXEANNHKG7jcHheQOE0/m7M\nZR3VMkc2N77xPYDuJucdFeP2OBo4B1yXsgpQXXTlNaX+/DqzAx1H41D6qGiX\n/zoT\r\n=slWF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.14","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.5","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.0-preview.3877d84","@microsoft/mgt-msal2-provider":"2.3.0-preview.3877d84","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.0-preview.3877d84_1630531393147_0.020725032361503137","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.ea07a06":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.ea07a06","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.ea07a06","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"c2f7c235b388dff2f801e86ad57da9d6ef246175","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.ea07a06.tgz","fileCount":18,"integrity":"sha512-7hMje/9W/SdTkdMrvdy+u6VmvW4oLiDVMncqAtNFfL9f0sKh/O6OyYL0Sq71txWBWakzCUv+jEyUuMz9Aida1Q==","signatures":[{"sig":"MEUCIA6ztvNkOONh+ThVGyrc5GUZz9aYC2VG+9l8troVJOArAiEAnbVDIpE8L1jIvmVsXOkF4Pbk7ZlNR131TFa3W4u0C4w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":942328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhL/X9CRA9TVsSAnZWagAAc9oP/i6qAG7myJpXW+QBvA8n\n8eeKIAJEPizY1ng65Z/duhZP/DZ+LvhC3xGEAz1UIhL70Rqv3kssvJxydFLf\nq5PXCyoiBATrlztoBbxMHGL5sN7/Q3ouBkA5FJb536XHSCH7fPdsx5VmUbxo\ntDoS6xNcs4EJff6FjTwmM6MvHKEWYJn6sMyI6c84LOwgfcE9U22nOOuy+Akd\nsMXxz5OIPn4lBq+jpxmfZx9Vw+V9J3L/+02J2i7EW0x2Pfyc7r8vnvB0q3z3\n3MjwFjEfz1RYdYWh6GjuwrxxLizOjAhpwmKXdEWXX3vOVIBGH4OVddBoXa1E\nxY5sBnC4j2zlxRrJzw4ZwyWdbB9HxB4snVTHks4fo3siD1WpPie/9lpkoVT1\nFnL3UsKz96/85ETfGPsxEw9Hzx+7xh3cnRosq08a0NAH19zKnH8AURGA03Mh\np1gs6gncVUjGGlWr6eUIEbpwYvfOxYucAouWJGHOeLIUbb0YU9TLxNgCEhh3\nA519K/TbTrjagF4ejQZO/1AYHXgVuC99J9rl46JF4TWHLH52DZLoUyz7AFKB\no3X+f2/1SpJN7FXTqiNhy2PPyRMFoQ/HdR14PeyIjB60mBf7R+T5d1Rlgryn\nNnjyI7SMuHN7fX4fDo70iD/EXUI5a2ADXF/+Dnn1QwkV1nThTwyVfccxPAi2\nSiWC\r\n=3Usu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.14","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.5","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"3.0.0-next.fluentui.ea07a06","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.ea07a06","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.ea07a06_1630533117044_0.6637619615577541","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"bc5022bd29fbe89ca8917bc970713675241c7b7a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.0.tgz","fileCount":18,"integrity":"sha512-xn+SfIjDfRn1/osY45FpYmm5pyRqp45pCDnMUfRkaU8dRFk8nH550Jp38gQTvwT3EhAwalpEG7pghcyYlLmssw==","signatures":[{"sig":"MEYCIQC+/4WCJwHQH1aRhIj9aZ2tSa42DcaYw1quP9W/WBsGKQIhAJAzE5GYDIeogTCvcyHr8gbYGUfqLVlQKKvZ8cchbaxJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOQ15CRA9TVsSAnZWagAAWzUQAIhV1KJBKgqWS4sZWVIv\nr0xRAlgWYvYLfnnu9p5oq1q6sdctrcVTqgMJUotBTpZuLHsTlXa98UBNGsnU\n2LxhT5oieFD9D8KYDvIutpNqILb8QcuX1hNxy5lSoCaxbQjMDs6YXYJ+IucD\n5exA9erBBFmFHpXTH9a/RagXks3jpBEgqn0+8UrUUQ5fbjT9Wrove35Vm0jA\nAuCd0IVUtJeRpT+E/wvKR0O0xmHn2ZEJ/uW8YstCtnRCBsUd6CHhG9GMTok1\nvvbMiygqgAqaAMjxULVL5M6r/Wp7d9SGtB0bRpO32e+Ruq+dAfS/Behyf4p6\nPEHdUVZzSiHox7Zt41Od+ANwTY0J47j7tPE8EteSwbJoHdlNMpsVL/6DJ82u\n8SOLZADQ8vf4zZb7kPz4fbZuvrplKN1SfigyeshcSQkRimSwYGshwW8r6M2R\n//pFCfhOw/UcfAWpw4I26NzHsCGE/NOSBRf6mWnpbxgG81Vkwtg48FYeNAcA\ngqajaNsbbXtk27Q7fbmYiPASL/mdVfgaR1IuUMzlEuUsJp8Mxqn7pwo0M+vy\nFFule6FwKxu/AQM1D7HS/nDJuxKYmiOaVEOenvcERDE6rSwn08iuejJ56wSv\nz2v2YuMCuD/4gWSL9H7AwXofYNJM3unxfIryaDzGkC8jxQTlLoDqxxfOy/j5\n69hX\r\n=yvca\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.0","@microsoft/mgt-msal2-provider":"2.3.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.0_1631128953213_0.30093151365564164","host":"s3://npm-registry-packages"}},"2.3.1-preview.8579fb6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.8579fb6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.8579fb6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7a520d71368a76106c46b739aac07c350e27b796","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.8579fb6.tgz","fileCount":18,"integrity":"sha512-Ef4RS0nSPu80ffVV7i+gGbIEaJ6lRzeG43wx7phCcdZQ4pyxZKxF7P3whRDAEIOtQfONax8oo9HUHY+qKz8QRQ==","signatures":[{"sig":"MEUCIF7Tf8ep1RBQsSJu/F83lWyU8c8jP0/XO7YVB5zgP6XtAiEAwuTzT93//sJmHGa0PtBLFvkZYoszbEGFcbcBMWj5n0Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhORKcCRA9TVsSAnZWagAAPf8P/2O17DA5FdkB9Da8ezQE\n9OPH1FpGsV/Sh7ErGELO1yQaOmESmCwQQ8VbL054Zm75Ikgp6IAQubdha286\npLUlz1ndqWpQsiZAYH1ZaxgQRBDf9xqYsF8NQWIvDL7+DGm5BkVZAcO9YQEz\nTH1XMgkz5+fcH7NPO1P2E8arA8z2mdBBkiqzewm1mZLkMCiNOoXADBuAiWMo\nPe286Yg1Ycc/fLosLHanpYYQ8gYG1VO5n27gzLzs7l3TokId6WBAZrtYYI3z\nT+4RyWH3Pvf+neBX+OGGmnU78ZWOhXLHfYHJq8eUjNv5UoaMbeIHWvm28fte\niy0qIT0PA/HDbEJhY1Hs6xksoL9pVGfxXEJN3EMy9N8Xlzx2BiIgcJQtk7vk\nctqJ7G1wVm/O1NGtgB1ihlcScQBAV/CK209689uKrVpBDWpRrvCjoDAv61YT\nGw4AUaXS2/dGNT4jHtIRprgVLF/W3FH1l/OoSf+mmh50MtYhSUmktFtNP5sY\nngjoeNE64NvKvh6guEEbBukZqLfNVFdguIUXoADa3xO/cIGdFm7yYMiRWfwS\nu9U2r0EpGlwjBqrtR2nWVBUc6U2JvwZufSFlDM6WR2pSrXqenZp+PvfbNTPd\nMFkZ9+N0jSFA5UmrIl8kdO83+SoITQ5t3AQsFPCQ0yac2i8AcR6X9UbZahIn\nIp+T\r\n=kIlM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.8579fb6","@microsoft/mgt-msal2-provider":"2.3.1-preview.8579fb6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.8579fb6_1631130268173_0.8605448129252298","host":"s3://npm-registry-packages"}},"2.3.1-preview.80de89a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.80de89a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.80de89a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"79906ded019074cddc540426417f978f06a2cb08","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.80de89a.tgz","fileCount":18,"integrity":"sha512-YtTyv2vIR91xWOyRuHmMeIlJ3TTjl93JwL87XsAHyoaxPhpJ8OTYikpho9hyYw/B3ya4RUZe1hBdOJiHmJU6og==","signatures":[{"sig":"MEUCIB/sgB2JWOGpIEqfGdQVFCfv0/AfJKQKtgAedfHn2a4DAiEAhziajswfzPv6cGp9+7L0tah3kofGBhJ4r7GEkhZ2n4s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQNFeCRA9TVsSAnZWagAAQIUP/jFq8xsYJkLy6motzEFN\n6riibH2IG7xHoqEznzvZJnabnAxCVFvZdspQq4ghl0P+7I1QJqliayAsVLRv\nL5zufRBt0+8IN24xyVaK9A66RfRFH65X0/G2JeRmRfq8Jsdf86ai8rd0tYQ8\ngGqdKmUneHF5UwpMWDKaio3+xZ5GxkyM1maib4Bii4KPvac1Xv4m0oeKJL0f\nHsCx3GY/KV/cOuIIGaI/bK32SlXdG9kwBGOvvyFCjzk39aBs/nF05VSRKbvC\naq9Tt14Ey60pjbW8+x8bKdONPXEhYS9ydQS1QmMn9zAAZjjdGTdLXJyIv2x8\nw2g0nAh2Mx+wTIMCUHosdnH1Zp+PFnnJ8Hhcxx+jE+aJ7Wh5aOvxTow3GYev\nj2hWxymBF7cETJZiZ3UIaKy0PYc43zxB/oEIEfM6vOG/h4LYOV5ct7bpj18A\nRc78trtY89w/Ad3D+dMLXpTNQ5zr6ppzIzSKh8C4d+dOHp2uVvtzUCmAyq+/\nWI7bk+d7wimDAsSbdDqa67/SONZpwV12StioS5kZH2BYkLIC3MUW1rAKwL9P\na7ZZKfpNpSuLoCB0wQBnquS9REBGNtungYlHOiRNxqbNn8QMPx7iWrk+xzeA\nunO8yyMZfGvXLPiSnpmo9v+TnOiGKmu+ghZ1rBwTDSvtIOJYkG4Eg4cyyT2P\natco\r\n=s+ut\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.80de89a","@microsoft/mgt-msal2-provider":"2.3.1-preview.80de89a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.80de89a_1631637854503_0.6100156466641908","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.321e6fd":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.321e6fd","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.321e6fd","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"22a93cd1e84d1f1d745f12f0e05d1878ace4c9b0","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.321e6fd.tgz","fileCount":18,"integrity":"sha512-mtnrJyGwyHNDZPF9FMjtGzVFOl9WDQu4ATRKy31dXEUpxGu2ntiBKqNFZqFBCuFNvO7aWTD3LMdTar/wZB4PyQ==","signatures":[{"sig":"MEUCIHqrYHj7GUkr2jVJWfSrrmPqbqNCEiLkov+hqRU/CJWpAiEAlcfhkZ3oWqTgWNZ4vuP9VoYRr+qUspbGkyjBA/5RPZM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQk5NCRA9TVsSAnZWagAAAisP/0gVQUuZOF1mAldZU3zI\nCFlY1YQfLpCscpUMsCscnkazjIqmZu2NuVaARsMcsUaBW43IWuxWTCJ2B6TT\nv+HjqPL3CCQejozb9DyQ7RGyT2otrQzN1kR6Vtk81/iMsu1qhvEqNIpAXtQj\nPQh8aBax06IPzo5KTR9NHdJ0Lq6UxZ3nYRJaRNP8ArKuTFj7RGg+6hMwrh4L\nuJIubV3wOFczomrCQeHrb6I5AdEbroOTLKxTQqcA2xrVlzCdF8l5FRSM3Amw\nZ6yZOPCIW0C47234b+alKLrvT0JkQHSaF8Y08cBq0L0eyHnSrzcJlg8LWuPe\nr4k4N667Xv5KP4IIY8La1bg704mHK/vcNmMOTG5GHpxjxCshgUC1n1HTAWuA\nfVYZwMPo8lOKWI4gtl0M2x8UpfV/lxBAqmq/bG9CfTrTrmkcO4rvM2sLvCLG\na90jO7Q2yIpJcf8xqGpAhAPYK09xpStV+qmX3Ifh6LB8e4Gl6yjqtt77WLRT\nmW7CEjcBK86dKeN9NIhMM8mWtBeZ+nwahKS2qTzroWNXaa2x2uxEyC3O9pY3\nshY2CbqOUavPHc4fGEtt3jFuPB0YLEs/fxCtbbmtNhB2JEGMB6Z4+Yi0jL2l\nQQJ9SPdYUYWla49r3HSzgx3prfPrqyKDR52jwl7skBaL2TQi32Ved/w4KGDa\nsuc8\r\n=ofuv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"3.0.0-next.fluentui.321e6fd","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.321e6fd","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.321e6fd_1631735373151_0.24094109796948948","host":"s3://npm-registry-packages"}},"2.3.1-next.teamsfx.80de89a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-next.teamsfx.80de89a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-next.teamsfx.80de89a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"961722453213c3af8106d31cc65dea9518c9242c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-next.teamsfx.80de89a.tgz","fileCount":18,"integrity":"sha512-ohmZLasIaKMQf2gl/pkL9xgPcf+ZWpdGlegp7xbqTvJKw31y2c9+88yBaqS4ok8M4YMBwRSJrTfUxbZsWv0vZQ==","signatures":[{"sig":"MEYCIQDVw21TvTktUqT5xMzBGk2uTlNmMj+AJdI0jXRUp3cXpgIhAIzz4ADf5uqXKM/9hjBRQRCL/k8q7BAupsDaBiOXEk/i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQlKPCRA9TVsSAnZWagAApiUQAJ9k7f3PRyxHfJepV+9k\nnz4ZmRbzpK4Iw31McOMKkf+4mox1CkwoHcPASlKh7nTAjJvRxVca7Z6hpOH/\n8Cce8iPnRzNcX7/qJeE/0hfKVjZnUROPEaJV9a9eAqJMQTtqZlcVSykUUrcX\ntuf9hOzxL4d6CWvp3u7qBUX8Oe9VXZ5T70MQ2HbkqlWRFT/MtnJjZUuxtHIm\nNfqqx9ss1JOS/9ECBgoZ6VGa4lb6iHRXgrKPUtgLGJZfmk0fADmft8PInRMP\nZ84fXH0CNhJPwqXr3uN/R8/WnG/FRqsvQMlbNYDwVEVMB3oW92k6fJIBnjCc\nneS5sNUicHHUt4JodZRVoMCdjLXQiZ5j4xdFiqmboKuvpff4oPey3lvAf6kU\nlP2eG8DXwIA6jtgJytw2s6hyCTS1CaqsDdqmCIYV1JvOuAJU/UU1UzGeWVfB\nZY2lYj7Vlz4AGGjRZeuOHxB+y1BjUYmh9MkMknV4UlGvrGKCThpK6trPaZH4\nlZjXHbZoCoL5qQNtWQiqdksyvDcJue+y9O5RVwb0uqiYgf/ig4O4puy2xhz8\nOZUNSmNQIzUc+eLszwe+oE/5RC9tC7+Z1DtYivkCiz5u3HopF7wtLLQwnIaA\nC+nvDzoTsF4jpbRQ+68gr9erq8xDNX6k9VAeC6O4KeZrQwa8oUSKUw4kJ+v4\nk/UG\r\n=PDJF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-next.teamsfx.80de89a","@microsoft/mgt-msal2-provider":"2.3.1-next.teamsfx.80de89a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-next.teamsfx.80de89a_1631736463600_0.09403413221228996","host":"s3://npm-registry-packages"}},"2.3.1-preview.cc042b3":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.cc042b3","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.cc042b3","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"c5b311f1626b77d0657ca713b9bb6a478f9e0685","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.cc042b3.tgz","fileCount":18,"integrity":"sha512-0THJdb0b1oQoWrVGbQnIw3GlKFuZkbbQP0+noNPeSjZlxV6JfO2R8xcN4tlh7II/1emQv62nOoTT7xQRdEZlHw==","signatures":[{"sig":"MEUCIQCv7qry+m8BQKIcm49Zhmd7UdT5/L2++FKSRbZAd+T6XgIgSoP7JLrsT9eSU8AHqzJJaWcAkAMkA2O/XlPl41X2cYs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQlV8CRA9TVsSAnZWagAAjpoP/1l3meWONgycaaHRhfQT\nMinR7VkgJzA/bBIJiRASjgrzIUZhZuBoF3rOsSk/7KJHYJXuLW7tWDt2NgsP\n/j8UeUmbhcjyV4c4NLF4jZqhY67QPUSJU7hy6FTJh7YV1tcSHYWT74kp6gRq\nItCQmFIqxQfJpSoV7/TLVRIBF8wcWTr5rdJ122kp6IKCw1cAwN6taMhM4Vs7\nPKRhQR8HcfvL2HmZFhEwux2j3Tle3i5b7rbSRMmIegbs9rcuujpoLrpWOGO7\nDhQG9RFW2+uW0xHGSZbKLen56P2vuRunJ1lPmeDOMlZWLECE2n3CgEXgGDW2\nEXmdj8EZzJ50peGMKZUHSj/+C414NTY1aoLrHvB3yIUPuta6bslEOmdyz0w1\nu8PkOL+01hay04iItVuwhlSpQ4Xg7MlIHdJiP6gJEVvavRg79OfZhDuIkRju\nKL4uDV+XMnmDVXzXfWF/k6DmeUQCxlsHpcJiVhuWEPMZVH7KlaWwfa8o61E3\npRqsni3tThPG957TQlShIB8YMnGOe4ib8GQMngA0kxmSuuBJ0JJXqBqNLFK1\ns3HuOOUbQEcAr5NUNv+8xLmaoxjLEGq2yoyU4HhS0TI58Jsd98My19/MpTdo\nz5jMzEqav+dcl1cgWSYMORMBFljldUOglghtiQ0346kDKGKqQBTeS+fUTSO5\nYAc5\r\n=jgLU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.cc042b3","@microsoft/mgt-msal2-provider":"2.3.1-preview.cc042b3","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.cc042b3_1631737211901_0.033537460890304294","host":"s3://npm-registry-packages"}},"2.3.1-preview.4cea86c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.4cea86c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.4cea86c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"3aa554a29edb211ddd913d360b537976146fa92e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.4cea86c.tgz","fileCount":18,"integrity":"sha512-XXLFKcM+jQ3KLhpZBMPHFLUQVb9y4z4n5OtCiP++AOoFkPcYdCnZhdoRIBmnupecRZlLpn6v+9FCwb0A1LOMVg==","signatures":[{"sig":"MEUCIGYsV3N//+TxRQjlBmedK0yFO278Mmhq+H0dhGORY+y2AiEAwm5vSC6hrSgUisX707sFPDbqjOklQRMiJEmRwKExBLM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQmZvCRA9TVsSAnZWagAAh/gP/A5DCqVwhjIXMuv0/lth\n6TA4nCG1on4Db1xy2wASYZ1i/slo0kfVUwIFOkTVJDXcPlTBQE5BdsVgAgqd\nb4JBH0mMO+5bNgDY9+DgGS7UvJ93Hdwa1OrFiL00oDDA49EFjE+v1R8CGm0R\n2K6tiOh/xkOG6CN3Seaa/s9/vd2pD3+8hRYItszaKGVS+P7PQxFJmpozxjVF\nI/49qZNFvh92ghHxivFaEi1ZElX7pg5FbAZ6oHoEXul9Up37HOxIJVHwCGz2\nvuvW6WVyv4+5ywGGxZhnSbrOZDctVUQPWQd0EJ+Esn3nwO5K8SHaEeefnW8R\n/KMJWztvv/JNGGjq9mfSlHJ2gJIR6Stt8Zb+WEhSmap+PxXWCkRz0U2Zr2WE\nW5bJubzsdxBYSXXqQbP4IETYQRIhy/DHwrZN9a0Dy4e46/uddcB7AIEMVqJO\nHAk34gYKXuNbb1zmNBTp+v5hXPm2C7464uHSqVbjHZQ7ut7La/EXgbxwcOKH\nuKhIgdjMytnwxIR6oXfdet44nBZ+zoEeC/luDpaeEWL3C0DM17smK2JsVmst\n/hvl/MQO8tIBKbCN5W/C4S8jgW4nH1WjSt35++Z4wObBmF95rNLEMxQOzlwn\nr4nIGi9g/7S2KR4cM1vhugp05oyJxzlhDNoY5tsfsYqfH/pnv0UMWyXsSKtD\n0n5l\r\n=1bCd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.4cea86c","@microsoft/mgt-msal2-provider":"2.3.1-preview.4cea86c","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.4cea86c_1631741551644_0.6649644045717213","host":"s3://npm-registry-packages"}},"2.3.1-preview.e68a1e6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.e68a1e6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.e68a1e6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b447f5c9e0f72e4a0bde374f510e699e9977e2ed","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.e68a1e6.tgz","fileCount":18,"integrity":"sha512-Ov6G2GWgER+ji82rzYcDDN7mZu/aTD/MZFSwcaw8Y08bjwcHSs9Np9sTQwU0hiLqNU4PEtRp60JVW65VHgCyng==","signatures":[{"sig":"MEYCIQCS5RSYp6OleKqUgNd92wC97RBccvy1m0UMjZ3p3GmHdwIhAMwpwTOz1/Nr2aDlWmsWA11cYG7ovdD3PzNLSJnZxTup","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958874},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.e68a1e6","@microsoft/mgt-msal2-provider":"2.3.1-preview.e68a1e6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.e68a1e6_1632243809886_0.07271396065417934","host":"s3://npm-registry-packages"}},"2.3.1-preview.ebaf278":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.ebaf278","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.ebaf278","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"91f82f358d866023417d575788f94d64c1c941b0","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.ebaf278.tgz","fileCount":18,"integrity":"sha512-AtQ4r2NkRz9akV625AVVC1ACWwBYxxaXvJmnhKyScajpVVENNomKXBBJjXPRlZ71+txhbM+9lhv/3Hm+yecAPw==","signatures":[{"sig":"MEUCIQCWvIX5ULHArug5CGKHiiTWseg/LC5MljueIOx3l6Cj2AIgS4kGH0eai2jO92FMHvhB9aNMwDXcnIwOB8pgIjx0ZQk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958874},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.ebaf278","@microsoft/mgt-msal2-provider":"2.3.1-preview.ebaf278","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.ebaf278_1632340551437_0.06532347431056351","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.51aa656":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.51aa656","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.51aa656","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"117d4d959d4b575d34e59ab4a654b16ba5cf68d5","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.51aa656.tgz","fileCount":18,"integrity":"sha512-Z/9Aoel8YVMr4bkgClyhOmQcbnz65YkSCFwGEymt6vwBUGmZ3Dk8i0X1aWkFC8wWAU33sHFuPvJ0YreDxLQB3w==","signatures":[{"sig":"MEYCIQCPGkIQWF5Lg8u3vgr1SNfky5yRgGV77BiE+7h2yf9KRQIhAOOystrmuSsWFtRgJlH7M9hINMlRvRTSDgvow1td/2Ix","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958892},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"3.0.0-next.fluentui.51aa656","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.51aa656","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.51aa656_1632422429750_0.9668882222775805","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.e5e86bd":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.e5e86bd","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.e5e86bd","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"589984e2d01b13a00b3ba271c57fe92ef9d514de","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.e5e86bd.tgz","fileCount":18,"integrity":"sha512-BLkUjmBAEHev4mN9JZc1r1hBcpPymLJVfeDI+WtDUYGoEx+jH/Mynn3X5Ctcbzgwqr4ZnWWuqOK3VQHyHl6ZMQ==","signatures":[{"sig":"MEQCIGZA1pmDT8DAO6+QX06msmbPZSkmlD6bRepJvKP/n+UJAiAJ+MhwBzxNfLNZV3LVL/anSye1tTu2/Pg0wwh4pJb/ww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958892},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"3.0.0-next.fluentui.e5e86bd","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.e5e86bd","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.e5e86bd_1632945101339_0.9853589123164568","host":"s3://npm-registry-packages"}},"2.3.1-preview.c46de5d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.c46de5d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.c46de5d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"410a2c831208db1af7b23f89842d9037dd26d127","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.c46de5d.tgz","fileCount":18,"integrity":"sha512-BchqQRhdKuazzQkkB+x9Kvef/8L1dopM6gVqspiT9BxabIcv2r1mbBsOmrRVk5y0dPLuDL2tU/teMlpQgpvHSw==","signatures":[{"sig":"MEUCIAsOjt6FJf5tSv0+VK2F1m2s9HUszGInELPjPkhBgUmXAiEAxLjluW35AzMArKxqZI5yPPE4NfeMSCsZlQH3mItSozc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963187},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.c46de5d","@microsoft/mgt-msal2-provider":"2.3.1-preview.c46de5d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.c46de5d_1633566517962_0.7168568615982569","host":"s3://npm-registry-packages"}},"2.3.1-preview.2193f2a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.2193f2a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.2193f2a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8326f3338b7205c0298b7b11ca0d0a6c05d8d3bd","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.2193f2a.tgz","fileCount":18,"integrity":"sha512-LxuwliRR++HHLTCngLO6M/pt+Hc57Q7eyOp6IJaa7NHXichkBG6H4BiRyG+vElONt5a7xWNJjm1cEQxT1fZuJA==","signatures":[{"sig":"MEUCICdG7jyJZLtOY1tzNfpOM7llTO7DWWSeSnzlSpUVFyXGAiEAopfIPVqMbyrQ5YDLyKo30BTvaMbKFdCQ4hH6p/QQnXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963187},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.2193f2a","@microsoft/mgt-msal2-provider":"2.3.1-preview.2193f2a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.2193f2a_1634070989933_0.8747230735766052","host":"s3://npm-registry-packages"}},"2.3.1-preview.d17a8f2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.d17a8f2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.d17a8f2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"62ed9773407897157b59487cbc6c4e57d0379a97","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.d17a8f2.tgz","fileCount":18,"integrity":"sha512-575EI6KrLA5Udrn1Pxk5QzrGdwkYukBExvWqv2CWWF+jrSsmnUWYdVvrNr7sOvQJeUVo4NAQdy9jYAcR12UTPw==","signatures":[{"sig":"MEQCICHmv45C9hy3PuBhYI8tx/+oKHVaMdX8OUVslWUn8BFMAiATlimU+ppIVm2MZBd/aYaH1dfebsEqWOAMRJxoI3gM2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963187},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.6","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.d17a8f2","@microsoft/mgt-msal2-provider":"2.3.1-preview.d17a8f2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.d17a8f2_1634663131792_0.05182483053677389","host":"s3://npm-registry-packages"}},"2.3.1-preview.1cd7291":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.1cd7291","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.1cd7291","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"162b49d851b412d403637f33b8b95b2b53cb31af","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.1cd7291.tgz","fileCount":18,"integrity":"sha512-qnxIXVP4273u56SiCVZ2FymOSmmiwBuzETDXAb17PdQCAptTvkyfD/8Q2LqhwVn1sJFhvKfpR/ztp8p1AZCRuw==","signatures":[{"sig":"MEQCIH3oRa5qzCq1ASwaPgtQvLkj1IbKsmwWGYsCOwtUFDT+AiASmsgI7C7/pBxpBLzwu9T0fHoZBv+fNVNSxfqQg17U7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963187},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.1cd7291","@microsoft/mgt-msal2-provider":"2.3.1-preview.1cd7291","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.1cd7291_1634833077831_0.16688795480465624","host":"s3://npm-registry-packages"}},"2.3.1-next.groupTypeTest.5d84b38":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-next.groupTypeTest.5d84b38","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-next.groupTypeTest.5d84b38","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"edc571cba4f4f327bc7db254af5d2384801827ff","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-next.groupTypeTest.5d84b38.tgz","fileCount":18,"integrity":"sha512-on+rQK3UhapUcyfzw/yv75o2A/vEOkeyCOZ1sfEscY7s8rMp3FMJHGUjoNx6slDx+SVouN7zvKsLIXEidshvoA==","signatures":[{"sig":"MEQCIDjwu8O8Ip6nrn7yPQ9vYy6274uRnmcbXEJomVLyOxWMAiA4V6xB2lPsVxUGYVT/5WMAJK45soF4xDDl1xfYK0toqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963220},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-next.groupTypeTest.5d84b38","@microsoft/mgt-msal2-provider":"2.3.1-next.groupTypeTest.5d84b38","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-next.groupTypeTest.5d84b38_1634838147928_0.26645793161386333","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.77e1b20":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.77e1b20","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.77e1b20","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"085208a3e7162bf22d7af44fbad07bb2f304a532","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.77e1b20.tgz","fileCount":18,"integrity":"sha512-FMaCEThsgnEBH/YxulH1DI2XrJDxBN/DxhU3aK8zXF8+IoRhSSG41FHQwanDImPq3GOkTvzVCL9pHBpsYVNQiQ==","signatures":[{"sig":"MEUCIQDCSg65XhOAR3cLrT6ewrTLcbBUdxIsPt20UItuKm7d8AIgN+ALxS+a4bzno+L0VRJZqBaOgwxzbfy8z2TwSkcJOOk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963205},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"3.0.0-next.fluentui.77e1b20","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.77e1b20","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.77e1b20_1634859710359_0.5427134303972259","host":"s3://npm-registry-packages"}},"2.3.1-preview.ca31949":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.ca31949","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.ca31949","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"3d4897695a98c6638122f38a3ae84e5dea35f391","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.ca31949.tgz","fileCount":18,"integrity":"sha512-5chYfSt2c3HYxU765lHGEhv9XXROpZCDnLxlO7kCI5WOEAS27wBni1ql4Nv3Fz2B64/yr/utu5AsG82u0kuH8Q==","signatures":[{"sig":"MEUCICvfeioqtkQy3lwYXpbfCFM4qFz46wiFll3TCOV7r2MAAiEA7TfCRTbXWxPqMgchGJB7pkjM8s8aD1yQsFKtMjXy81U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963187},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.ca31949","@microsoft/mgt-msal2-provider":"2.3.1-preview.ca31949","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.ca31949_1634859869413_0.399384760336005","host":"s3://npm-registry-packages"}},"2.3.1-next.groupTypeTest.07d923a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-next.groupTypeTest.07d923a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-next.groupTypeTest.07d923a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"3941aae64f403e57382f703f1eac0a547590a378","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-next.groupTypeTest.07d923a.tgz","fileCount":18,"integrity":"sha512-ndcMzvqK6pJ8+e9MaeeRAFRGjzC1UeNdbYwEyyMmuabTvCNJhNA1UNYKCfsSjCCDYCov7Y8+tTodslOc8xd+Sg==","signatures":[{"sig":"MEYCIQDZAQSvRLN2v0wz+YX+2noPJjtfGopHUQxpXkNUj8DXxQIhAKB1Ad30ymjv8lZTItzLR+VUe+4KVvlp9JMU5E2kGgoQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963220},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-next.groupTypeTest.07d923a","@microsoft/mgt-msal2-provider":"2.3.1-next.groupTypeTest.07d923a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-next.groupTypeTest.07d923a_1634859899521_0.23663768785054518","host":"s3://npm-registry-packages"}},"2.3.1-preview.a25353a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.a25353a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.a25353a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a910062ad33ce831805d0532013fa7621475c5a0","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.a25353a.tgz","fileCount":18,"integrity":"sha512-PqM/V0BwEW+SzovTZ8b8z6UXTYZxv7L6eqrhrhNX3+LkqM5kX4lRajZY3ucV3CokTt10o1MkqG5Ed7it49hD3w==","signatures":[{"sig":"MEYCIQCPre6ZrYjOzn5vXg1J8P0OeSQNDLQhe34i4ZaaRi+UJgIhAPA52NoqECBXNKR6gJ91SE+JxlyZcpZHM0A407Mlzinb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":963187},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.a25353a","@microsoft/mgt-msal2-provider":"2.3.1-preview.a25353a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.a25353a_1635439160977_0.7135820443604008","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.80494f5":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.80494f5","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.80494f5","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"cf68cad26c1a577993aed3d77c53aedd3352a89b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.80494f5.tgz","fileCount":18,"integrity":"sha512-c7vCZxMldVJrSGxC69ewHXc2x6KMTrUgS4kQYb5GSVTayRPLemwmY0rc9oHdFvPhrjarrSYVOX5Snp7sgaAcuw==","signatures":[{"sig":"MEUCIQCErTacJZwh8yRaaECMrt1VR3JGnYTKUrBfvtMmxEjZ0AIgd4QkJHusJ7U5pvzRV+SuGZz4eC/Bqniu5ve5TmtafIA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":964942},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"3.0.0-next.fluentui.80494f5","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.80494f5","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.80494f5_1635872216817_0.46805588821654287","host":"s3://npm-registry-packages"}},"2.3.1-preview.83d39ad":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.83d39ad","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.83d39ad","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"93e0e98dcad7c86018a1237e8487b24742eef16c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.83d39ad.tgz","fileCount":18,"integrity":"sha512-jOaO1HoD+LgFIu8lFi9j5kwNXOL2SvE9Ymz07hFT5ObmniMCTMjSGn6VsFUJ3wtx338pX+Bb2SYRXbE8pROk8A==","signatures":[{"sig":"MEQCID5gtvHrMum/3Bt6ppoPORYGDR+B8hnW/qjwrbp226BzAiBYuBfna7fGlNKM2U6xXP33Mu6nsEFPdI8uWhb5+8hIdg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":964924},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.83d39ad","@microsoft/mgt-msal2-provider":"2.3.1-preview.83d39ad","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.83d39ad_1635967484616_0.38404145870309514","host":"s3://npm-registry-packages"}},"2.3.1-preview.d30ed97":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.d30ed97","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.d30ed97","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"18fdc2b8379317605adb2923fae3dc32e10900d7","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.d30ed97.tgz","fileCount":18,"integrity":"sha512-nrSGDRP6Khqm5GxOto1C4sMpvcR/Dmb8SS/9Hom1076h88EZ5SGnY/sHR1IyTvDc8b+KIezs7U9m8yCF8nLUPw==","signatures":[{"sig":"MEUCIQC9/cleWM75SZOcE5mg7L+zRJt65SKvpSaDZx4LuhHrEgIgRtuqVAqt5IrhdulLIelmIpebEBDRa9G+4yteYmasbiU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.d30ed97","@microsoft/mgt-msal2-provider":"2.3.1-preview.d30ed97","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.d30ed97_1636038935288_0.953347578893684","host":"s3://npm-registry-packages"}},"2.3.1-preview.c34f024":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.c34f024","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.c34f024","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f750642ec49bd2b0ec8f9c636d3aa8e3f93e0563","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.c34f024.tgz","fileCount":18,"integrity":"sha512-4HYgNSke4MOaTh3W5cNb9KBLtXVSzULnJIFyvpzjirIC7OF8kjxgzGjcq1ZMnL773VysGLJDCSZKIbSNzA+PCw==","signatures":[{"sig":"MEUCIQCOvMQROyPJ1LogL7mwse68UGhLss6iVYxm3GWp5WLUwgIgb1WGOPso04kkIf0UK70pAyMkozRihnXwJmNdO78xycU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.c34f024","@microsoft/mgt-msal2-provider":"2.3.1-preview.c34f024","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.c34f024_1636039043209_0.5389630026993983","host":"s3://npm-registry-packages"}},"2.3.1-preview.d92acdc":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.d92acdc","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.d92acdc","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"bc316be5f56e8573459b558e7bc00e2fa1593341","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.d92acdc.tgz","fileCount":18,"integrity":"sha512-h0vX3qTumrSJ2LEE+iDIpapxsT59OKG/3uzcEMfQI/8xkiUgs74/C2nQP/k5b3WruoUpMa4V5zPJCpCvjx7YFQ==","signatures":[{"sig":"MEQCIAsM6ogZfn8EetKiq0MwUUF4Ty+yb1F3nz7sSXUbQfUFAiANxPOC9IwDye0IQKdwFZjLwfZZNBiA0U17F2r30Bp8Mw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.d92acdc","@microsoft/mgt-msal2-provider":"2.3.1-preview.d92acdc","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.d92acdc_1636039139096_0.09021283766303534","host":"s3://npm-registry-packages"}},"2.3.1-preview.7255a8e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.7255a8e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.7255a8e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"44ff80e6fdebfd29b0365c8f581e51b61abeafbe","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.7255a8e.tgz","fileCount":18,"integrity":"sha512-2S5Cv89/5M+2ovEu4hOjUtCZ7NS2l0/4qJHr+upFym20Cp8hsbq6aXUCqw29L9ZkztgOR7VOdROU29c+gsHspA==","signatures":[{"sig":"MEUCIQD3U3SM8odkSf+jZWqHNI8NHhjLLMNbk9htWUQOUIIxngIgawa8u1w80XTuAD/hLavtDSr4KB05M6QDLeCiQXU3PUQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.7255a8e","@microsoft/mgt-msal2-provider":"2.3.1-preview.7255a8e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.7255a8e_1636039875001_0.7669239934868943","host":"s3://npm-registry-packages"}},"2.3.1-preview.8f6b77e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.8f6b77e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.8f6b77e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a15ed978c01aa13c5eb4c7cd9923689f12c80bd1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.8f6b77e.tgz","fileCount":18,"integrity":"sha512-RHPoPYp0Q7RIZDQHywWZlUFv6Xo0wVIAg4PjqitWSSBwnMiI1ATwP3Ci+dRiRANqm8Tr9G6YpdKwh1uR9EbuFQ==","signatures":[{"sig":"MEUCIQCeyzAxJIk41T7u8qVvYo1VMjtfheddASPfAgEbjsNmIAIgffcuGmi+G8OHDNahAmsK/eOZl+XIDMjnfzvLhX+QVHQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.8f6b77e","@microsoft/mgt-msal2-provider":"2.3.1-preview.8f6b77e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.8f6b77e_1636039945103_0.5254854043680466","host":"s3://npm-registry-packages"}},"2.3.1-preview.448db9a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.448db9a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.448db9a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4265f453919f460d3287b6262cf6c00187235eeb","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.448db9a.tgz","fileCount":18,"integrity":"sha512-6UhXbUaHRV2dMwl4sxGdZU9Fasw/nXgR35W4FLomCHxgeov7Qf85Ysupi6oe7MgnRhMCZZbtVbysD96gebYENA==","signatures":[{"sig":"MEYCIQDKZ99ezJRyVhyt8tmSp6rCEAVziPzezR7NPzEzlb61OAIhAOSEHiXD38RHOY19GQ1OVPuYXBZTy1R9GGlQo8J8H8eV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.448db9a","@microsoft/mgt-msal2-provider":"2.3.1-preview.448db9a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.448db9a_1636040067750_0.4649063119593724","host":"s3://npm-registry-packages"}},"2.3.1-preview.4e37983":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.4e37983","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.4e37983","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"11a1b4b0ee885144a3e53e58c690498304245265","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.4e37983.tgz","fileCount":18,"integrity":"sha512-AUc9B0EnwM+mM7ThKEnFBcShnDZdURBazMmW//BQ2JpSAVqQPRVZ48XkWEA0wyP5OfA7MGx2WPUQZJUCjVwcfQ==","signatures":[{"sig":"MEQCIFGkoBqHYMW0cV0KDfSbZFH4vC++t+wsYTFy78eEGVYsAiBe+t+PwPBooYW9XKwPEwh2hITZRO6BFY1Ik4NrHUMJzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.4e37983","@microsoft/mgt-msal2-provider":"2.3.1-preview.4e37983","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.4e37983_1636041390755_0.7169339965015522","host":"s3://npm-registry-packages"}},"2.3.1-next.groupTypeTest.e879764":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-next.groupTypeTest.e879764","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-next.groupTypeTest.e879764","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6bed45120a1073c7e16c011e756eef020eb0f325","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-next.groupTypeTest.e879764.tgz","fileCount":18,"integrity":"sha512-OXXFJ0hBjfP+psQ67epa9G53wn0k2cHDX77MXotpC/iKzHbZN8WbkEH57qLYXD8iIQV3MjbRa3cukY3UVmkQ1g==","signatures":[{"sig":"MEUCIHmbt54Evt+TIImRK8wLj+mSwMJB3cZByrtERkrI63pqAiEAxYqbO4SvjqqjtoObqq5mva4ywXgZdgPhQzKE34s5DrQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957918},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-next.groupTypeTest.e879764","@microsoft/mgt-msal2-provider":"2.3.1-next.groupTypeTest.e879764","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-next.groupTypeTest.e879764_1636041583471_0.875005360021746","host":"s3://npm-registry-packages"}},"2.3.1-preview.39c451e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.39c451e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.39c451e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"c8745e61157a2de51842f1936751a50144cb3db3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.39c451e.tgz","fileCount":18,"integrity":"sha512-dDHL4E5qiqfJ8bpyaLYyPwrzp8H+HYTRrSKHd2o3aJR3Vy2QL1qNZ7MDL18TnrcDwbjkbKI0REkxYA0jKmf6cA==","signatures":[{"sig":"MEUCID6udMWugNZafKItKJTaqtv/Z+ndtdfY7h0kIFDRpiqTAiEA5deAuCP1WDhueoPNHgX0yxPrTQOwRHCP5XsrnpEnCH8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.39c451e","@microsoft/mgt-msal2-provider":"2.3.1-preview.39c451e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.39c451e_1636042159510_0.5028548224868388","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.dc3193d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.dc3193d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.dc3193d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"48c04e1a8503d294773e6eebca0ad7606bfd0367","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.dc3193d.tgz","fileCount":18,"integrity":"sha512-ddJ2t5s9zIaoKk/fSx8K7hcXRYuHKb6vJlhueBjhWbRjWF/QUZ7O6/iIDUtxoJGcbvcrzWJgjfmVMCP51Xiykw==","signatures":[{"sig":"MEQCIFsBrHTJ8Z9Rbua8ygwiH+7rUe5HWjL2Xt8dw9/oe405AiBOUpJL7mCWodbUeSf7GmjHnpozg6AmdluezM3O08uA9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957903},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"3.0.0-next.fluentui.dc3193d","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.dc3193d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.dc3193d_1636044183402_0.15945589337634525","host":"s3://npm-registry-packages"}},"2.3.1-preview.ad6b37a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.ad6b37a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.ad6b37a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"39baac752cf0bbd387f9133f8f23cacaf8f6a85d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.ad6b37a.tgz","fileCount":18,"integrity":"sha512-46MV/jLB9zxYvNcnyNkyQb2Ww+CWP+qUtaPfFz/zz90Z9dOmEPcVXTho9uAfYCcxtkbk/eRPNz1k3GCMho+VIw==","signatures":[{"sig":"MEUCIQCAUFXWDYaC5d2v7SYlR4gGvpoSlHzxNwelkbAbXFKJVwIgPuWaGeIAcD/86P22XDxMALx9JPLOr/Td4lzh3YkR0YY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.ad6b37a","@microsoft/mgt-msal2-provider":"2.3.1-preview.ad6b37a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.ad6b37a_1636480621994_0.24833151889137994","host":"s3://npm-registry-packages"}},"2.3.1-next.teamsfx.ad6b37a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-next.teamsfx.ad6b37a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-next.teamsfx.ad6b37a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8920c60e519bc4714d29a788a8ec159d7d846a63","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-next.teamsfx.ad6b37a.tgz","fileCount":18,"integrity":"sha512-Ti7p3YAG3lPQEJ8JpHSBen1xBdzUPUlNPZnv16hodYsREx8x6dQniBZFSEqKbtw+2yTldlRlz1yHx4vXIDlLJA==","signatures":[{"sig":"MEUCIQCorIc3dTmHfXU3DoIVLwVM5gqfHIleatSu28qF7Fc/ZwIgDLl6cfz0xffvTG37qbFuz9yJ1+GS5o34Na8KTVWQGHY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957900,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhktinCRA9TVsSAnZWagAAyLYP+QAcbrnRCsMS794UODJk\n2f2tlWLRz95wCeb2aB/kic6ztLDTSFB6l4oFxqlG3l4EV+5ZTRUlGb93Pnan\nxFWJPPzHLZzbJIHlQEwY3jIh7NRY2oI7E3KOYp+I1DrXft80OeQzMRKO/Fw3\nYFzJ6aqI3nQtjb84AGWNf5m7gVmPUjgAep2zeei0oYH5rafGMWWsatO8mIFg\n+3CxIVgTakfnZFaej2huUWUWTnSLzNyQkKQl7EM5Q2OZryMcfvoLwsmR8CSq\nz3Ix04GXhGZbRwMCOmH512I0k/8ZeUG3wkmcp023ZoSVXoEdzcaZI35yp64x\ndAFn6tNRwVIq2x8BX+ncZ9RUI1QJjq1I5cc5+N3BvPvKiq9kN0eUHeav95uO\nnuwN4tBDZKmRXUAHs6Ng25V72VJN1B6IvAcllNGBRZooWu0RxM909X/3XbMB\nS+ohHd1V5ADW4lo5JkAiNckjyFH/KmMd6iDN/N+ksbRB7N1xDw2BhYZuFyD/\n7Xtq5AuaYVGIpJGb30CmRbZeta/7oKRut7qgnFkHZLJ6KN4nRqY1/ooTzkVQ\nQ2LDwJuqoMcDkaGCMEW+yd0QgECi6hA3eV7ukuzW/Kp1pyOoDPNE1vcOsxZM\nc9PBgw68uFf39rJnczGqrffnTuyEz2WcUq/bsTZib6o+AqAYrmOjvda0q/M4\nbxsx\r\n=6Y1u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-next.teamsfx.ad6b37a","@microsoft/mgt-msal2-provider":"2.3.1-next.teamsfx.ad6b37a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-next.teamsfx.ad6b37a_1637013671673_0.1421061775296324","host":"s3://npm-registry-packages"}},"2.3.1-next.teamsfx.a197188":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-next.teamsfx.a197188","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-next.teamsfx.a197188","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e6b8fdd018d1bd8a5f96bca4a2d22f009f3bf123","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-next.teamsfx.a197188.tgz","fileCount":18,"integrity":"sha512-7b5wBTH026yvS6FkAlsWk1+Oldz5Hqa+nHK2HTrm6bw124V431xqQpEoVIgu8Hujwh+1H0YnO/FJtsu1r6565g==","signatures":[{"sig":"MEUCICWtQ8uzX/2BwXzxu1c4LNl3uCoL2ZJCPEMCIKeJppCMAiEAvS7hAvIOuOlC0LQNijjjR59Bcy9ElI3EL8VluM33tNQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":991351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkt85CRA9TVsSAnZWagAAR9kQAJkIyvUynZbC6atLRC04\nwGz2jcbLoGRvdWR7bIqhPz306PV57NOadqdt8LfwiUzX0eWaB3/t1xTSe+dt\nSUS/Sjwo46MwbNHEJIFrgt4kCIS2woOuJo/xvPOHC+k9sNy56GFw3+PJ7LP4\njxA2j7M4bA1wpw49DyS/3ZZ6uGZVWWKtzG/aiaP6K+9COO3m6fqxwUkzgl4C\nRVpVaMH6+kGZQmAstvoZRIpbEvDuTbFMwPE9xCVqsrOm0Qbv8X0CH1LKAD4F\nSqJ4Gfq3JPlpcQA/ptVl8u0mqsqLuIffy5B1vJI5J/fMht9pY8gCzwi0PkpB\n/o8ltMyI2KiqwzRd6baurB1MklwWLk/96zAGTcDsB6uNkUO9hd+sH/vV77UH\nO3uodM/bhj9tUhNXYQhXQYCtFbTbdYQvB8thhbUGmWp+3j6wThN54IFF9jpz\n7EAA9/6dSSB2DaAvIhLbt1T3ZjtGdtwzAn3fryBbTeOwyapsp5OGsU/8jSJP\nVY8HvCnc21NrQg0DlL/uXDWXu2b79oT5zL+R3yVjWd4nrS6OymWbxAjfe32c\nrmxlX08qyWEIw1XQEP+9SIMiiT3rtudrt2Nj6hi7OM2w6el3AJppZzP5DlHB\nQ48EzRCxC4GxMcAN9ZSmgArPbecch94yYulbVWu883UCzYAJsGvQqgrwiak+\nLTXu\r\n=jmzC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-next.teamsfx.a197188","@microsoft/mgt-msal2-provider":"2.3.1-next.teamsfx.a197188","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-next.teamsfx.a197188_1637015353321_0.5706688198342409","host":"s3://npm-registry-packages"}},"2.3.1-preview.d7be81c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.d7be81c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.d7be81c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ee80f3aa2feeefad9ca98738dee2e35f2d4985f8","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.d7be81c.tgz","fileCount":18,"integrity":"sha512-CO90iDEzkj75GPzucrcOjxq3IQ3BXH3bQFoWusGpV969HA3nV0c1gI3U2wupgjVQI/Pt+UBgS7GL4DcRcfERvw==","signatures":[{"sig":"MEUCIQDVKZTnN/tejDSQSNqq/pf67v8lvkEXqpatQ/mJuseDJgIgeAmRHzVsFkwQmV2q+f7yv61Jg/mLtquKa0tAHk86eds=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkuurCRA9TVsSAnZWagAALYcP+wWn6QKZSYm5TLHk+b5U\nf2iEpxaHq+r/Ch59cXDXxlCtwr1R+wxoeVi4ZlQX7yo5796djlbwXqfFzOFa\nhSSU2TyaPwtZhLgGZTekwe0/+cNhG20oklfHTFJBIh8B5Ritlm3r1LYlLnF6\nMz1eIHQMfGz4FQ4vOP7XSt5acAquBW8pbqsdfqfLBsBrEoiRlA0qOdTMccwk\nP6fXt1kB+8PAg0uLCk7Rq66MoevxIspbfgzLdaIxNN/Av1OWzPXY/avHCZAc\nbXKeW2y8ph0Ie4OGkKLaLv1RVU3AS1q8mOUQUog97AqPQnimyaDmg/rgWsGP\nnFc8ZwobmTtVmLkgFXD1lqziO/gl14DxY7kyoC74la5buGwDpsZrHEzcGuEP\n84GiCSfLD3mNbI7DnthE4CMtqm55mqCtXyHURMXDqbywuPWBEsIhuiaoXbnr\nN0EYD4dFMGRLPQfgHagNsfksb0N+7eB2d+pnQMxYoakJEfXpoHmUlLr3szED\nvUH5HpIrtsfsgH2TOW4VJT4/UudujYwJo3wXz0wNaWq55JctOdoApP04d62O\n3kFCeXeAGHakRHxMbPeDJD4rZ//UsQIV6BjLrTckYh9Ud/+fRPUrv16SNANE\nWhMa+HDzswg7dmhcKqhgFPxOko1ceyikdbZYDa5aVPjDbIZcQlJlEtKwdrHp\n3Qa8\r\n=JmiF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.d7be81c","@microsoft/mgt-msal2-provider":"2.3.1-preview.d7be81c","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.d7be81c_1637018538870_0.9704065397390809","host":"s3://npm-registry-packages"}},"2.3.1-preview.9a3d2c5":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.9a3d2c5","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.9a3d2c5","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"bf614a76788031033a95b6e834ea5b26b8877cf6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.9a3d2c5.tgz","fileCount":18,"integrity":"sha512-sOA8f1MWwlS9/b22NZBQZNn2PDYs2yQoYoVNZWEVSe5PNQPWzgfNVc8I08CYcN68P5RS/kUU8jQg+Wc0wNg0AQ==","signatures":[{"sig":"MEUCIQCOQmqoXh3AcSu37tOIfFzreQjuUdlZpTJhhkrNC+nU3gIgLGfaE8mlrtHWBqgDks4YI4nCXHJ6VK+rG5a/vTCGSjQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":956374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhluQxCRA9TVsSAnZWagAACSEP/ivmSOYj6kwtkonm2Pb/\nG+AxRUawbaWEVPiIKjhlG8L/HG4cHO+aerZ3THrLKVvI/NslhSRfizBTsrd5\nNn0B/eScFCuT/pmP2EIEN7XCiNmu+LP/ZSRz6/ejuclcO+SAozOfKHxBdIyv\ny68UyWUQgNlIeBu72Ccc8IWWZ5So98VKOvbYiwwwxAMOIOogkUCM81BPfgUs\nmYSKd/VAy5LtPUrv1/Ok6mlEnTitH/L+rGyi0/x0PCJkKfBG14Wvgz/Uq/Lh\n9cgnUKF9uwc+uHN1fsQweNWRCmVVI55AvmRJFeOLUtmubPnMxHRrv1sn3Ovz\nhkdQ1uwhEG3v/he1eb3N2TxqkCO9V/jvF2WdXaPzIAnJ3y+pwsq6A5OCuZOE\nSUT1MsTZPNAbSWSauPnk9ReIruP8hF9l/8fAPWBnp7OCJkQbiOtea2R+8bqY\nPsihcTM1ecqWmI2CZEAkH889f5s0vOfYcuLgfaC0r3veQvybESV1N8ZaCSlW\nC/Tbu26aKxOlRJEIiFOguhswXvppaScV99C88AWviOnTWZRb9eeg5t7T54Mc\nUOXz7o4AyVCovIwHdNsUoWoVwRYz/894GzkEsXKVi7Z16cXZyNc8wWkgG65n\nlaFxbGsIMIee5hiS5d8/parvXGJ83kPpHpMrHHzG+TlE2hADDFqj8BPNikMK\nypBf\r\n=STtj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.9a3d2c5","@microsoft/mgt-msal2-provider":"2.3.1-preview.9a3d2c5","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.9a3d2c5_1637278768864_0.6576696267384778","host":"s3://npm-registry-packages"}},"2.3.1-preview.4c06fbb":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1-preview.4c06fbb","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1-preview.4c06fbb","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ab9827563253353b4413a014ca9971b834addd6d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1-preview.4c06fbb.tgz","fileCount":18,"integrity":"sha512-6oGUwm819UTOA7NM8sy2WVTYzDerg2DlDXDWEavC3IE5ZikX82BN1n86ZIUIxDBaVG8LvBBvLcXpKTE2w8A2kQ==","signatures":[{"sig":"MEYCIQDMxW8ByDNz/I3MLJrPzseQ8OwmDp/1rg6rI6c8P461fwIhAJT41ik5Iov3zGb2jtK8f/0TzVeubK5zR9L5K7qhdGH4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":956374},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1-preview.4c06fbb","@microsoft/mgt-msal2-provider":"2.3.1-preview.4c06fbb","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1-preview.4c06fbb_1637351883688_0.2900772362452788","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1222218c1afbc4f8f44c8dcc43e9ade57e293974","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.1.tgz","fileCount":18,"integrity":"sha512-/BwBEFeCl9Yp4yjXc6X5+WKh+lcIRzbsFfH+7ToFQZ/CyFTWQU24ZFXhN8MMgDlT2xYcB+hxHsJsWjTes80qgQ==","signatures":[{"sig":"MEQCIDZI01GX6BuqIwa6afDYa01owaELODRSy+dz4VQ1tVBAAiBEGLETb02LEb9/MxuccdSICPT+TwXP+f7Hg2mppu/E9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":956326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmAKoCRA9TVsSAnZWagAAHZgP/RuyXEr0DdPwNss7LQJM\nTKRsOGZAOLtQeRNE16KtLu9+b+XkP0t2JT893dEPS/LQ4oz0NIRk037hHWfK\noizXpBPnhfva3Q2aPgxH1ctlETOlp5Kj3StO3CCerOaoT3KE8MpcEqj8sNWA\nh3IOUBh9qyR2lEdAANo7QoheiXBPyRcHhzHrdeW6vgSMP/02VXLm0w5JmCXX\nA3aSe7DcL9f33MZBZomF030FeZGr/sErVFRQP20600QoQFOTc9fXWCs6f/wy\nUws0IYcbpxECd/Kfz7f/ffEbtKIbm5vNM7ya4bM6KOrE+elUrgdhGiG3WgAZ\nEWCmtd6wrEACxxTRotBhwdo3l0PKNSFmSLxK/QuwcTirf3isFgfzocn4Cjgm\nKJ1JWCHbJMYckbac3XzGQzjr/VpEE3hOacv/fxw/4uJa/jN0zAuGLVqRz5cf\n/04de6eFvQ/hRLinLTtYn9lh8Q+bux/RgN14OprYPqRK3wg879FvhBRACfuu\n2WoYlpI7HxWyyToKJavvYLL4bKc8n4gInwhiDOavWAQDuOhsse+HavdF2dXJ\nuzLO4cjQJWpUCZWwUhwCdEZDQyPr0hVqoG5ZGrbQpwgUsrDKItB8r4U8NAUs\nNC9tidyRvZUuXCfl3IIIeMYvDrID4oqhMTLV6XFYTRq2yMYxNqzYVwPI3Y2y\nijr5\r\n=jNfQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.1","@microsoft/mgt-msal2-provider":"2.3.1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.1_1637352104400_0.6080822700421735","host":"s3://npm-registry-packages"}},"2.3.2-preview.5526841":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.5526841","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.5526841","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"924dc5df92f3504ede239cdef2f8ed3942d58f98","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.5526841.tgz","fileCount":18,"integrity":"sha512-KFJVqorUYZRPP34BT71Ci1oG29upq7B/APFU+yug3MXasolsvSFyCPebSQ39Eq0cghyT9oB2B45ZVe51WJP2JA==","signatures":[{"sig":"MEUCIGM8sw6ucZvyqnDXAkR7qRYbJORqlhHDdnFNY3tv/VXCAiEAuMgM7rgcTMX2qFFLWgkbGllbUr90YiQdMakU7Vn0HgM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":956374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmBL7CRA9TVsSAnZWagAAfF0P/iCo/GJ/AetLSjJfazod\ncRHIs4jwhJ3pK31K0blgkMB4j0qlmwBQKEt7gVb37x2I+peiTOyl5ALSN0Dw\nrkii77DfdviYpNtWYIclKYV99zZUSs3ghlzsAjkEup+Etw0a19EC7urV6zrS\nbpgq0ML+OdvlkHmd8DlXCSdkkPce6RQB2bmUpl3xrxCHqMqiDFv/mp3uCOba\nwy+6yhgDJv7G52K9QdT4+9A6N6iSqoit5jcm1ZpSS3dP6y9ACcrDXLqwFe35\njblWqCv/aRGxxbIB0i2s0D0Pnrwx/3ge/bhq+Jrlrk+YJwNsp0qRxxsNIKyX\nre+25APQv5fzTxCIcwbKr4GPVcxa6gjWFAMDzYQ8Nk6yIlAqEuhL8GEMuCPR\ntYm/s4WrQ7uGg2C4rCLJ8cXyZWmp/gWKa8pl6YqMiFATLeHvF12Tbb4Mu2l8\nuSRyI5w8Ty+hsJ9YmdH0PuYPnyxU6IcgEI++/s2RMjWnLccxm9IVlaQXACVF\nd8g6MiKV9biASLDR1y7e8DLLXGeFc5FtYwEsV7grn/uXHF/8CuO00/qMk3jO\njsQmTucclYYJVAOTaYkFyWvg85XpG9sUn47z6zSHCaLNXUA/HJ6NBE2coOtB\ngvrU1FIiyes3mo7i+QQyUlF50O0VO0oKvJr6BlIdufuUwYcom6iD9+jBdACe\nMmGh\r\n=SCpC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.5526841","@microsoft/mgt-msal2-provider":"2.3.2-preview.5526841","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.5526841_1637356283455_0.2673119057461284","host":"s3://npm-registry-packages"}},"2.3.2-preview.4d255b9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.4d255b9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.4d255b9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8eca738de325e1518df9d6f03a6b7c5100a84320","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.4d255b9.tgz","fileCount":18,"integrity":"sha512-wwJnpqRJDKXyV/ZOORfYKSwpjaNsS62PiYhFC/stlnazb8CL1okHHVYrW1CJvybASETd13ED0cxpl6mq5zjAgQ==","signatures":[{"sig":"MEUCIFwgXqbsqq3Gz7swmsjHjq8U9oHaby2kbUsEg1eBvwkwAiEA4HEHZg0dwUc+qrXh8sN9QVo7JmvDC9i/aNngjaUyJwA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":956374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnSjsCRA9TVsSAnZWagAAgqgP/RsSqxRk5tcdbSB6iirf\n3bU9yl7m4tuhSYHXycQIsce0MG8B+MMKCvPu2mAOyeAFf4utFUmHSavy9jOU\nnWHQtBoPi7zz+tCjcxAcqlXKsp1SfOlYY2wd5jlj9PlxjnLbvROOTAIXv9ow\nO/YsEP31nyNL8VmFn/Z9Wxe9dKpT9S6lbxT4YFiDwcqWDbmkuHi7KUs+ezG8\nH4gi4FTvIHvZHvqawFv86C6H3rmHkcDX/lPFTyUHKQLca8snKZHnnvgOn+8B\n4xK7PPsmKQTO5V6Is6nJYNvnq8i+tL2VDQGE1UFiRD+K4/Ezu7x6Gorrm6LC\nhkPrckrI4ZydxM0SWTejYYlr5/vGu30uc4OIgCF+TFHC0nRJpkVH0hYdgjza\nczICSyOv/JkhDs3QB9WJqOIjtzzZAdMj//aa1l9iV6GMgz9g3eTwF/2x8yDE\nwWiW7Qb5i6A+iuWwv5X8qh6UAMsZnCPYf6YkPLu4Jq0TM1dky8+Rb/eoRpBP\nrWT/NbXl3NJ5HihA9dMDbkFGzE3F9UroFyNHbeRstdhsF79dqmk1/6ydozq9\nfeO8hr0WA5a3GncFbL0AhC7kX3lxJjOfaYCyUXgCn8N0cFdVm+WmIMvMTpMc\nMegOKyl8e/H7I92uwfKdPzG4r9VAEX/kgIikvQzY+1TpGzUxo/GWwqB9RAvK\ntSc2\r\n=V2CG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.4d255b9","@microsoft/mgt-msal2-provider":"2.3.2-preview.4d255b9","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.4d255b9_1637689579890_0.9986734363769127","host":"s3://npm-registry-packages"}},"2.3.2-next.teamsfx.7e81e81":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-next.teamsfx.7e81e81","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-next.teamsfx.7e81e81","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6dbcf67b40e7a6bd14a5c0e9281647d4ca6a9e96","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-next.teamsfx.7e81e81.tgz","fileCount":18,"integrity":"sha512-1mTyAkPtJo6odDp3FumJQpZj8iNK/UIIsAZE48IZiEgUrL/UoVxVMgKVvwZvXnKFRfY0ZV8vq/wh/2Qg6/jF6Q==","signatures":[{"sig":"MEUCIEQTDGo7G6SG1PlXmKpEdS1tn5eh3xnUBUr0HLEH622CAiEAxa6b6yT4micg3UpC97om5Z7kJs8O2FYd6VjySRzidb4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":989840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoQd8CRA9TVsSAnZWagAA5jwP/02/2+7ts1gQ4SMyry+d\nebnjXRze7RomXawlJ8n23QOCwukzMtbvZv/94KWJlR5oiD7x0F2LgHXIcpUB\nPBX7Z6BRt0gGXVD7KStKanqkgqCt6nwkHcU8+2frYSTaES2DGYKG7xcGL9OD\nDOGKwEyA0FGPY4pjtr2SY4x4Y7C9Gae9ui8lsSBRui92Vpw2A3LznIXQ9zo5\novSz8ZnjeCPVLCH4LjCWcm46QujXha3lSuRiegZQuUYMYoEaU6U248YZZTXk\nOQOCKb6+malI1evCnIpPkb9GEpJ4t7+JCRvb0pvWDrLk0Qxw7S6ZoS6vqy9y\nlscRnJZEBieQgvJ8SmjLwo8blSqcnXSbyXYQR1SjEz1SEqVdHZBbZt7ivHRy\nOlP+bpgeuFQSCdd/SM7NUwm7tFbeCzpKkmqEohJQD14ioYhqKIg6cW3to0lq\nriqfpKegLjQ1fDOPztfiJDxFYLU94HzSLswlcy0N9Y7dXIZ39n2GwZan2me/\nur7A1ta+W54/eGvI1Zrt6+jemsw1c+5jr6CBH48ZYDAgsccNaWtQ5Bi1o5BD\nCaeb9flRu5jOwxvitFLsVSrsEUlVP37Ysp4sloikg8WLwDxvblGninXSFQwA\ndIxv/QLOwfApQGeYvLmX5Cra3L3/fegxQiSA27shm6Llhd4mRnF/aA6F9UXU\nO7X1\r\n=NNtU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-next.teamsfx.7e81e81","@microsoft/mgt-msal2-provider":"2.3.2-next.teamsfx.7e81e81","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-next.teamsfx.7e81e81_1637943164403_0.18127902016054187","host":"s3://npm-registry-packages"}},"2.3.2-next.teamsfx.58b042d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-next.teamsfx.58b042d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-next.teamsfx.58b042d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"73bf9972d340a0068e4c394821889d91532e18a1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-next.teamsfx.58b042d.tgz","fileCount":18,"integrity":"sha512-ss97iXDx1QUKnafoQRlPPHDOWkXNhDG751TRaw/SYL+gxMxZdct2kNBV0e2DYir8OQmCMbpo2eJDGbq4Du9Pmg==","signatures":[{"sig":"MEUCIQDPToiDAOyQMLSq0Xp2GstoEvbBPkt2y2flQ6nigVew4gIgWFajDS4Da9njxzIsYNHJ5zpbQTSxaAI/9zKfrAUbUfk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":989840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpch+CRA9TVsSAnZWagAAXHwP/R8fhAdu1PgcLTe7NG4v\nEEN7fS2ln23Z4zWHv5/DPDh6olIp3/SeqAk4pDRMOO65rX1OiUQLnGi/cdvy\n/CfnCLnQ0tEPr8tFDUPhGNW4mqyNyzrOJolHF8ogRTFureFrPd47ZY9GBTnU\nfhwB51yLoOCJjDiSQRkdgSxDcdz6GTjmcDRUVptXdoKJRdbv24Py4llTzBnd\nvLBM3rUkPPzrpEEs4LeaBrCfurlLqQ279QGVmnjv9ZTaq0wpUNGsjVvq/hvq\nYaoYkqW038MsjwZUozEj8uIPQgqSPxDl3AJA8sTGnEC/tzSJUiOW/lWjXy1w\n3Qe7O/47a8Jmv3nQLxxrzJvhboyd7v7TRb7orYgGuE2hYXA9pjyn22su+/5o\nExX29sWNjJAYQfvwivmnKLUYA92qQas74CUaQf90DB18u93CmktG94EGszaJ\nQ41FBWe15gyNOQwK4KzFuKdAmeQO6iPq8SdVp6OKLin2SyQ7GWKJFPRmvGmj\npeZ/zYl/2c1uYwq+7lgEFSo6TsKLvl3llFCeJIVZjZofR3ByRJGpGuC2a8NF\nqLzrTFeT/RtNfNpK1VVa+WHjyNkjpMFR6+kV93tRcy1hZJtYlI5O1KVrJ3aO\nk0EIo1nH8cZk5SAwN22iGwsU5l424so+GWzSCGxI85+a1PMwgvtdBFbBiTFW\ntGyV\r\n=pf8q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-next.teamsfx.58b042d","@microsoft/mgt-msal2-provider":"2.3.2-next.teamsfx.58b042d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-next.teamsfx.58b042d_1638254718176_0.691574761975664","host":"s3://npm-registry-packages"}},"2.3.2-preview.fe9b274":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.fe9b274","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.fe9b274","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"04c3727209908e1c31aca8d1710b0365cc0ea566","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.fe9b274.tgz","fileCount":18,"integrity":"sha512-qJPObfatV74Njzr2VWE/JwZbvhebuNXHlJq35+tMtgHpb4AmA6pZ28UVAA4YRFxx5x9m8olX9RnwvPZygKzIcA==","signatures":[{"sig":"MEYCIQCWlEIGjnq7mlkkP/I2xPK28O7zo5xC7zo5EOLaR/D1+AIhALorxtgTRvGr8B3UrOO4wxXDn2KQBKJiAfsA1+0AHSlZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":956374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp564CRA9TVsSAnZWagAASn4P/2Cjb4vKI/a3ZGw+kSAX\n6vyeK27ALr0O0ExtUyTi5PRy3yg75BF42HHX7HpS/CnUcinzZGStWau0RX9w\ndMjvRkVpo1n7lM/sSSIKFZ2UmQHOGrA15OYe/s9eKyVhnq/kvX/l9mabbmd0\nDo8iwe0VRKtTfmwwmXPTn0m+Hv0lOlsxTyBYZNcDRxhB7+lr/X3lc0G67juI\nKYPp3Kc071crdeWlaW+PFyZygKQzQ6461dWNDB7zEuxXHytv0hWyee5hTPys\nBC9M69cfIcQLx+C5r9WrHM/6zcv7SexWjqaKvtWM4fyvgC3zwDjDmHK58q7r\nu+pdhUSnfytUkEGafVO5Mp6AY/6OpB3g+bxKOcw1eMfZ8ipd/t63mi292gCy\nXSDDNDPzye3Jllblj0egUH67cOiVwtQi1eDLRbs7e2fhUdugPG/hMl4Om1dg\nrON2d12XwqEg+2rrRDwGndOnqlcIeOuhARGbKWTGsRtcmhvSRcs89b1r4+L/\nRE+cJPlezDlkRRFcd8orXyyIBGdqBa9WGzAYOs0zDs9FP9mwdbj7vA83rUN3\nH9cuM7F+cCdCGTMn0tnU6mu4paIabZv0KaEM/FOIesGHoMcnwPJ03gDZKNwv\ns2LrtIKN2VeQ5noTAg8wjb+WmmiEKjk+c++cbU+NJhi+C1ih+2RcqgUqb3lc\nbBzi\r\n=YrD3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.fe9b274","@microsoft/mgt-msal2-provider":"2.3.2-preview.fe9b274","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.fe9b274_1638375096667_0.6244645711305066","host":"s3://npm-registry-packages"}},"2.3.2-preview.c3a8640":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.c3a8640","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.c3a8640","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"be005fa7272c72b5113cf16787803186fc11f229","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.c3a8640.tgz","fileCount":18,"integrity":"sha512-sT4d3KJnN/wteG1qLvl/SjAKxIxUru/nNMpb0i1D42742TYNoXwLs49UnbJAuJCUDzgj3alNUy3Co/v1B67Wgw==","signatures":[{"sig":"MEUCIQC4A83ekpfaRpGEZOgsaN4g5oapxkfkbIGcFUF7LdT8EAIgabUNY/Q8Ovlgka2qKpKINfJ5Z/QYu5DzaFhlFRqKMEo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":956374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqI7RCRA9TVsSAnZWagAAeAAP/3ud7kuwkgCwLaLSnD2t\n4jo4QDA+8fuq3kQ6nBRz9TE/wxxzA39Rp+nUqQ2Ve9lBa6BJzuizuVNgtYGr\n2eIhzVg/3hVpPkdLNcxrz9ToM7eV4rIYR5VnqK4j+xaerVqoofiBfRgYYGaT\nTSqOPCWu8ylZPoE0I5GTMqQnTLJnl65XLe+1YHHTYjQwHvmOMM7NgqqkotrC\n4aHcE8uMOsgCXwphLXsSGZEp6sU3D0xntKZBYie0v4Eqqo//70WSKXeotHUd\nEQocIs6aF8t4yhqKff+/1TSWVCM9cH2mwbV343LPVNQ4kfhAQAF5khfOAcME\n9T4j1jgMwXHUBdMTvtI13ssu+JRabeqDaEQzcoGEoSpcLE69zBp00AAoQhDg\nKONQFg4UDzlmZOzPphmo1T/T6Pcy3g/Q988+uKLmeFsVuHxmQtVPQWaFRBbY\nFAmUPOo2cQR/dW6MFjb0qv6W3CNhR7m8jY6DHG2xTvW1b7ANsknZaMObxNA7\nHxpkXDlApAAYPSp1MhkvA06mAvLj8VY8yyD2rEeOwS17P6DyE66OGvKAHCm5\nSiMmmvyuGOaK2yNhrw6Flj9J0b/22IzwUhOnW5Oa700AcE74fJAncVtv4+l7\nkSWIz1qgY8zqzBwHbrWwOe1uU2EaimKbQt8u1FXtPzmipjgFXT1o79oPDiQx\nGSLK\r\n=A1jG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.c3a8640","@microsoft/mgt-msal2-provider":"2.3.2-preview.c3a8640","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.c3a8640_1638436561058_0.8747177480919845","host":"s3://npm-registry-packages"}},"2.3.2-preview.021cf76":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.021cf76","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.021cf76","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"aaac1a045a3029315af28dada4290064d8a0c97d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.021cf76.tgz","fileCount":18,"integrity":"sha512-4Vp92tJrPxGiwgXzDgSLj8jd37eDsCO7m2ASNHmCdO2lpzy0doDFKJg/CoYlkvRKyZYVJFtJpmRKftfXn97fnw==","signatures":[{"sig":"MEUCIQCtNa/gAZs0OhKF19/lAcN192r1teneEabA/cEwo24J4AIgYIHwn5JzNAUrJ6PeJOTOQliTtvPT2tQDJgN7ORkJGRo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":928810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqhA5CRA9TVsSAnZWagAAfqoP/RT1q1/4a/JAF5hxTnD3\nm/LmT1TLGT6D1yUHN11yO3sWgO2QYMvv7xN0pMJK9D75ptmT3SO3kk6MQ5nv\nNOsgj0EAFFRFmFgWtDArHWIR1r1sC1ugPVLFesuxkuRtaokYV3cpVSi/sPwB\nbCiZ3GneZH9uT706fGDS7wtplFzRht8LK4vaK4G6iZPWQEubVvvlYDtFSOcA\nxvjv3u2HV9hJZJHe4X9Qxa4bAFiPh0/bFwG5Kav8dU3TxtYJ78ptGbq+ffNK\nYf86KL9hd0Q1cRXbOtkH2syUKQx0ZBnoxhrsyvSAZASBiloU6vIy6u5yGr4s\nJ0mVojS4b2s91ntPBS/RIgqHts3WoJx/DYIoF7CFkLhBXZmukwyZl1g2ZpSj\naLia+udAXDtNLgHiKdAQHYAs9BFotziqiY9UGvOk79cb9Xyn8sPkISlFxPZf\n/TaCQjchRFKCz7swlwBHCMhlY2BX0axbOlnAvPjC1IFJI9trM6nUdbcXtW5K\nZkQD/PQZiHUrbLZzU9H4uSpx0XKyO90u8RXstw1IL+vLSv7ZnCJzgJ8A+FvV\nuhJAmXPf9MB5UrtG0jb0frT9Z8P1vWHkL7O2mlYwXDIKiUX2rCQ179xKAfSo\npHInhKXXLsW6anO4XEtUqNb3ENEuxNyMbV3olegqRoMendMgsVZA1wkFUSVA\ncjac\r\n=vTTQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.021cf76","@microsoft/mgt-msal2-provider":"2.3.2-preview.021cf76","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.021cf76_1638535224965_0.0005506313522753992","host":"s3://npm-registry-packages"}},"2.3.2-preview.28d74c8":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.28d74c8","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.28d74c8","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"94b823edb0545448665a2a9cce87e2ba3fed622d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.28d74c8.tgz","fileCount":18,"integrity":"sha512-9K74j3vbwtLg5I41+JTaU3YQ4LlMjg7A3LK6w3XZutNPjJ9hmL2tRQ+UKdFuEb0PTM9uHKpN/sp8BDyJY+crCA==","signatures":[{"sig":"MEUCIQDzU9rAzjQrNh3rzLcsFDAW9HgUhrxyg2WYlPvJ2XoDcQIgRMX+eJN70MCLqgmodpqR8VyBjv5inKzGfu4y/OAjYxI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr3IMCRA9TVsSAnZWagAAgoMQAJRQb9Ao/TNf42E2J/4H\ngRbjbNEwSGoy1dlSolt0unvr544fHEIhcOpxMTJXttfQNXCJvDdYAAHL70Q3\n8px7iuyyLUbcbmlySCzvG+yNlv+7ENsugSqEGauzv868A79uRyFZ28qmN/3E\nreVUUYTfTe/q6zSY5FHbNlP98INms34kuMOjrfsNrr8XH6QCzqWP5CAE+Ssp\nxM6z7C0VE5bMPCjRcL0C0r/RxQcayfWr4Xl/GO8hGq3uM/YPlwMGii7BQdiu\nXFxsCghRI1xwDLKp9DFZABh+NYbOygmbTClsL7K2CDunLHJne2vUihtCpvxd\nPDyBK5/c2WlVjP6xi7K7iZ7Xg+x62xjDeforJEALHgTLxXIXlE6zTEO2KzIp\n+UPpkDXFX5VPHxF76TrBR9v0/eoQ45CGvolkl8iR2CY7+JA8XFD8Hj8zAOG7\nxPY47KAay/GSf9WwLkZV6IoBAW3jXB7bvxVZlg6s7JhIfBMzP57fe8038zhY\nT7KNY7kXxUK0cKKt9BdHa6/Q4g5PD+0avVXIbWSvG/7D+Pg8IpB/89a1wrGk\nqog8DKivVzgowCGpnteEdXJvb56iglWfoKvw6vRUTpymWLMvDJrE+N4Z4oFx\nU1mVmCiFIKFaiJBKNpfjJHwor3BwLCgvnTpsl6TabrBy7rPoPezMMjF4iWgc\nPaev\r\n=oLjg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.28d74c8","@microsoft/mgt-msal2-provider":"2.3.2-preview.28d74c8","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.28d74c8_1638887948131_0.7053791650929679","host":"s3://npm-registry-packages"}},"2.3.2-preview.d9fd80d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.d9fd80d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.d9fd80d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"2544ba436e5bfd8134396e53e4afb9f081a4c4b7","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.d9fd80d.tgz","fileCount":18,"integrity":"sha512-dswjVLL0h2LpuhIoWsdlPmTh1So58bs0pNJtc6NgH4qlPPt/9b5QrdTTJUxpIUjaoIAF3JspZ9NnZhlYlYfxLg==","signatures":[{"sig":"MEYCIQC2WohusmTTLYE9XzI7fOHyDab0tCho1aTbXXNIzaTrXAIhAPcJVR5RX0iPQnNnnyus0sijOCHYnXuauv4MM7t0Etai","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhr5u/CRA9TVsSAnZWagAAND4P+QHyGx2HSSZvWoc9Hztd\nxCK0/e8UmnjjyN+uKMiW8s1nUkqadHBuucwz1WhQ6EXDMkHiZT3Q9jQl64Ax\nWEzc8EigUP24vDZQXKDXoYDTxmrCR48r/Ri6dJk1lMY0xVr2JPsiX8JZHxmv\nvSALjMYVo8ITIDKXqLPEpBPVDAEpnEeZiPpbQ1FAEhD0Pc0v9j60+r7XJdof\n3dLSNIKQXy/Wc8y2ZisxeDX4m6A9+NmR19twaYPBGGoAw9MpYiUO7WkFf/Wj\nV62QDjmaQy9E3ofZjY/oUlV9m23m0cylNgV8F1p1A1q2eCFmKNf5Hs5qDcpM\nZnh+LSGUUOR7beYG1qWVCBm1UilNE3tB+X8/bu01rvHkeXVaQYKAd66d0Fb4\nNaeL2hdj5q7tH8/9rpYUFu/VsnCEJ/96eqdz3jhnI54IJOfVi881ovT6hHeV\nSC8+5HL8bnq9QQ8ZqMe7CFuoOqoB+4qeFdbFml78hzvwo9woyIn18AqxsIK9\nd0+sKrcTI7nKnztTRf3UKI82eGkap6gyqN7wJUO736hC1jd6Um1qw0DiSdWL\nqUOcu5GXSgL4A72XCSP5wZnji7lPpdOu96u/QX+Mhzd+pa7dmbWDkcxr9WF6\nYmzNFl1IKT9O7yjwwVTLqjNVl36ws+HM4XWP2IAcx0zFYYNqPuPG9dRWk7jB\nOhNI\r\n=RwRZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.d9fd80d","@microsoft/mgt-msal2-provider":"2.3.2-preview.d9fd80d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.d9fd80d_1638898623597_0.4687355475352053","host":"s3://npm-registry-packages"}},"2.3.2-preview.9601f9b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.9601f9b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.9601f9b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"00345453c914d1e5585ca1cda9630672c8379753","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.9601f9b.tgz","fileCount":18,"integrity":"sha512-/nnLQyI1Jo/0sCVVRILWN9A1mMnAGNQjDYWQno7cc3ur0H2KNQNKm81cm6+tjqhqJ+nYp7J7LJXcMhRNcKNyiA==","signatures":[{"sig":"MEYCIQCgEEscmrkHb1j8ja8G0Y32mtJJ/7s5IqbhEQIy3NLPbwIhAJnhKK1MUGXx6wrMvSTGdJtnVjmp1SSX0r9YgN+uH5Hx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhs6bYCRA9TVsSAnZWagAAh4sP/23YH8LkMBidPvcM+ayQ\nspBpy8xlzEmkf/uq3FVYOU6Mj8WNu26pQeice537hWRO1ObE0zfYwHyqwu5e\nYDq0sYhz+RhurDzicQ7lN9xERnUAz+Gl39YN8tyM9Cn9F1S2m9oMh20i93T2\nYmMOCYzWPU1B4ntX9qTnlF9FKLFrScLFZBtKVDBYvyBt4hR06Plyikwd+Dv4\nQC9CT760CNf3RGgvRSzKrT28J70fBD9TIsV4s6QNPRoUvXPKgRMJ3OOnbZkM\nkfC/4kdjZCTGq/PgEMiCR91zwTC0mzYqRnAM688kIjdgyFnJwdNvUGaRBwAk\niOOh4ernaDUA4m6IwPfwpzV4VyWYfkJpcXSeYvBnoKXe3DUjvlGffKHgKHuq\nJZX3eBHz9KPSF9gfKVRUKBucubGqLN0CCSFa6CpseglC3sjaaPJf6RoQEIUr\nuEir+rxtdHw9vzHJyzT/PpnwKQJpMyj+JAe28M5N+2uJxicCCxs1JEf/ZGMK\nF/uaZtX6aOxGOLtZrH3b7p2DoBEwffHM1fVdebg6uilG6o91Yn1GmYQ6MURi\n08z2Sqqpt194IQ8HBPbZ/TJEBuacXdFXQq4Pve8InXQRJu1Py/viw1wg7qiC\nWhzTzcce2WLy2z1qom3XxYVjSQQDcLGj0CzbnN50L56oPKU1glSxPdNVvU6v\nIQf3\r\n=DgCC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.9601f9b","@microsoft/mgt-msal2-provider":"2.3.2-preview.9601f9b","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.9601f9b_1639163608311_0.43723901941789367","host":"s3://npm-registry-packages"}},"2.3.2-preview.43e9fcc":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.43e9fcc","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.43e9fcc","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ae0cf9a56d81390bb128aec93ef44367c231154c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.43e9fcc.tgz","fileCount":18,"integrity":"sha512-sz1TpQl2C76b6O4Ru/rZ7RbXm23aUQt8hzO49vMWIKQyoDmGehdht3uW8BzeU41sHZK+Jvgg/zEhr69XsWM3BA==","signatures":[{"sig":"MEUCIQDPCMDjq4qEGxpjhiFi2PRlhaefwyzh5x0wBwus2KdE/wIgC6iqyFene3BivSoPCPSR6x1GUchvFHGL00qsbnMTnMk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuNx2CRA9TVsSAnZWagAAVnUP+wVNw0G+ZGPlJXr+3RRa\nIFLEcki5GXXFKA4x9kEuZ0vl1b4AS0Mjv6ttFc5TIW4YUj+neoCyg7SQu3nu\nln246cMHA9J7EyBSgMSibWDH903qEqKutfkddIsE13dgxEa+fQgAuJbuyMLZ\nkHSdtmLtSVJJYnwIO8XxsrptfFyyAdKiV5DnaDDA1JuIxVqZDOcyMASMNSr0\nsGPyyWiFflp+oZGfun0IBlsSy5ug8JW43lJMZFhzwq1HmWloLckKdB82XLfx\nV/lGD0frBD9ZRtUw21rJX3CEwuWPpR4nkQPvlh+0SqDEPSo6aa6T8w4yecrp\n+2j5tNwq78JU9EoX9oXLTb+b7HX27ao5kzmDpV/bSVS5xWOsGkzIvjVJf9n0\n/33dYvvrHbg1a00EGVi/1D2P1w2Fz09EOsoFk9ous+EYswaxoizLj4DV0TOl\n55bR+XTzi0Hz9b+hmVfsCanplaKvPh5MzvvbWPBVeygcXtxSrftsLouIqM6j\nwOcqDS2nkIZ1c8HRQRayRqydLWtRYEpNOcv84rM6g3sFy3eyk7gBafdDFAmC\nOPsbygN2vFe5S+VgNDQw8RNIF8PwyJ+CllBzaU2yJAhyKZsy0V+gsIu2lHid\nPzphv4rB9lqDPi5OEvwLWdguLLlcquDWYThg77cyIV42CFTZUEAbV+r3Wv+1\n3GYP\r\n=RLA9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.43e9fcc","@microsoft/mgt-msal2-provider":"2.3.2-preview.43e9fcc","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.43e9fcc_1639505014660_0.14604977417940246","host":"s3://npm-registry-packages"}},"2.3.2-preview.4985b46":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.4985b46","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.4985b46","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"240b4ad25fcb835a3e3fb34c258ed7a3759cd12b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.4985b46.tgz","fileCount":18,"integrity":"sha512-Rdtkx6oltonSmVhIPcWLgoeRw0lEX0nilV2ua0j1VuZaY0Ofwbn3ytPuf9IJXa/U+qy7gnMQupzZjQnIXnZNQA==","signatures":[{"sig":"MEYCIQCU27cN225arfBKVcdH9H+fpHarY0kd2Uk2jIMZ9puDYgIhAISNW5vPFYB1y62N/6vS6/SuQx3rmZRFPiMi2gQDpTVj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvM6aCRA9TVsSAnZWagAAXAAP/2V96zl4weLuCaRiELD4\nIXWIPZn6W5I6daLiwL1yTnjGz1mmPqUD7QMpEC2wL5MSsEO7frjrsJ2dDOaS\ndVANxbF3cVzucZ34ZbMqlVqTJKPI4NomX9vQ6Fe3v8yrpaADk1sSBwGLK3Ij\nj5Pobo+wOEUpzLO9/f5xkJHLbeo7bfQHIs+gO9eD+zJ8NwrldM1nZ/sD2wZa\nF17ByuFqS6e1TsV1IDSMGdB3DAV9IsYr/dG87c8iUC6/uWp9DQrAOkPnpX9w\nkf6OX0w/HUgHPapeAZvmbvI6bzdvcTuMkOE2isq2+l9cxgifTHE4lyq2kCM2\n2LsnRIjfVHZhIANx4cmxCKVPWUwCFjr16ghyk7SgbUon/Wkn8JlEQmKB1PJP\nkIa9eu70HmLRBwR5qs/vmjlq5/dsFzJVVwyQ5PTNW3soK/9ZxpN7jQjFYdlG\nriV4uAbf32dKD8CLJPJ0lpei5ieTeEdBY99pnjeVQJ8i/oi9yJIMMdE7MEWV\nC+sPv3N2Wcgmi1KCNNT1AbgPdOubRvQpeJ8SrWE4zZ/mLQ25TmzxWS5Mxnqc\nlxfkXEslvhDsNmfGwP96goZGMzeVF5j774NKEy5YVnMkFKG54NOTywQJ5DBK\njmEdpHHK8A5N6P+nlv4KmuMJ05/exsiyj8bL296J9wnUEOrg6OAHetQrs8WZ\nsEDf\r\n=xJE3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.4985b46","@microsoft/mgt-msal2-provider":"2.3.2-preview.4985b46","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.4985b46_1639763609906_0.56755245012616","host":"s3://npm-registry-packages"}},"2.3.2-preview.644b051":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.644b051","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.644b051","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ec40ae6c19d2d3ab56393e3e39170adf49f01b64","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.644b051.tgz","fileCount":18,"integrity":"sha512-kasKmLbn5G2oCj5KDzDyGtJwJaZZQAj+AYCxWI0vHIXjvQxy1osRupatBvn9PruvuYjLIuC8oddbiVW0o8TNxA==","signatures":[{"sig":"MEUCIQDRFlyO2QcX7TaOD6zDJYyM9oglsTRfrWFcu73y6Sc12AIgDWJYI68kzunDD/BtHi5H3L8fNK/+g0Ywp3WeWCdvlRo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvNIRCRA9TVsSAnZWagAAP30P/3PLIWzTsZwBDtSMWHnA\npWw8AihPRlgKGWPXeIDpn3OUrxxtJps3YmHVsRDJH8oYgeb2n+JlWwZbEmm6\nVzlKX8upI2hYhE0c5IoTdQrbWdCnNKbcXFvmBOBzaglQPLkFQtsSpGzoI0R9\ncGGPYkw2nHWuqbs2/9olNFQbWR9EWKfAi7Y6w/B+jZcA338y8ndbbEO/Nj0f\npkfGweVVoWiuwIZwSU2dXvV6VH7VH3LDgmb8ZNmlbkUSLMWWgMPm1mrfyNjF\niHeUSBsh4oCGu4PP+FdMWdnO5IZnuD8BDebPlNDQFfkabmOaWFIzbS2pzrD3\njXLulbUCHqOHxlEK/kJV5bdlwnrflnh46bdT9FEZea9/Nj9C/OWhjxngrXkG\nfn+XWmYd0p6I+3q37geZ1jocb4r1dY4J4Sw60wNkI/3YSxzOtfAGzM0eVrKa\nHz3F+XPHl4NF4rLPAf1Bkc/KgeugcHpdZKAtb7T4/BaNxpSMsCiwrApmtFQH\n0xxnTUntNE/m9F0W7qeMO8NWyF3g8hUeRWFUtZwcH6Ek/IcA+WurniDLnPwz\ng/63MJacMVmoXNgvAaBJpfc8/AwBjpZQCZ0dj8gdHsakGmgBxcDKRoCDBQto\nMGFin22vbvGh3eTLNX4KzDBMe3L7FgE5znuJZVezTHGB/eGjqrG5vENGRSZd\nZywf\r\n=v/Du\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.7","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.644b051","@microsoft/mgt-msal2-provider":"2.3.2-preview.644b051","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.644b051_1639764497010_0.8358666324296395","host":"s3://npm-registry-packages"}},"2.3.2-next.teamsfx.54e0d43":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-next.teamsfx.54e0d43","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-next.teamsfx.54e0d43","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"cf0ce315d740cb195f35d9ba18675ad333d5cd75","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-next.teamsfx.54e0d43.tgz","fileCount":18,"integrity":"sha512-gKUqx5Raa3/6TenfHWIShsqzMd9+mLrTQVOS/dfSqKIxvAukAfFk48tNtbBsHig19l1MKATSTehG6oxbvpAqjA==","signatures":[{"sig":"MEUCIA32m8FKN4pLUzuPfPy81f50fS7OO9ebyTZW7WZ6Y0X2AiEAzfw8OxSvN2wDnFNEJ60AdszfCNWSy/qeXAapV6SgpYI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":992001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzc2lCRA9TVsSAnZWagAA2awQAJHvNBPzao4HVyg7Jejk\nJ/sGLfQUAAffiM2zS7AbBNj0ALeqcL6Fn/9+WA2Q6XMVfJgMJxeT1wz2qaar\nHDCOXMWcZXxGabDm5fxakm//MAp+Rc+8DgsxNE328hTIQRC0BESl6nlaONsA\nDSDBUHM1C4YN9qRGr/370VxQuYmuqOxnE4lQsbMRw9oqbrXtS9E6ZGKA+2hW\n4+0iP+hj7DA8mQtdLSFSZt1wo0DK1egQsX2tGthSS18Dbl4c7rthDl6vELri\nxjeIso/dH5NCcSetbC2QMS5nYlHlAYYz52LRnKcCwb7AASbn9fbzi5DBgSvE\ns0t4TmNV/yPbn6cOJi6iGnMFhVL4Q4Fw36+2g4Ed4Q/IBKjk+/Sf4Y3FocsV\nlgVaRr9PdkBjgmKCPzGB+6OZnWDvrvronGO7hDGckjWJcpQk5Qw5mRX5kHnd\nG4FoCuptegmej5o7Ior+BZ/AiRafGSwnmbkmmk6b2n+fSjOB0UwbOgHKYHYf\n6RvoRB98Es74umZ+xDXpw76DARtGcNlfax+gmpcK/X9qUWT2Sk/g2DvVSMrg\n4CSqiDUIXCVha9K54iFcvNf+4rrrjBgE/uYEGJygmIERdbHMtiP13MEEqCfv\nmNmUY38F+5m5TWv1SkOHOliHji5a63U8xIJirNJM8ZiAT13rUtmPNgbmuJYl\n4Rnk\r\n=K/Tc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.8","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-next.teamsfx.54e0d43","@microsoft/mgt-msal2-provider":"2.3.2-next.teamsfx.54e0d43","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-next.teamsfx.54e0d43_1640877476982_0.9672050912647676","host":"s3://npm-registry-packages"}},"2.3.2-next.teamsfx.4e8eb35":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-next.teamsfx.4e8eb35","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-next.teamsfx.4e8eb35","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a9868789a988cd4a9b34dff9d23f889e247ad501","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-next.teamsfx.4e8eb35.tgz","fileCount":18,"integrity":"sha512-8O2bkgkwn2+ZqQkQSOa03mBJasOxPdH80HWXAeaSVf/iDfQKcBSLWnyQZdJ2ikznB4g1gMoj57NLTQfy8ZTbEA==","signatures":[{"sig":"MEQCIHjFizFPxFNLGfiQM1O5TTGE8FTP8Jf7u9e65Q4+80HTAiAGmnLGxZPy4a3kd5PBv7ruTNG4LGh8zuXee5py3v2+RQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":968224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4JQRCRA9TVsSAnZWagAAlXkP/1O0k+/SEYfINvJ/5B1O\nftL/AseEsmcRx8raXjHuO6FwVlL2RGzu3dpW99Mvgc+7Ha1JVOgeVhaq/qPm\nTErZKc3HVgUKgfPc3T+zdZ2pUu78TNUJCSsEVlJgIqnqBzhTwcmJ+8JVTSSu\nrjVH5ifkup+ji5MvspW8T/k9uHBi1yUGU10YJhKcGRwM4x0CSQj9jenVGLJR\nRMl9VBOUhWV8ccxNZICLFTXARO88GZ/e/ZGhmWZLCEyY2ptdpPfB3/dsMHVe\nERprJeq41nUAzLB2HmqWZo0VtTknp2ZziZeQWw8g60y+f/mWk3anretF9NHi\nmmB/BluafC7KXVIB0qy2TINisaPXI+1T5uS1me9vYchRKkWZ+HBmSfqqVDbm\n1Mgma0ebot+rZ+dZ9CLuBIvKcUWSqWT8sQVTebwaEFQWphSWTlysykhsGMP6\n89ZGOvT3QqlEuanUkkFPO3JbNT//X+fuYBDQwqQVYbAchYS16UGCXuBqTylo\nUEJyrYt46pp/osJihRC1rQg9HXt7yAjIG+UpqhY6vC/R85bxjSrZnZvzi4hs\nn2eMvj8APQUslHQY5TEaNfVITN6ZXYyTkI9/vxcIzwxA07Psk9nModtAk1bg\nFRVnB0TpQVzpE/FFSHuLhgmTQoNoywBZkiql5GPCBxqB0302vMmI72PYI0DK\n291y\r\n=smtZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-next.teamsfx.4e8eb35","@microsoft/mgt-msal2-provider":"2.3.2-next.teamsfx.4e8eb35","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-next.teamsfx.4e8eb35_1642107920913_0.0919567665871841","host":"s3://npm-registry-packages"}},"2.3.2-next.teamsfx.6f1c31e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-next.teamsfx.6f1c31e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-next.teamsfx.6f1c31e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1f979ef2f8cd99d9c585569abfc7c9338d6ef198","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-next.teamsfx.6f1c31e.tgz","fileCount":18,"integrity":"sha512-kpR354exfvy5rWExjyQPhm8JEoE7r5QGkTtAwJg39oTs8EkxoatSEFDpWEN3Ueeyx86DzzS6SOcOU5ICWb0YEw==","signatures":[{"sig":"MEUCICBtKRDtYus1vtXCTYa0K+HOp3hf37Xvb0Gs6M3VSwzyAiEAlLKbDFa5hle43tzItw4fnzzmQydXmoYPaFf8iskgzrw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":968224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5Zn8CRA9TVsSAnZWagAABj0P/0LED02Sr4H1xM0zlbBq\n181nuPzCpSJzQkLOIuhGuvPuDFV7z3hw33SQZxsJlfznukL5TafXmAA1HkzO\n/B2FFZs/cp4O4C6s6qu7wwdztn4ZlslQNlU9gV7dufEHoA/e8RXkvo1QdOsA\nkQyqY2v7xjcbzk9Z7VAR/Ya8UPMHKKPV3spNjwy9vj48vsYhBlSVSmGMbWgc\n2idxTV2V0W7o3uE6jtLcRE8oVUVAd/KTP9Y8nIFieTOR7y9rdAWh3XmvTmLg\nP7lYwd9fTzr1nwd84AEgZqKH7l47z4t/OiX4RTK7saLjd/NH17jSDnK2gqx7\nvjGjYawOeT0f3BovRoEfRtNho5tw41B62yooJuu9jbtUOaf/HSRF7O/mJb7j\ncm3SqQuttFXg84yb9gfGAkQhHjBo93olEDNDLc67vFXpo2CnCh28ENK9EOos\naUiMIPJhOb+6y/3HhqW0q+3W06S+si0Tb30eGcA8XUr5xK9qkpCL44k3oQeo\ncqc7w8L9L09K4VaO7koio49y8ej96YZMlrUZSQ/Iq5gmWp3t8ak22vYbjNrw\ngVFJjG3rlBCo8/yOX3L7dYe0lNOrUbtU9WsYVX1R0Z4Q/9L9OK0nKQ/jneBA\nyw4dJefcMME4N2I3DvEHUDrNU2FHBHHZ5BK1/HAhx3fcJPYYUKi8/3h25ZKe\nRWlO\r\n=HUB5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-next.teamsfx.6f1c31e","@microsoft/mgt-msal2-provider":"2.3.2-next.teamsfx.6f1c31e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-next.teamsfx.6f1c31e_1642437115846_0.22551633407381333","host":"s3://npm-registry-packages"}},"2.3.2-preview.4568219":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.4568219","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.4568219","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"cc674fac7b8b068097924e3c7391aec6c457b5e6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.4568219.tgz","fileCount":18,"integrity":"sha512-QxmE44EvXzQ4gPlhYPCQ67HrOgqIh2ZG7a+Z/TvMhxYRkapEBGcFnGyaPlaDoH7Ofno3MtAjO/kbpDRrFEdtww==","signatures":[{"sig":"MEUCIQCsbCsCQ6CeC3rx64E3RnG6rqPNG1jlLGS9Mi5LfjXDVQIgYVESmaskuIY4VO8HFlKdaW8XBHsZqlR2DItL/ssOzwQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6XdVCRA9TVsSAnZWagAAFPAQAICqEnJrX5LL8jHiMX+R\nPM/ZmoyEU9J85ZBGetpsD35I8MQK5tMroJKKQadJTGR+4ZKmvN0DNdqpZ0Ak\nroi7qa1RwEju6gtwKXOp47+T7YhN3vCTlPrXjA6opKPBuBY5GT7sNA1isfxf\n8j9bMkKgGl3Ch2md2dscx2Gg4X4cB3CnArBVZjI4FFtqN3bVWFuvhWX45Pzz\nR+0u/KnbBc+6zqOxMl6sX1ySNvyM01blgMC8tTSiqZayint75REgW7CkVki5\nuLwfA5SrY88LiMmpSJyjN/9cPL5xD8tlqgEsVqbsp0ks06NphCYszInL4B6Z\n3LcOMhQwvv5NEnYRAFCEfoA3nBRTEd2Rb22tD93KkF7cdai1PmWHjdgRsjLB\nNIYqASSGtVgnnHsr8ylQt9r8Ga4MQEsAhZvE1x44fW4O17LhJ1Y9UvuaOG7s\nhwKyKFK/yOYHo1nVvAi6pD2V1Can4Fa0Z1JhnXOriZfuIe5LyzNn57CdtrEs\n0YfCk3b6+fAGUE53ENAHqwvboLZvuhSgr5Ig93Nymgg10SvF7vbeD1DfNNTL\n9FmNUDdJVKcBxOdPRPBPbsCoXMk+xZLww921m636XmeI0zpPItXENfoO3/Tl\nIkNr6l13O379OgsIeMl+f9ai0vglG2i01EzHMHTPJXIOTaUWikss0tkjqsAG\nL5Ka\r\n=F8wn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.4568219","@microsoft/mgt-msal2-provider":"2.3.2-preview.4568219","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.4568219_1642690389805_0.7396430186663892","host":"s3://npm-registry-packages"}},"2.3.2-preview.d4facaf":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.d4facaf","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.d4facaf","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e13745485e621169479315b827f3d5841ca17928","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.d4facaf.tgz","fileCount":18,"integrity":"sha512-Gtnm6DODUWe4eRxJjMSr4GEv84hvRJhiPDZTd+Fy69ZpwzVyzE6p90DVG9HjYfQ6msZEnJjlFQBy0/5NL6UkBA==","signatures":[{"sig":"MEUCIQCvbQNzB5rfelceSTvdgL7KmGBbZJyTpNReUBptMc7XFgIgDinttJdTaloAj19XiN8GZuPor+ocX1yQUo2ZRTJj/5A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh6YfwCRA9TVsSAnZWagAAWKQQAKHF4pLSFMnwKsq42r3E\npSOYfICCrzkm08sc1FrRRx5ONUg2MmuMHMogV9YkMpEJV/HM9viw5E6OVMzM\nH4uQ7QRG15wCMLlmAaKHf5mQ8uJ3y02b+50qwZgZUEOZayhoMjPeRN1gVu+f\no4qn4M5629RZCk0rzm2RGdbhMTcJyZHnTISFTNGvATEmclNDMN/rwCcTH4A/\nHDs8NUBj6IoH30giMilSTxT5Lu0mv5ZTAbmKBBYxreiiQplFN+P1he9AzmmP\nomS1nlMofUEZ9iMzRtMxtC2acYi/KqTG2ZJupNAvdWG293rCzt7PYw4/GjIA\n05G7gmTvu2LLZB+FQRrgfcB1thCXYxPsi/PJks2AvAbFuh0fb1+1L+eoT2gP\nepgeRukWVmF4YcbTmX+TrQ31eFReZ56HqHz8mNK1CGGFmQvX9W67HYrpfnsu\n7+JxbjF0DX3zUAT8cxU7v2LbBQfNwjOKIAwTDIN3aMYfUabKCWWb/G872rio\nydreEV9rtoTwdYeFKMQhp5WJl37Sd3iXt/kQfwadkPbgM63+8IMYMQjZ/vZ5\nfqdS8pW2akfiLd4u2l3waLDgYzgHRJyJuBHHCZlknpCdbGjAFW1heTWHJntR\nYSuyROFVuDAvej6QggY/i3Hu9qYsvDGMe7hi8TEsIP0Ey8RWYtP+hhDd9iHb\n2Gz3\r\n=f5BW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.d4facaf","@microsoft/mgt-msal2-provider":"2.3.2-preview.d4facaf","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.d4facaf_1642694639911_0.7892546182337405","host":"s3://npm-registry-packages"}},"2.3.2-preview.ec1a5bf":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.ec1a5bf","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.ec1a5bf","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d8c0f8b2577e0293028440dadb904eb56352efcd","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.ec1a5bf.tgz","fileCount":18,"integrity":"sha512-OtJIU1aEHfZcPDrbgxKMJqKT51QltBd7yftDQJ4DywJLVrlw/G7TAystLWA3KKZLs1KFeTCX/u1OI6Up9rtZfg==","signatures":[{"sig":"MEYCIQDNw4p10jNw6RFXjSDFtSVKh57QDyYdHJF7LBsN0qSstgIhAN1jJzenoymcn48RYRAxtwfscgP0I2EeWJQ9g1jhkyE9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8tuLCRA9TVsSAnZWagAAuB4P/jC3VKsyJv+pgHscHRvY\ns0roZUp1zBlil6Mp2mHm1UuAOQ2ZMMuLTuQFypMYImtM+YK/iToZZPJ68xdK\n3c6X4M1TniUG9YTv3zGOjsg810Zs2BlBiHZyBHGcqIpcvLMHi0wboKL9QPwD\neTO0INfibu5+QwWGqVlcOkjmuPZhmf7IxGN6mHQ20enwU00kUxt9GYSUohn3\nITM9KjdyECBseGSzm3vnKHVCjZ9JQ+1bvLKo5RcITWDqJNfOjTygJ1y5iGq2\nzlmSsAAMMrsumLIFVZ//waz4/BkaNn4imdLwiXlDU41cqKL39lNW7Y9tr/Hb\nhC5btlGch2YTrkGTa2WXLRlaBacnxyIw44Jb+iNxCbGaFMTtmPMnGXjcm3F5\n5rUWYXmVaPkBjJydR2BEACqGYc9MDpj9Y8Daf+uGElaNNGPymtmgd0mxug0F\negOcfHxAPSyt0GN+FsoV8CgpWZT4lji0ZSqWuBWrADRFS0BG8TAzUNO4wH4G\ngPmfRH6xwK0FMS1q6VZ77ZqrdfMcq0w8TJuMiLvWwAygzyRnXictyLM67OzO\nvdhhYGmlMzFkqBAfAbuQOw9dj9ewVmIwnXobdf4I9vJjK1t9q0hvjfbsqIM1\n0IKaykzgdI0NsI2UvRVkB/IXJXcpAFDucToRZ2nV0zX1c5N9ll6W7d6x3kfr\nG/KB\r\n=y5l3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.ec1a5bf","@microsoft/mgt-msal2-provider":"2.3.2-preview.ec1a5bf","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.ec1a5bf_1643305867236_0.45418232594947816","host":"s3://npm-registry-packages"}},"2.3.2-preview.95c8403":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.95c8403","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.95c8403","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1b0cd84e1463fedc2303817095f6d1825f22da18","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.95c8403.tgz","fileCount":18,"integrity":"sha512-cYy/U8KuwXOBTyM7S2wBL7DTRMAhRLZAMlUc2XdRgv909d50CwBZFDw5If3UtFeiH+sxnPrCTfvSeirDUNir7A==","signatures":[{"sig":"MEUCIQC2YoDpmvgdMyThhV6yM1jlhcvobPb0XTSH38kYesauHwIgEMPoqW3aIS43r3ALZBLNbdy7V8bSrNft/1mO8l+cXCs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+tfUCRA9TVsSAnZWagAAGY4P/RuEp1du1XocnlYSLPa6\ncxlDiXgK/F+ezHVX47pxvYH4qCNYlEjHtMxBdZ/Aro7244wQmJFgRg/wAoYr\n6at9dMN8X109LRTGJjVqy7FZkwvky839X7OyE4c07s7z7MI24LormfeXFdxz\nHZ6LTBqfHq1XnYgPWQ6n1vo2AORWTkMmnDqkps+sSsRuXrwh+edQrp0c67Vq\nZuT39eSgvlUXMsmfmq9jpexxp6UxAwtXJt2YU2btYLV/0BoDvu7LnINbhrsx\ndi9v4t+xYgaKbwzJnLmz6ORp2/gBAJfA+Cf3vWJ8UmDe+yy56favoIE3CWxv\nOBl2Zyyq/6NMEOnt28D0J84/75gfMwE/T6Q0EXVmjs/xbW0/o3eLSsPUQffn\nUFpHxId8MmeBd2TSKwzLBQ6iMcLLBLttihwXwp+ngpjNlR9tqTR6x1Mwjgte\nqg7LjKrOBFIZwJuyw+X7ILkFJ7/CTEYp9ceb+MocjhdUvxsvMWdeX7k0eac+\nfyX24O9yLAgW/+7wwN/kN4yhH0AUGUaFr3sU4ezP7QzexGEhTRO9Di4uCNoS\nDIJtyHWSosSyguwVNRQSp7SiaLkuuGuYs2ncUjEEKmUx7D2bn9rN269QKMTj\n2et/nmO/YgXXVzHotZ0gMdHCw0G6ZnPuDrX+aANrs4VnRSsnWUWWWW/ZZQDR\nV7+Z\r\n=7J3k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.95c8403","@microsoft/mgt-msal2-provider":"2.3.2-preview.95c8403","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.95c8403_1643829204682_0.32881617220424464","host":"s3://npm-registry-packages"}},"2.3.2-preview.0a4638a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-preview.0a4638a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-preview.0a4638a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"643435c4e5666975854c79412549974c10354493","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-preview.0a4638a.tgz","fileCount":18,"integrity":"sha512-JPs05kVbsQxsIsfy8exH9FiteSI+z4T3FlmBVDWed5Pr0icpdjZXJSrg9n06l6x+FR+yjGY+CIfCJp/HndUHnA==","signatures":[{"sig":"MEUCIFBpMAphWXQK2DrucKOsOy1hJacXnwqWxIxSHLCWftCzAiEA1AP6lsKa0Hh4q3yO48O5dA995hLzTcfSvZ1x6slASJ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+vTUCRA9TVsSAnZWagAARNEQAIlSscHB4Chq5/P1K8NC\n++Yhlp1DLmm3RMDdxyVQUUa64fs40SrwiwtYQYbl9OYuu6yX7+ZhImVZ3T5r\njdNZlR0qwgdWGkG/6W6aYfp4NO1QZw32yZ8ihHLOrHmzRNIrnJM4Q+RgS6Sq\ne+gEuV7iGyvmUy6NQC9hcQ4ugw4aWyPa99fu2mtRZrbzlbSeqg04Eb1nm2Bn\nr3bSBl+cp8eePIvwZzKjXZrC1UMlFJf8iRj3F+Dy5nG4xidI3OxnCZmTDNK4\nB7gU4mTng0guMF0rZFIDFP9L8xvP6Iopog/i5scCNlICCa8MOfpF/A4TGY4u\nsmFv+XSnRCJuhzO8iGhAGiw5D+NQu21Qh8lDW/TIi+c7N1Q99z2WkQV70Ymc\npp1Xw5900yTGJtrOiIA6PpHYJS5ERUMdLHCRGzZ6dAshdxZNuZamIhT4I0E7\nj8wlACIMDnEx17KIfJzb5PIgdVY0xdwYRbyt9vb5ebseBOAcZRgXDYChf0SD\nl62EHsmAIIZywKpm9SDJeqd+wdM+IO2eYvF4iFaU4FZpa4lu4Ctc/qho7njh\nMUhalSF1oA1eCLHkoyG3kCpoa5li42Ea0QVDCdOki0vhBSF8KR6f8nN1YmFh\nuen2d1j3Q/y5OCvPqtH8oc+IXbo02YZQ4kLeuIufJAm+fyVd568IVP8Ugd79\n21S9\r\n=b/6C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-preview.0a4638a","@microsoft/mgt-msal2-provider":"2.3.2-preview.0a4638a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-preview.0a4638a_1643836628393_0.17088554123180733","host":"s3://npm-registry-packages"}},"2.3.2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"698c1284bad6b5e44e7de9b1f4cc813e5c0b7adb","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2.tgz","fileCount":18,"integrity":"sha512-DjYHG0PMyQC3yUIFcpiAw1T0v9qK4KDNhy25aTtnrvhcYtdqEpBWc7xOIAEjfBRRUjrY0c8orkANco8l1huv0g==","signatures":[{"sig":"MEUCIQDY9R4IrkqDtqv0Wb2fe3M7CV8KjLaSjJl2KPAONB+sFgIgfmSXDlSSLJ3nSBhWCZpNMY4g3F/QJTXl5cyhLcdHYzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":930709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/VRfCRA9TVsSAnZWagAA8QQP/3Z4CtwsjXri9sLqhqzh\nYfCWTXWFlmDzZxCbFOjaf7ypyZAX12jmDxRmGQjJiXZAGADpTUx+v4wYLqVu\noq35At1FfsW6o9p3R3qTW/pAd+G5Slk05IhG9qSh/hVcv6Pbq6+FBwvhzw+w\nZuFXdLEf6PvvBvsq4W2/RSiKoKCAwNW9N4hyyduB73wppWDiG2vRAFfGcfLL\nt0xt8D9gpD0iop+p19B5MqZBEdE8B+z59DYdLFNVyAZGcO8Z/WEK3F3xNVod\nYhBoaxN5agQ81tLWlTG1QTCBWH3IGpZrp9IKs13yStlPEHIEIELD9PU39UIQ\nu8OzvnO/M1BQ3I05OreZR96t79/aMzw7TWaxAKrFtFksF8JFk/8jzxE4eqVM\nxKJzqRT/kA8JnxaOBkemDiELirbQ8PUTQqoBXsB9a5Iih/2BeS9pzBbshKLr\n/tBs+oAMdDF7nCMCEP3znaqSJ62hYbbx/hyh9wWnIgaJzuw9SedZRvTCnBl2\ni69U9U6baWHbJAbjFX4e/MkMJu9vQs+8XQ56XE33UdUGQpVeE1eb4Djq6nZf\nQlGzeULhn4MnGKyTz/w1G83DDoucsBJXY153CPpDigdg09w8jReyVrg/UTny\nja5aT8oJtC7KjpgDjFzMCe8V41b5VYbuDxMcjmi9JYJhLqb6E4MXAmYrXt9K\nkLyX\r\n=DP7c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2","@microsoft/mgt-msal2-provider":"2.3.2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2_1643992159259_0.5935054662866419","host":"s3://npm-registry-packages"}},"2.3.2-next.teamsfx.f5fc7d2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.2-next.teamsfx.f5fc7d2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.2-next.teamsfx.f5fc7d2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d0f4453f3963f5cf1c1ecae0ee2f736997d9d7bf","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.2-next.teamsfx.f5fc7d2.tgz","fileCount":18,"integrity":"sha512-UpYDTD3EV8hktRkiW2592NlUYIxbdo5Nm+6B/eKU5uUqqrJUiJlOZij+9wfaEFGLMrGrVKGpkH6zuTQEUXlvpQ==","signatures":[{"sig":"MEUCIQDjujbejLhP7Ow3vDGTG/nJyV8jMiLhvOWEQgVs58Ko0QIgF5aXS36DiJXwedzxfFoY7oOA9QlQFwUq+JkFEvzBmbg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":990387,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBEWNCRA9TVsSAnZWagAA+wwP/3rx92bjNSjxwApPoXaA\nAAurWcsuWDMOFN98zFYqPIFXiqpNLW7xErKMTLJSqOv8PRj35FtTM3P5d3+n\nKrS9i6FEiqkAqXbP6lnljaHNlo7x/KQ+6P/22AwFnOQH+92NnBYPim7Slqdo\n/gQttd9lfp7xlpky1qO2O1P1JBPBxoxc3LzJ5zVr1E1e6EP42Z9xp5CbPEdq\npBSKyTU/qDUcLKWLffV8T3kzjHt+dg6Rm5F0EA2e8mSP+CyJD257ml8NDV+o\nACDhEmmrB8z5GeUhVBKblmRaqmA6cc3BgTHxoq0Pi0xrrL6d9XuYzIteG80F\n6bqghevqSCkxM+fQBsc3ssqWpmRQee93OY6Cfn1oML2A7UPja75utZMEp9sn\nxL4Nb55et+9PDlzjuWPg95+Mpdh+V8ERPGJst7P3mzrI/ZQkvyajgK0qHFVg\nyYF9HI5nO10WwgRGlf7Rr+7EYyyl5QvApmETtxU1yVJAv3YlqRm2a+CdgoRc\nmhqjpLjzmM4BDuDtGumKc8Tn7JZ8eE7aTxebzZdSOg9nR4qz9UAVOnK5CoL+\nkURmPWuXR3LQP5kmfWibNu8Qjplm6UNym9F593YakMnLqSm1wN322bOEl4YF\n/0qFKQPfoD6eA8TY+1GWo/3NCol1C3EyQSy9XfXi0X/Ok3fVerQXrAwaZgwN\nd/Df\r\n=AMA2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.15","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.9","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.2-next.teamsfx.f5fc7d2","@microsoft/mgt-msal2-provider":"2.3.2-next.teamsfx.f5fc7d2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.2-next.teamsfx.f5fc7d2_1644447116861_0.5080463587608566","host":"s3://npm-registry-packages"}},"2.3.3-preview.077f967":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.077f967","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.077f967","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"318eccb0df614f3219445db3f0e22f99cb23c2e6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.077f967.tgz","fileCount":18,"integrity":"sha512-DOM+/5hWEF8SLq/QZNzNRofmmKaXLTAUqTFvdLcYM6jHH8cHf8L2f5mrL6/HEybafaUL05ipj2fKai5mGYniRQ==","signatures":[{"sig":"MEUCIQDjs7OMcMY/qS40qywKezjX3gh7Ds+jtsOj7LD0d8V9rAIgZciGFE/qkrGj7vUxpKkBuKqQ0WSajDALfqB8q6WIGZY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDPSgCRA9TVsSAnZWagAAYhwQAJrbYtf/Q2+REEtsFniB\ndiq+yDqnapJ+qVLqROzZVTJbUbP2XvQ3QlpXSLmQAPYbYYZcuMSsda2uC53B\noJz3zTZuOE+0aGX6FTUYG08SdIRV+1C58wDCkH3ubCqhUltMXM7anOEQufgL\n8LAYFU0SDlybpSFjUZ6VRxaorHe7VsfaZ/Q8xUQaAe2TEi49VHFqdqEmVXU7\nPPCopCKHb446e/VoD5eOef9PAZp8DokiZQpkCRS8u0/ZJzrMVPm7U/699Vi0\n5SoYI//KA+EFQelBzU4wvbzDbr92lEleSbcMvw8cBfPdwcUZhBEGH7yUmx/U\n5Yqyz5tARJ+DYnu/5wlI6+YlaJkL57zwgbnHPyvdURk96s9ZbGFnuhzCCna3\n7lJy4JO96TRNhv4X/x6d+mMtbM4Ts7zyrYr1VoRj+1d/h3LRFiSV6+zmel0G\ncyYsDXexu5v3DEK4tHmw1kdj0lV2XdIcuPwDfxc5oc9S5TrfbXIx4VXT9l6n\n/7r3fd+u7q1fV5Q2zXx7xrw1evZKBMQQ25eqSh/GKp25GETuGC4iMrskiyBp\nDSxDWYV/UPymb0yH1/+VeP2hvk3neTNspkXr3+eJVWpUhshzmiaOmVu2OmXl\nhG/d/et4+/nyH9G/9aG6RRr7QGrvy3ilVqP16+2iwnzDXvKYT2nR/sdjGBg+\n00Am\r\n=c8gV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.3-preview.077f967","@microsoft/mgt-msal2-provider":"2.3.3-preview.077f967","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.077f967_1645016224043_0.5339750434440891","host":"s3://npm-registry-packages"}},"2.3.3-preview.65d69e8":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.65d69e8","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.65d69e8","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"2cd9617b921a68986ccd0d883d193dc2ba53db9e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.65d69e8.tgz","fileCount":18,"integrity":"sha512-naW55WmqS7DurRb/LPc1Q3ug0BcuM3YCjlOlRSEVIO2LF3RaMUP52dCG9MRqQydWJ5WdDENUUdhr2BW+6yjYww==","signatures":[{"sig":"MEQCIE5Qm1gE7VsX0hEnQIWEPJ5eoYRpe4gLhxZC/YPzTtaiAiArCdJZ/tvFDtySr4ZypAf73wbdHe9u/PpWc/lBP7FGWQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDSy0CRA9TVsSAnZWagAAO28P/iOV5ngYVV1aROnDeMod\nwcYeJIdCCzLoYgkor3pyftaoCXqCMizG5qtsYc0JB5wvPHqxrK3L9OO4YCMy\nFnBRGPRs2ngeAV4sP9LkWdmelYI4QSyT4WePZWSpYhecexMjvhWB96g41FKu\nxFvSNyc3lk0StvqlNcCykqOdpQChcv9MCwIkwZHo4yDyc/HW+4gOYmXQE6+J\nyqeLICob4U+4PKlVXghlg+Wg42BKWsWlPMGYzJXl9yZ/tNnXEzDG/gTfWiWm\n8j9E9ub6x+demIfkqjzw46QcpPDtNbEEA6U71QVSB0Q8Mkfg848CQ8bwnzy8\n50KV4X1Fel6JTKxNGowTlnx6+Dwgbnint5tSpj46kK3613gko9wOFplepj4B\nRH68I7k6RWAE2NTEyilYIAHJOs0AtS7vsLY29oCospVnPNea6E47kHKTBD2O\nsg6LMpShH0xm2QJWJToA4J2MvYRBeKHr3CEx0X2ZEjPv9vY/hvet4f9k+7WL\ngN38YtFe3GKHn68QeAMHSgboiETZFYuVpg5NfRlXGtNx5q3vh76ojihpedq+\ngqQdrtCw42TLh/Xv5kU/WpQO/JbdOFjs8Rif9k50hazlzvFA4UheT2NH7Z8e\n5PWHgbYtgpcC0pVj5GomtoK/e5YOWuQRlfuf7w8YLCfayOm2QeDxoLp3XdZf\n6wyo\r\n=8acW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.3-preview.65d69e8","@microsoft/mgt-msal2-provider":"2.3.3-preview.65d69e8","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.65d69e8_1645030580316_0.018031929519305212","host":"s3://npm-registry-packages"}},"2.3.3-preview.b8ef724":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.b8ef724","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.b8ef724","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b551bc91100d1e4bf65075a905f15c2f2fee33f0","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.b8ef724.tgz","fileCount":18,"integrity":"sha512-L8BZWJQ4o1KIzptZHI8IBRDdRxlw7qZcMKWv0R1yHenX+MRPUpMTxMKOpPb09I9y4iHf5gGhiZJH5QsemgkZ0Q==","signatures":[{"sig":"MEUCIQDo2mFyplCWTdCRRe1xo1mPScAbpbMhlpfoDmDv1f9dJQIgFiYsotqZ7Bcb8gWzcKBxFIvPnGpRvYzYE9bs6x1qIqo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDj8fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHQA/7BIo45JP+IJFUBLwU7l2PWjPPs6d1uC8qPrnpLXDz5wfAJlY/\r\niNDFyQSXXxVPB5joZj/AxSJDOcOATxu7LVdQ3/LqCi7wmf30qGSnrls35h5Q\r\n6VbS6xHcrGmCmRB4QHQr2Q/u9jwI+mk1iDJuxm1dr+hc1divXk6imRmMU3i0\r\nFJwmqgoakDWUgnBC79t8pkz43F8YUmNY14q2z6/EDogLzKvWJMpzm6iNDgwb\r\nrxHXyJiY31Sg/N/wYC4P5illV6FDLjM2v4niK8JF/1uIKxJsoc5cIYrmeoPO\r\nkfufirqg521iKP9oIJ/Gh0RidM6UWUxebrvpuFJBN7px+aXGfVSITv3qCMkv\r\nhg0znmy/NMXCdSlgAeLwP4G4v/kIcSR1Dk7bfLVwzEFPwKUFJf7I2cPrJMdE\r\n+oKxA1gdptPLDudPMeG/z2GS74LZwgqJ7Z3o9j5CQdm6ab1lPFFhHMHPLcAZ\r\nFBWwkLQaN2OtXBUIKGYTbjsOjrOlY/8+mB7VpR72JRAn9KwLYoxMsx9/JJy4\r\njlm4U2WTmKipiRFd0r+O/Nhx1vHnIf+gSNU1KKuAIK9+0qy8zrtx2SxvFqim\r\nibLW+Cms6rRF6IB4y82HZ43XBskBY94z/Cwji44ZEYPtIjKDZa/9JYUZ9nxB\r\nghTBCpUnmGhYn0Niw6wWv6gJ4elr5K2yrUs=\r\n=/RC0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.3-preview.b8ef724","@microsoft/mgt-msal2-provider":"2.3.3-preview.b8ef724","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.b8ef724_1645100831661_0.46484473766434453","host":"s3://npm-registry-packages"}},"2.3.3-preview.d80c70d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.d80c70d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.d80c70d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a8fcfaf7beefca1f1e6157d5fd46aac0a1241c5c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.d80c70d.tgz","fileCount":18,"integrity":"sha512-TV9bkx79OjsyPmHddY3yo2btWa0srlNkKwX9pxzRjxEY6RrdpRBVUxdNgGS0rxClpG6EiP5PLmSJQI1W4X67xQ==","signatures":[{"sig":"MEQCIDSqvxCrytVznnCS/O2oaiaExXyAdJVZDNIrnhiR69sOAiBXzJbel78SzeYIDOT2GASbe1c8VhuboYw0ZGg5/LEqNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiE3Y1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpL+g/5ARdToAQWz2+4WaxGz7LcLKN9JJJ2qLh6geAIM/bo7ohW0SQS\r\nqyhRGZkflrbJQ1FlbILMFHSKbCaTJUL1rCft/04HNxnMFBqECI55ABetcroc\r\nYHYoRXsHv4VEC8UqcXpgW1tMekQvxYxfnw1exPD0zcYCcUSTvFB1/HIWChjA\r\nuEMKgIiY297g5DPKl2+gFFMFp3d+yviwN7LwqDQbAYNB5vt4qreKo0cmItvu\r\nO7unbAdhH37zbpaaxK86zLBRF+HjuIZTB0A3Kq3e0LWRcirnmKhyvnglIiy+\r\nGl2X3ZAsiCMH6I0qJkWOpbRsezVkszZXKVeYU/FDTQvz+EE2vcuAB1UjbWeB\r\na8qGWHNtI2myC4pka74K9xM2wnKmK6Vc0z4aT+YGGF/TenjG4MJSp20atL5E\r\n56VviL29sO0ahtmjsdhBitNO+R0iHtFiPYLmGAkYj3mZ+LVc/WGsNBpTPtla\r\nPJ+OkOACC1HTVGcvsZiE7IJajFrT5IS4boOJNWHKTUYHLfZkGmX9hzeQxB5I\r\nbSVDqTzfyxz0nhwhfGOPXm31PTkLnW6oMu+Faw+0haCB6UqPZ32LssR7k00s\r\nBJ23at0Vh3utaseMrr/k61vpBlslpMnTbXkf04h7yk9/UFa2Kxc6To9GQsm2\r\nBhY46yxJPX+Dl5DRb8ptgX1hZqnx2WI4F9Q=\r\n=v3Lw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.3-preview.d80c70d","@microsoft/mgt-msal2-provider":"2.3.3-preview.d80c70d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.d80c70d_1645442612983_0.4782662762087415","host":"s3://npm-registry-packages"}},"2.3.3-preview.2476946":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.2476946","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.2476946","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"2515091af221727dbcc70eeb797a2c63b3f2dc9c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.2476946.tgz","fileCount":18,"integrity":"sha512-R+DYmZl+J76ILPZe10xgGFEE5195Nxm5hnwYumdFShcVkn1r4U2F/WP0K8EKIXalkfKfTqeFZPRYjfmS4neZHw==","signatures":[{"sig":"MEYCIQDnAuiXaOX9eQi5S/3d89E5/Zl+XpS+NCRyxN43MN2kIAIhAOBpXJQPsDBF1bZX1A2ISZOtWfLWiw4cljQOr5lKOkxx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiF7zRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKsA//Wv5W1ON5cN274CSfF4t7OdTSZCapeuNoTvzgS9H9A2mGsyfI\r\ndYZasjyIFbvMalD/OrVZmZtjqJi9wUzbBUaBffVk/dUUE/AbIfRGdkcF5gmK\r\nHCTEl5rGMgES266IcRf2DnOtevT0X3VB3i5cmjR2KTkjWtGW8zquXlydLpgl\r\nMqKT4hsrYXU/0msP1O6+3PHoz3Ao6rpoLDbnOYWCHSkiruoYBEjbuAbZJz/9\r\nQ8asCKM5bzZxrrJ4P8nktsm9c9spwfnPhU56fVOvWbONfQo+q8b73eqKxyM4\r\nX+NYe+hFPHHpgKD93YwxRx/IJkUTB/DPO1eza5zvMHExgWuNNmqoqavsp8aG\r\nJomE8fBTkjJv8ve/DjdxPKURhG3kID3Gl6XkI929KS80ysPFlyn9elkawtjr\r\nVesx5wFUp/43IA2Abqrhfw/JXoXz08l+kfnNyV03ouqJ6RU+eZ4n2o+WSWSj\r\nSZEnwAJFDt6NCf6bn7IFifexpcFG90ByjcnAjz8GvE5vsctHv5S/T0thylUJ\r\n6BIAKAhF5PBfj1lAlHOAFoosl+78aJYfrs6GKmky6aFEYvr3Rb9LWCX+nKTM\r\nEN4x7cZUdT+AbqAJmSf44VRX/2gObXD1O5UlXEm9ML2i8/PKf9ISp183hDbs\r\nglAZTZSuWJymuESIHD2LRTD57vrsire5o4s=\r\n=de4O\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.3-preview.2476946","@microsoft/mgt-msal2-provider":"2.3.3-preview.2476946","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.2476946_1645722833698_0.33388453965887455","host":"s3://npm-registry-packages"}},"2.3.3-preview.e9be8b8":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.e9be8b8","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.e9be8b8","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"aa877f5ecc4f7a202f59c4cecb3d7a78154e39d5","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.e9be8b8.tgz","fileCount":18,"integrity":"sha512-OuSZ6yD6+z0484/y4yqGukZwWdjZor48vD1oiD4yspQLabqhnpWKTKEM5jRrnLSXtS3XfMrBrGstFZjBnAYnLQ==","signatures":[{"sig":"MEUCIQDMXVUKtndKaA0fm6G/EAWpkAHfIb9jNf1F3g0F9SXCEAIgUDQgLEOaNUQu5PpXg6vI9FMJ3dc6oqOZu9uOt+YwNXQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHPsIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmox6RAAg1ZKFY2o4IicVcjtP5nJ2XzT1jZaDAc28K9Zq55BzsZkNORS\r\nYFuKtnrL/6Z/BlgxxfRb6A91h7wi1u0yAjIYylE2u1wIQxBhvv6GhrOkMgl5\r\nUiT2tQ2b11bBmgdY0gRSIaprqryCdEj0Cgb0iN4VHgHAMTXUCIfTGKAI6xd5\r\n1hrcGOJ7kyzWlSUW8DrnMgfEb8xgCZo7fXXZHH2LNti3NTzagEP6sxyRzMcg\r\nl82eAmSp5RhTr+87q95YIY1yC6RqaTL4zKf62rSqAjE2XYGLafcfJHckoX/l\r\nv3Y7aql/YLyFWnhGED/bW/nkluhYBJJXKh8FiXH3LENAzN55FxrvznUM/d0R\r\n06T5o8cG1sm+uOTeZQVWbwdWYfiH3BKun3a0bLbkLLBs7vYDHJk9efqE+Ths\r\nrADhEs4bTJRNjTGSD/n9b8eRLEsDnPiv+scoX5Xje3bYmUOmlkDPmLooRfK4\r\nay1Ze1BwTiQpcMoemUMX/fusFcYKzCCO2w4WRKSm4LxSC5y8RHzdJho8XRwf\r\nXgRpdrJkTQ0leB3oYNizfCAOyMmEirVviZTr0BKD32Z+p3SBDvqUUxF39iQH\r\nagrosEo0HIGCUlngPczXecSzAsaq2Yt+UJ31trgEVL+aVvO4SXUSoOrZQ78O\r\nUwZUAxUz5omKqpT+ZYtrZrvg5KHvnn/s5JY=\r\n=fVsL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.16.1","@microsoft/mgt-element":"2.3.3-preview.e9be8b8","@microsoft/mgt-msal2-provider":"2.3.3-preview.e9be8b8","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.e9be8b8_1646066440067_0.6109099478419673","host":"s3://npm-registry-packages"}},"2.3.3-preview.ec0c375":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.ec0c375","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.ec0c375","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"308ffd07c6f74af3d069b02a793ab28a0d9cc669","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.ec0c375.tgz","fileCount":18,"integrity":"sha512-9/540cxYDULEHmUSGBA/RsET7iUqxojUf3hslcwBexc1muIR4E0id9kMbcSYNmnvSNbEG7GA8wYOipRUErKqRQ==","signatures":[{"sig":"MEYCIQDCRgeMdtsxVAx+VSx10PaBnqzlOtmk0DpKMwjYVvyvxwIhAOKzyp8Tc29dL+3H7NaJXBnGk3D1johw4KqFIdO+o4Zt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":957332,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHP8eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNNw//cKF7Y770r1s9ot7sg4taQZbWlHHsTEpw/qSRlxyVzrbByL0I\r\nLNX8kIhWOPJpnR/d3b7zEg3YDtk7a2ZoOAcTb5sWBdVW3sqd92K588zrfRAi\r\neLt4LaxsTkLhzFgpIyGrs/RvOhByMpNJTqjWp6pxYUQqBdVi1/IWW9tNcvem\r\nWiAcnWI2TXYaxYfDNVPMFv5qA+od7k5QyZAxA1iyL9Bau05VDnUVHkCRO1kM\r\n9Zt51ir5pu5hW4sAMzVEkzIXwgWYeXwM7Znlg3pdzPj9oSqXJVpuewNwwSuh\r\nyjI4/XIBlP//zFGwRPrqNV/Y5824AVS9GVGl18wsC1DERVvWCd6c80VlxtF7\r\noA6W6H5YH8gR+ajJ6fw9AHC9XVsGnKoNBCr6P+bBa/gKHIeJOUu1T1sBS6zV\r\nHjrkIcGu9Hc/hm4hvvc8LJLSrqMoqWmX6fSkHkguh2gZxvA6/HiGca74uK+R\r\nRH38pfQUsF1LyAW5XlNqeJwtg7kwVBrYy7RwO2dmRQru0L1M7+xdaIBxA6O9\r\ne+nMiLh6LwZFQ1qOiMm0Tg4CqWa2S1AwQ4peks1bT4A6WmTYBx34d53rU11U\r\nhT5FgPDDkqzKqd2buuQPbae2ej68UE0nrOEBGRaQQJfqV8vyE5+CbC253PnY\r\nd8VzHXHvvsQnXKCHzKDRkEaoAsWDSwWb/Aw=\r\n=ps7P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.3.3-preview.ec0c375","@microsoft/mgt-msal2-provider":"2.3.3-preview.ec0c375","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.ec0c375_1646067486013_0.022022717925056057","host":"s3://npm-registry-packages"}},"2.3.3-preview.922affc":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.922affc","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.922affc","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a94fb70e983ffd73ca7643679804a82964de59ec","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.922affc.tgz","fileCount":18,"integrity":"sha512-RpaDanU9j0fh3V0RAdb6/55YITVmGZB09NHf+1VnSa47tx+fs87WnlLqIvb0Ipngc7oBzFFtsgVhfKRzra3QUA==","signatures":[{"sig":"MEUCICfqUgSX3TX5RIF8QbWknuh828V+CuW4BxpOoS1kch5HAiEA0aOXzRSF0JXVJjc0eu7T7ar+9x6SGdoKd5tA3N0W7xs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHQKxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr62A//SEOXgdqdpK6B2kD5EY+R9PjCxAI2DJA2MUVhUqSWy3eOedpj\r\ntwe3ZVRItXQHHXyNayzHVNaWw7B3i669aPolqx5T9otkSk8Sgr2mAtydXNeD\r\nprPBp4SXHoV/IBQhEBvo0RlDq6VOwhd/i5+ZnbBaX7tXKc1e6bo5DRBYPAKV\r\n1kx+pbbSfULTOgLcFRSB0F83fB+H9RkvQ2etC894vV6K/Tsh/fRm0z5jBzWb\r\nShKhCZk/W3kAnxkORRJc7NchIclRv1R8rpYgvJOkYrZM8awgJKNmsXCMIIQB\r\naFTnt++ii2hSwumHTRm1trtrYxgOzgtuZqA1r/uvkXj6b6YEl5/cnrH0WPSe\r\n2SoevpYmCVnIKXgvn620V3yp7bTVvICbOZmx9WNu/dAji6BW8qo0teqgqnkl\r\nVdDehbbTb0QhdFWwNiDDgNx56/s5gaixJdxZkXGKRM1iSD0LzjyyHQFbp84K\r\nMOGHlKs+Asr8+I+vMrWTKXVA2YdwyqYDpvCxH0zMjAm8NXbBn6+vwRURfk1O\r\ntt6uq/g4GfksgDsgzv/uuv9dtgcmbUAwqtD6fFJ6ps+ScB6nosZV6juDP7Fv\r\nzpmrqQue/Kttk1KE1mWSqf7DPJUEZFAk9x57Sainbg1rncuhvAcKUX1xN4Ew\r\n5Yka3tnl9tY0YefYj46VgG+nURilLApLsU4=\r\n=/LFo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.3.3-preview.922affc","@microsoft/mgt-msal2-provider":"2.3.3-preview.922affc","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.922affc_1646068401129_0.07652978114934994","host":"s3://npm-registry-packages"}},"2.3.3-preview.74be0a1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.74be0a1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.74be0a1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7b2aaf0576238f91fa848f60193441c6236ae15f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.74be0a1.tgz","fileCount":18,"integrity":"sha512-80XGHhcogtpEKVcrhY2OobfvX0iZFvpLZEOLYJLQ6rnv8jtEV2ZyA/vRST7Us6JABt/r9/RUkIIO2vXlv8ykzQ==","signatures":[{"sig":"MEQCIBZFeZ+Y/5Zvz2rnfooY5q9HEGptLO6Ibs41sW549FHBAiAWg+GLtYJSTD/4r7o6sRsolqKWT/+q0OilXGKJ0Qb6tA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHmnCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8UQ/8DK95sqe/p7Ji1W5W18HqYiLNVe3amvVRvOYWtPGe0OWUI14m\r\nRZ8QlMr5BG2gZBR2lDHRADoG/ECNwu8kexTPHwwsyPDjn/4SyIHO3SnJG+zk\r\nmz/9KogNmcMDuLAOH011rz70AQFY0W+PnblJbdPfsf4P3m+OxZhaXrwaiIBD\r\nAmCBVFqVZxtqHezphYmiaxRF47ZwsS2p378zGrhGZaDOo7anb1E2tiWBcvUe\r\nH7bIiQTAJVNkGgxcDVzuUWjid/QHfes13xV4RXvW0MwevEVXB8YAZ1MnR7g7\r\nmejceKJzdNNfaqr7rTj9+fvzv4LdkUv6IZGgT9hoFk5pEaEeQ0bf6N5ztQjj\r\nFwXQCHyfUrFZpFt5F3kXYXMmCRh99J7RecDUSUFzcg9Pss3TgXvZtZWDuRd/\r\nDte2gbYz0EYbhuGT/sHh1yYaBucOCYLfisgirayhxEECsrGOj83zVGVlZIbC\r\ndH8e2/xThiV9v0dBNcsNWcOvYOlwqZUMhbzWRhvJm6+sJXg3qEGwiu0dhbe8\r\ngyMhtoGG0Xb4qAtm1LasiufrZs2by67Fv4yi17bWoBH+zBhBaLFUMERqDBmj\r\n0ML8W+1GA84xuCAkTHl3wovHlgVTwX1BrzGXzFvg+67PZCREZQmbl7Saukw0\r\nK/1env4R900dFFybYZjBpD754+Kf4J5hRVg=\r\n=rsVn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.3.3-preview.74be0a1","@microsoft/mgt-msal2-provider":"2.3.3-preview.74be0a1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.74be0a1_1646160322590_0.8229087721866224","host":"s3://npm-registry-packages"}},"2.3.3-preview.8cf1b74":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.8cf1b74","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.8cf1b74","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7c3aa6a47c9b01965ac8f6b2e9cf5ecd4183250b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.8cf1b74.tgz","fileCount":18,"integrity":"sha512-uOIVOARpMkCGC+3DMK3TKIDMsfa7/jbxG4w0umOA8s1PC6Pa6xlxxM1PXc5Z/Mq6WEmDAsyLPRttzuPu7JbYMw==","signatures":[{"sig":"MEUCIQDKCIIzTOibK5iIePdbNCR1eJJgbAIHJ3FzIviMffUnpgIgOSVhwXMUYDsB7zKtYczzFLhkUszu3mgacT+jEURsm30=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIQEmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEvw//daCthWMJ8ooHucVkKJCl0g3+7TDleAjxvSKyc6wnuqS5QfrY\r\nAv3DB5O+9lsAXGaGnVNzeMhpyle+5kVIybPOsIVWVAXtO/Yx6lA6egcJMPmI\r\nH25ENB2kmYUrGvNXHAj8mN2SpEFI9CKA2UtQkwcSTP8Ls1D4x3t7eykuGyRG\r\nC0ebKIQRyVJdWTnmN6swjX+2irKz+s+apg7Dm/c0CFG6Ip0wP7FNzj0XgamP\r\nqmpHchNAcEmyBgQrKc/dle+5qF82pXdKSJNBHsUZwU0zwjINSNK8nDXcYCnx\r\nqqQqOH5skBD8hxIC/7sYS3ATlTgE5VEv3WO90h9Kb3M/X6fVjb5vQ3YcaUBk\r\ntlkh4DC5XjTWHLySoqhPtkkErDia2inqbFwJdw7p8q3nfHP5ur71KT6PiLK1\r\n6Eyu5JZqxpleyVztsdp4Z9TcbPL3C0PvGyXoa+MC4ROubh/AGicgfagxD3zz\r\n6vvW8Iinvr370taPmHsUTpl5Ixuk5b+UG2wi20Pmlwpv2lPuQZuacJlfNRBF\r\nLwXMt2nq1fHhwuKMvL3ALOUmZtSnUkbKsaAeL8AkdV8sQiGt9ZrqvajlNTPH\r\n/jH8PQAR+OMo4slWDP9KVo9EsE9vY6UKrWfmmJnNKNB5EkUhQYaiGJ8g/O7a\r\nj+15S1BzhWdgGXg94wwjrv0nHHMCVlta+nE=\r\n=gQAP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.3.3-preview.8cf1b74","@microsoft/mgt-msal2-provider":"2.3.3-preview.8cf1b74","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.8cf1b74_1646330150404_0.9210040577697454","host":"s3://npm-registry-packages"}},"2.3.3-preview.e9920ef":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.e9920ef","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.e9920ef","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ac53b98bc02a2bcd89fd32cb22bb29c534c668d4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.e9920ef.tgz","fileCount":18,"integrity":"sha512-lNDutCiSpVfjPZyEF3id7fAQqFqfaNqD7s1XxYW5f9XzRgZlLLpPeM31MfvXiqjkUo+lpGitejw/X6fqlFVEhg==","signatures":[{"sig":"MEUCIAy7dctnbmdM5xlntsVhn9NTZ+8IXvfS6VCRey9dwjpWAiEAksgspGaRywZh2Z6myozP6MXLaGd+YlQ/prHsq3bluPM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIh7OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMOg/9F5xWX3rpiQNsSXqgC91Me+66ZzLwCtgUwPps6fNZAtI6jLTJ\r\nRitEmRLwuQXi1P6pVQ1gA94Wzujfr3rdSmPc4sNgzO7Yof5U+SlvSXJ6azkh\r\n6zveEswP70R4A2lYSfg7rGLajiJ6gAZaD1Y1iwXP6yKpMg6iLXduFVhbXUm4\r\nFQJZQ14fT1j744AB9To+qJZeo591QgElNOI+AjILr9x4td8RCYrQb7eXT/Ac\r\nNwFMrPJhM4pqHKUKJeCKCvS0uN80VGaycu5Ehmnu06TqW8/9Ye6j0+MFBFHH\r\nbjHOY2Da4rSwp/qm+70zJ22amOc9giPwY8loNP3uPUvbA3YAhV9wFVlvlexB\r\nrqDmqLSodpWt4a/Sluv5JPgrSWCv+MpTDj8UEiVcaxRotVnurwAnpSHWm/ET\r\n8JuTG6y44XNwHcel0jGVVZDpZk7K6KW9w7eE8Av9ENZzCsAsu+pPOBSe5UvP\r\n3yqmDrzTC4A2XZJeojsCOtibg2otkQ3unhTZd/0VtEWMpMSlYpwblpLLwjq5\r\nOk74YU5Xi3P366/5Ewxh/eSbsw2oWqdRLSst8v1sUSZfsAgAlXIMbweiuCOD\r\nvpFiWF1c3qsCZMox8fCvNHrdzRGVE9ulYWhEDsUh/JL63MMsQaWghz+EsOAt\r\nQoDywiNA0ojXzv9gJ0S8+/mPPNzQiEEcQSU=\r\n=ei5V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.3.3-preview.e9920ef","@microsoft/mgt-msal2-provider":"2.3.3-preview.e9920ef","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.e9920ef_1646403278192_0.27295684888395333","host":"s3://npm-registry-packages"}},"2.3.3-preview.ae546e2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.ae546e2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.ae546e2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"803e7fcf7d35caeee95a64ed828b8893bfee84d3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.ae546e2.tgz","fileCount":18,"integrity":"sha512-yNDL5zIwnM7ci9IHQFOgzgyqRNB85bRjrYqedhXgUamF6Guy5kzrdAuYiBBHygwvKMJmG6+aoKxZpyNDXlfBag==","signatures":[{"sig":"MEUCIGdYFklG47ECoCxoCQZ+FT6Yirsks7aKoA+cWkDNlIfLAiEAuyswiM2MPzwo2er20vbyZs+3lR1lRrHEnNnsM3jmqfI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIjtFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqmRAAlpPGHIjzf714gih2f/3qpFoaw1OINfo3IzbElBjt0UPcldP5\r\nuHrwKsADoRUlGu8N8gHCwbBWD7iqfCTDRZCmB0EZhgjCsV2bfcosT0yXZJ9D\r\nXVodUysZ8ZUUe80YUWZm12JCS1VhbZ31zGA9t9Q6hl5jAhsRL1ASXp6ErOOZ\r\nqBY2ytvSORH6T00KxLKETbj6GAjbs1RGfsHc8GGSF+fW3td3rV5AdFJtSD+t\r\nhBLeUGfHPgrQS9DlQhjrdg6yo7oOvmLE4ZzpN1imPThnGVvV+NDRZHkCejuh\r\nRvyQeBPoJe7T7UW3aMCEcS+zyXdtnW5Izba6wxqHAyaxcJiNDfP1+PvGeuWK\r\nOmIrtWNyl4+xLOPHL24y0ZeQvAtZq/orYUqixuxIcA+/5UTTJ0XI/w97SlBh\r\nmawycvx8nHrCfDfvIHkEALgYI5M2RYYl0zP83f1A+l+vyE3g2WmUWBZ7gJVx\r\nHbIJGuhSEh0KBpxm+JiIO9N0YOQA63qQX3gwniwj8kyJqT6NNkZQdifHjv9j\r\n/cZZUukVb27Ip0BsPRGPKl3HaCySZx4jtfShJGI7C1rX4q0HOrHFlU+vFwUi\r\n8uzz72y5HccHMBYZt090QciZ43B2jEe50e2D7II5sheULb8uEMDrfAhItkxt\r\nRuw7Fc4Y7I2pXVhukxMafN9hu4aco3aNpE4=\r\n=zdz1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.3.3-preview.ae546e2","@microsoft/mgt-msal2-provider":"2.3.3-preview.ae546e2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.ae546e2_1646410564992_0.1035870915638839","host":"s3://npm-registry-packages"}},"2.3.3-preview.8217c1a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.3.3-preview.8217c1a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.3.3-preview.8217c1a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d47dba2ecc24d2beaa06735b772bc750018fa979","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.3.3-preview.8217c1a.tgz","fileCount":18,"integrity":"sha512-BBIo3HazL1xqh6Jc5Ryyei6EytA5mqI5BKVPFgEMAjYKYimGn2P+CFHFDjDfQTwehcE0zZ5Oc1cmjIFFrBDH5A==","signatures":[{"sig":"MEUCIBTrElYc1eqNhx05skW+LNE+T6ba8Q0kgUs/9urKgwHJAiEAwzbBcMLTU99QbKsK315fgSKe0xEjDnS7qbcFh6gEofo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIj06ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/nw/7BJ33u+9Fz0RPgmyA9QsHO/9cKv+2d2KcL1Dw48aojay3QGYP\r\njLgd8eZsbaLV+xjD+kkk4XlN40U6aY5kzt64sh4ynW1bLubvPT1zhjrqzEoz\r\nzIWeAwpEhnxVkLUvVv6Z+kVTc2mLStgkg7JentRDYXsz/6dTAmOJhzersVal\r\n+cfxzGz2+BTEszNzKW+hi79HtCz5Ljqa8YyyzM0rTYxJfx3ptUl3F/RgmB1g\r\nb9KkW26vT1TYplMQ1hQ+t5TqPnV3yBNFzd0hTAzGR9snO4SOa9wx2qEFUcg8\r\nowmfC4XtkyNC2B0rDnewRb+YY1IkWLG6o8APAaWkbk13oMQ36iAIxdHmndh2\r\ntF3DTgJPOQgHqnRG12EQCI9FSbaKMVDfpEs4euzP8mINu698bRu5wTNZ4HBw\r\nowOW06Hc0dFN3wO1EgEJ+jqTs9Q4ousPg88IgDlimL8+kpCRDdpPPVKoEk8b\r\nX7Xzm7UdMshr2BeYQjPSHZ47Gs4lfxFaFoPNdAuBRPdlk263B3rdCAOIwacZ\r\nZ1wk5DbB92hrdnkZA0QpPkoVqXRNvqM49uB0LAOo2ZkbDH3ltmGfiIIXNMsZ\r\nP8JIJKLtaexA84PWj3U7SpRrpcYnicxbx1s/mqgwIr+3MsmrjD3PXwdWPVav\r\n6ELGrYnQLBaiimjx5VUD7/wMuAyTREpik9s=\r\n=9gkl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.3.3-preview.8217c1a","@microsoft/mgt-msal2-provider":"2.3.3-preview.8217c1a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.3.3-preview.8217c1a_1646411065972_0.5132053095544873","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"410468773bb62755a605b0d1c1f6632af3eeb31f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.0.tgz","fileCount":18,"integrity":"sha512-jRC0FLBkvW3zL/GO6EeFKG5l72ZcRVLp2kvdh9eVfHUgLUGOhQGoWc8L5/jD2x2pzUEJmfJmWVW2Jw05+iFPXg==","signatures":[{"sig":"MEYCIQCnvvYD1+XlFnNhMGO5BpBwF/LXJQcwFCyibqkJH90segIhAMYHgUmhvnJi/fmUfdRYkbubpH3BBau3SB0/jJeBvk5O","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJjT1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq58g//ZI2mXMkwmnlN0JvkzFDFK/77LgxFiw1eoKuKN6UGGxiWy+Ji\r\nMoCvWPPhNhGFS0y8FUXqNxKZ7yZ2eqrOUlwqE8QFvKG2XA87pRFCT8cfuJz5\r\nejpjWnHD0ERj4WbpbBVFdGBE2R6nuWmKVHtSW169TDwP14rRsv60Mrh3Ypte\r\nQO44q9ZxY97Q8aPBL7CW228nwhnX9sl7dm4NX4N+KsWB53dgXPRmeWiAfREr\r\nDqkNDwdiaXPp0JpFjpGWWwszEzA55bNdSetefEh1E6LqAEeS/BMeGXCvdHBp\r\nVq6GVzVf7kadJHzgV7/UvYMdjedoymJ8wRjtRWhYvh/haaLoYUKfrmH22luj\r\nfBgDrjGfX/Y2llDUvCmVHRPmp0/MfOGUOwCvBfN6r3XteSiw9Gz7NtOtDW2N\r\nkl9znUKkLorOayqrbLcHK9/4PNQ/loQ/EcdUPF2hGl/udYKzw+rUkzziqeZl\r\nDVHANHMDvxyaiNNcpPNPKQbantk5M9gRwGar94w7r1fZp2Ak9CPiZay29ULM\r\nlErBsOSJFTV3WY1w4U798kR/S8CpU5wjc91d3EIXKbvtIUZEVjxXIBT6TFBO\r\nulxfwzhFEi8TKbbGwcfK4PLK8rNtf8Vt3U6MTTI3dyqRRo3B6Xe1/LTYPqj4\r\nLqeiapJ7XmBF4sbA7f0aQAQFmu5F+F3/IqA=\r\n=soF7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.0","@microsoft/mgt-msal2-provider":"2.4.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.0_1646671092848_0.6120947529288687","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.a559bcd":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.a559bcd","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.a559bcd","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"594eeeca4e0c7939c6233a64cf0b375a6852a861","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.a559bcd.tgz","fileCount":18,"integrity":"sha512-MJtNjcsOP14WwZinFiVJpSOoLJyzXmqTN6wIiWgrn5VwLB3yGCYbWaCA3pzxic+S0DDohWDRJnQpvEe1DdNT3w==","signatures":[{"sig":"MEUCIQDwrFTqNHoNIA1chBZxd6wRno+PAG1UTpMhOXPWk/ubbwIgIyG3HJZMWVrYTEhAwfG/hQYbbP55NRnpBYjE+ADKHWs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":991450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJo1AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryPxAAoESl5Ut90pmJ+eOmgqy6TEkeeZj+cx7FXYXd5ehR3tmqDLms\r\nFcu+p7ffiLHRsMWGXnfngk5jK4FXPCpYhNWj3TMS9oTskY4fIxDK/vEvgG54\r\ncv53YHp11oQLl+mD1NTypItXaNKIG29HYpAwPAFuD6ET8mqtuL530QM1qRMi\r\nNxrgoO19JmVOVQCo4P2OttBOjX0opU6TjqU0t10woh+pTuuAriGdux6COCUT\r\nneUhluxsj0Geuta9bVrE+kWLu5tUsVuWO2ggke0+CEGZSRqbRs29KqoxbKcQ\r\nnndpOgmiYlslRRGzeFsRemgVg6mkOCUf7gFn/6/5DkzrB6r4HcrNk1s+o4uk\r\nWb8NhVIK/l7FeLFHuGBiQDs2c0V7Vfyl8dkamNEW6J2n0bF1SP7MQnBylIiA\r\nTSUbCvTvm+q9RdX3J0xq4vSK0HG6VZ+E1yGdylmp+YeaEuTi6ZMm6/YyFNMx\r\nJsaIUKxLwONK1hW6ECIVb5nht+kFlJ8uQjQ302CgcXk8EG6EqQm9hrTPgVZY\r\n5832QN7W8QffcfxcAAFEC2x2ELIvbWJOzY1OpwpptKA5QxwBJC7dB73tJxeh\r\n/NcfKUrsPitMi+4Mp6Z+tmLHxAUoeInLXI7ZI11NY/N9Gn0eR99DlHlYY8C6\r\ngQrGzMysoRCjwrwlQuzpBuAkKEf0KCn7plg=\r\n=wIiD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.a559bcd","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.a559bcd","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.a559bcd_1646693696569_0.3769202658446664","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.3511fba":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.3511fba","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.3511fba","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8c80df17e7456e6ef14c14c023c9ca3c320667dc","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.3511fba.tgz","fileCount":18,"integrity":"sha512-4+dzs9iZ39QcIyVZSfKYOaQGSiSDQ193PPv5GumwE7JUZvJywOYC8rXn3WwOgy01gPVDV2uyNZnr7SyYgtMZGQ==","signatures":[{"sig":"MEUCIFiPT4gwD300ewwK33/Y6JsZgzze+NpGRkN/fQZfZmQdAiEAzGTcYaSiuKxJ6Z+ul0/E4wgFh0L0mOta3oGr6FMjat4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":991450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJ4oPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBkA//X+G042oFqp5VGyXvsSOl8M2EAXNkEJKWaC/elg0Pca6V8Slz\r\nUaDrauFxELGlDNi6MPc8oI3NA8B5tgMWHNMfLkAw3jBbodSEzGprOeliHhb5\r\ngiCkOYhzVsJp1hGOQwRanAF3rn7TZ+ESC6FopLa0RzoNBWjWeeRhKC/YDeFZ\r\nzqKUaC0ugjjOfVWtecZ5y9sd0IYz95zBpeC717YIfoeUTFTdYquf+K6cRlk4\r\nrWqhWK/w5mBexGkWem8q3ZgYmCgDg+8PtCkwevh6dOxfHVg0975utpNxa3KC\r\nIUVYPpO2NH3pV8TLFmR4v8hByRvq1R8R68X2UIdSS6AzTit2U+BSnk1JBREs\r\nkl4zVBp55+KoL1SEcH11oU7zevBze+BaSQnAJDoFfiqa2H79hGR2S0GzWVpT\r\n353j/yR8W6vMQV1UtR5VmkIrs1AyMA3PHSOjew2NgLY/LymjFm4MCnR/sf5G\r\nMWzdi2ZANWSP8l274IL+TbVSkpiMM6JWAK1rI96H52i7Q6aG2cVOy8JlDJCC\r\n5mZZwF0ev2AURNQMvQmkN0stoFIYgddzvGDV30yROM9O7GvJcmS/eMeRWH1G\r\nD020CaeVFr6aAM6ufyETj+XcjYj+scxnhW2tpYHz432VYRtNzm68WJkC4az0\r\nu4r7qhMdqfPoPnUQSRd/c9JDTICweBHsVmw=\r\n=nuiF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.3511fba","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.3511fba","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.3511fba_1646758415456_0.217617248204943","host":"s3://npm-registry-packages"}},"2.4.1-preview.cad3584":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.cad3584","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.cad3584","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ddaa0cb0a40097a041df514cfa837162ea6b67aa","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.cad3584.tgz","fileCount":18,"integrity":"sha512-qylbUHfM9gR+1En9bWFKvt1xLVtTqJpt9yOW9hb5j1gDzAfqTJOInpsTRqEyTI7M+86N3dR3xxx1MI5eBj2sRQ==","signatures":[{"sig":"MEYCIQDrc053Gm3Ciu24D+TJkUMEc8fOigZqobmjHy6olld9AgIhANajNzrApRULO9UyWWx9LLL4hp3wngLEX6o9SfuktNif","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":958395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL3UZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruCw/+Lt6v9j7Y11v1G4NAdcOJ3O19Y1EQLtBIRYwNksZ6+kalzC9c\r\no9TYvIcuqlktBnfm0/vFpc3LVw4RGU7bhby0FLY/Y+mOAVUeIp0BcLT43U0N\r\nFsnm+NeMFiujSpet0R+DaxlSkE/WBgBrQJu84WAeLnQ1Daraxm5y5B0zjxEs\r\n4nmJAGmaZzhsWDGlBwdcb5lbIH3vmpJl9MfxU4AzqX+tVIL6YBflts9risup\r\nUjZ3kiWyXEPnW1zxxJm+aamWXJq53pbkxz965ZF2EchKMnjSPtQ4lI+skdj6\r\n/dCNS7RSC/1waIBHud1gaE9XmmukrC3qvjy1sArrMPh9RzzgleHltqIExn1k\r\n9CntIrvovmclxZuMEJpuFkSTwRAcpFjqKVYloGmu7aCltmPiEs6gy/VmAxBY\r\n+666MHaI9xqquLOI9A7Jt9W7N1HFESANAI9PkOYXJ9hi+X5YCr7r0kjYqBCF\r\nkWnZTnoclRshJmnkj/4Ob0hWoxdrJ23RYHUzs74+7qQGkLc0QIVXKrAWr/0w\r\nlSdZpBQbAPl8jmEiJ8OCC1mE6W4OLW9W6VpTJkFKGleiAPocTWWiJOy2t88C\r\nuV+MX8OrzlujRraBVkdZ5aZlif+Jw/vh0eGNkEiIJYsUiSEAtxDKB4oQg4uI\r\ngKHpESquPxiiXHIyqVEInryV/00M4smIf2w=\r\n=+Evz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.cad3584","@microsoft/mgt-msal2-provider":"2.4.1-preview.cad3584","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.cad3584_1647277337201_0.30387795911329163","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.053a600":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.053a600","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.053a600","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e005e3c078409e585734a86628c7796f11d32989","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.053a600.tgz","fileCount":18,"integrity":"sha512-dn5vLVs8kcodDs8k4bVt2+CTL2lJnJ1NGa+Rsyf5CzKc7jvNlutHk6qD9lC0r3yNTqk+9yXi7DgufNhvF82cTA==","signatures":[{"sig":"MEUCIEQ/JS/oyoKOjARKeD6GVqfAyxNoKkd+hoRXF6OuCVKiAiEAty9776mTvIT6cG4vm7LZ1BDZZQths0zEiX3eKY+MWIc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":991450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMc3DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKKg//cTxfuOHqlx6PKH23tkM8qhlDkVFYxatbsnF25znb0clZz4xe\r\nhvMos8TsHnn0qDIH6ML5pbMOzsANfQGGUn1rI+X8pJOpNOeIqWoWWr0IIrwh\r\n672zv/xaY/kJaYnFpVB1ti7lXrQUqoPSEK+TRJ/o3u5QljUPTP3ZHYyY8v8e\r\n56r6y84t51i+GiWrOaxIHrLd8eO1wPYSsb/U9Qe27FPhGUYA2X7vTCK4UBKL\r\nCXGzxoM78zRC9dFvwyFnV1sSjFAJT5i7Dz12vV5qzZ9K6lce62aOxHw8QP1y\r\n23f17e1wWo9muuILQUSrYtU6scPoSt/VecjrFFdexqY2Uc04pE1OQKwYtVYG\r\ngDelPsnxljPjyN/9k+4vrAzub/e4V95ORfkRs6YX4WSUZhmLlx3x/PjstOSM\r\nTVV316t/bQaYRLjWj81e4mDqglwnQ0YpJ0f8ItMYXMY6WanE0DqfiIIcruhl\r\n6tvSrPD5RfQkz5rR/K7Z+KJ6RRekzJIs0dVFNQU8166QahAs2If5a/L4V7jt\r\nO/OJoePSYRZofT4a70oeLhzjleQZA8KtMiNt659ayS+U5SETdGl0s5Yd9mm3\r\ne6VBSd9d4FkugqYn0qyTxOBccWXuuvR5oSf44pP9gldjTbP/iovKvRtYRq9E\r\nUTXCSb/T+dPtaII2vlXZIppYtWGWzy/9LEI=\r\n=dz2n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.10","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.053a600","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.053a600","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.053a600_1647431107708_0.7285195422831152","host":"s3://npm-registry-packages"}},"2.4.1-preview.bb3ec27":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.bb3ec27","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.bb3ec27","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"462b4d730bbbfb2811173f326118533872681621","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.bb3ec27.tgz","fileCount":18,"integrity":"sha512-l2uNSulHJGqAavmEeYFKOCxgOPiyYXWLMvMI4Nj7D1bTC6bB70RMuwqlXpQ72Kb93aNHo3adZZa0sIZql5CtKQ==","signatures":[{"sig":"MEYCIQCzd8nvam6lbeWNwTZtArj1vmsp9FKlL1vierLKC2vfiwIhAKo5VAbDvDvo4QWom0SYF7BT77xF82XDupeuiMxwk+Bj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":976343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiZl37ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqKBAAgVYMt3f/fOegprq8gEA8ZiIkz3Jp0hFhkeIYXEjitRmLzrvr\r\nglSls8UQ+OL/V5XXHcikejuBFroB2fOzNZ3l0yu1UGWZVZ7xyu2IU4bODO61\r\nCAxDPQ3/p5KvSWNwwp0/OABBEbeZHrndsIPyW0XGNmNOKiBymYWWlihC5rNf\r\n5VTM7Ve6lIkXsefMvKUE4ytKipVAvc45v20bTbuB2G9t/o/+KAQcdBalPPTJ\r\nZUtxp+/gplABtCDiDCEBBoQYjuI0+HtMRqH4nZ8bQCHXFFsoD3XL8eZpfZ53\r\nsSZoQ+4hNDFDc/YdqJc9YV29QJyMNlXuSxO1uSb+DdNrH0q9ZL1v0gni/fw2\r\n0ohLZuOyJnUMmz9NzpmdNYAnyQ8DoRrwXl5OTyi6FsurDGb+rbJGz3Rq65dJ\r\nva2qoW+CwL0gkvxrG9DRsPtABDwt8v6IzQ3cTRc5Vw39J2Tnlwd/u0HCHDT1\r\noe3DyQ9ueDpb3UdgN6Bt2FS/9+ZaZQMzNjWCNvhB26vnbGV7mNHSzt7hjdcS\r\nxX/sCuOoUd0EKCamLreWMnIHHc1vt6MI4grzA0DTxrsAzxsF6Ot77FRc3p19\r\nZAZEGliLfWymtOq8WyiTAU+KUpAVqfXNgIhmlXSr0LQA4hxnTa23/rxUZxzN\r\nNVelZVxcq5drTzOeXA1UQFphZhbt8yWKW5U=\r\n=SS65\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.bb3ec27","@microsoft/mgt-msal2-provider":"2.4.1-preview.bb3ec27","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.bb3ec27_1650875899100_0.3855011229330709","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.c5a7f44":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.c5a7f44","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.c5a7f44","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8b5079bd64dc6428b380ed5ab9f8016e908e7eab","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.c5a7f44.tgz","fileCount":18,"integrity":"sha512-lE3HvGbHKEOi0YKkCH4GTN/bev8BrkMXZ4hi4bXdvw54c+coOSGYQ3QYHZzzlMxSJHA2R5pXccsZzK6JTHAYXA==","signatures":[{"sig":"MEYCIQDG0ePuHCVrDWhl7dQiP/gZx0a7LryNT1Iti+zULEweQwIhAIll44z1Dyqg8RaBqbQ7gG7VlfylfQlIoAQQpW+NPLGp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieVfdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrfxw/+OjNatjb/x2sDpi0kyzZfnb2GLZWC3aENObtlTveHjSisNUr/\r\n3uOlBgaSz0yZtPJkfIUspVjCcRMJymToKFhWEkXK02yAFodZ4CB9sDvXqrme\r\nNd61goTfdSBik27lvq9nfKX50jJaI4KlGIFwkljJoo60cYdWNeUkZMmwHHW6\r\nl/QertFRo5TOSkgRy4lIceV3+N8cmCEe4IC6aUPUu9p+ySQbxd9QCkJxwvYz\r\n37rci2dg7kKxHZX+2STYMprI2SGh/YISdqapcNMP5IAFq0ReznCVkbN3PoQ3\r\n7HgT+DrKec2OJhNqtSjN2AMoyyzzsX3gIObsI1amN7hbNvDsgtoJsWU+0Su+\r\nCSNPKewYPfvziJ/FmGjRGl+a9LlZd4rONflq6o16kGjRdltkeCDbvnIBpVoq\r\nFhwY4A/Fv4IwPIXhD9k6hz8GjaGC/zXOTEUnNwEhwL+vJUZ22cf8yTeeZjYa\r\nyWovbtsrCFSXxaAPTCZCZg6SQKFdSKhrGeC+7TxW5/cSiEBT4aoH0Whu95Hb\r\nc7oOZuhXSaB9uFrB8x9CzoIMB0dLO9Z4MBbnKgG5I2vF9cRbJzF+RlwDPMxn\r\n+A1lxUoZyuLi0mvSGCcEugRkp00b8locxYRhCTF4hY7ty1oUIUoRGInLI7Ha\r\nhRB0fq0J1u3EJtdYL9mLjgbir3zeXSwbFBc=\r\n=DlkM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.c5a7f44","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.c5a7f44","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.c5a7f44_1652119517252_0.3215366820224661","host":"s3://npm-registry-packages"}},"2.4.1-preview.6d73855":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.6d73855","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.6d73855","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"002f74933e247f4343d09b7125eda2fc10d06777","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.6d73855.tgz","fileCount":18,"integrity":"sha512-aa9N4RaGtthHSSsgpvwd+NOfcpFgLn1+tJEgipcddCQ8a6kVw2Z5KdywUbs93wWRItOeK+u4eYPT3wMZbkN+NQ==","signatures":[{"sig":"MEUCIAKQ6LenNHqO8GOeaEaWcg6Js1S8anHVK25HZm79ESgAAiEA4SBWtlBi+P6CDp4WxE7B/RwB94MgntCdsu/+WiCL9wk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":985178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJie2bNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmop4xAAk5kpTp/+BE73iv9GePIVBS2vyouSuxNfmgqDfEhy9xylxRse\r\n906MW48sLg+wh+ak+YwcVZdhnBopMdNCy/wBb9qYuFnsF5NzQjp/YlFOvmpE\r\n73AYCnsf8anTzABpE/PxlRtKkavWtgYfI+znSA302nl77AznRhMmj1n6ocU2\r\nPSWGpB/Yj3McjTmdsOvJhag4sgQFNIxhenOHNEVDsCzxMXX34Z0GFdVY2rzt\r\ncH9567dO7Op39aT1dk4QSsPo185+tY4FLxoq6ekNfKr8SuAh7enJHtYoGXdW\r\neXcLW1jBFEWowz5M0rttxOV1HZau3Z166XUOoVxeccqOtcTYQX55fPAGnG4e\r\ngbC9flPOJni1WRK7Qn481lpSoJH1pcGqJkqSBbcWK6Bw53FVrz9oDY1J3zhp\r\ndVuTvWmEU6s4HQEkIpTt5MZPIoVb03VpRGyXEOg5DEH+ZD/tRJ006KWTqdIq\r\nJUw91wmnY74wXPB5rIXGZdQfzwIjdYqTMLTFKlKgcD51VJacz77pgIMrEkQM\r\niEy1GrqcaMDZ/ojkkPQsNRemzmrpJXQ3+LMQM/zqyre0YbgwTcCK6S1NoZyy\r\nm3NDV232tchI7fQvP4xyjt8VXCRJ243rK8rNgUrYHfU8kw706BOuTxupElLl\r\n/tztgxWBhPpG8gTVyC75PfOR4n0Y8IL0KaQ=\r\n=kync\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.6d73855","@microsoft/mgt-msal2-provider":"2.4.1-preview.6d73855","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.6d73855_1652254412844_0.7617877004757709","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.1552a26":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.1552a26","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.1552a26","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"45722d3f836d45005f723266a134754a6d085379","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.1552a26.tgz","fileCount":18,"integrity":"sha512-FNvtLQb2vnX/Vgn75PUYsUfiqdaprKlW/txuMpjC/+5a2ikw4f4iwSz33TdYJiCY+TxXFG2qEWNzsKsYcnaheA==","signatures":[{"sig":"MEYCIQC8b10kibu7Zgmm/1gzUMknKI/a9sm7i0fBWGcTNi+gZQIhAK9ufgSrCmOZRyGltH+KpZE/HNQpRdy4vzk9gT3zCXwi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJie+zFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqC8Q//Z4p67KYQ+6G1K1+EpQNOoO3qx3sIwhVy7c31UhjLaed8s4Xw\r\nNomstv9ui3qhyMuUoQUBR92fh1mILx1YxBhFAalidpInByRMyePJzrhbpJxR\r\nntuQ38xu3hFIlEGg2UtAeXAs5OYMRfr7NAVk4GBP99YOewCPGOEKDHYKPN+O\r\nYhr7fKDF0aNzC0mQizVsDcsazwDUmZkZ+A1O6tIjtk4BovIx+JmHpoxkgOIb\r\nBq5NgxY5jHJkD7SZU569M6WN3/5styYY8ND2ylGDNPtrAGA+DEI5OAl2wmTR\r\nfi1oOcdqYNDGWrF7cJ1W8b6x6WjVFoRF+wMpg1r50ErOcehZqwWETTzRJmJg\r\nGc3Hhf/2awGvgiqiwo9M/ipLbXzfGON7H8u4+x52/BQNRsMslfvyXi0AON3X\r\nLHaDM+nzopI/YwchSFLZIKQ24mYxArzOmSGRfLZOv1qItC3o822rzQfEkczV\r\nayVREWF9r0LI6FZK6wGN5alH2eA0eEGYhbC+6qpYhyg1FxjUaKop2RUIiapc\r\n1mI69aYHdmYjzTi4f8ITRwNJ8Cjsk8i0uCgtUwonY0gnYe8g0thM3QOkMRNq\r\nLzm5MdoOmOJSsUeyMIvYADJBPkoPw9MT7BMWlHEESN366NnJpbQLYkFOn9lO\r\nijA+k6497VnQhtKgoicfyqzf0gG3Zt/czl0=\r\n=VRgQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.1552a26","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.1552a26","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.1552a26_1652288709574_0.12484110892996947","host":"s3://npm-registry-packages"}},"2.4.1-preview.5709ebd":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.5709ebd","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.5709ebd","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"cfc143d56fbfbf38a32beeaa082f9178f5718d31","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.5709ebd.tgz","fileCount":18,"integrity":"sha512-ASUHzbgBWS474fEcwaf14mjpqTA8in0L1z0LnJNcsWt82qhm2XmIfhfc+2x2GYPFhT9n2Wn2+9YxXid1OAhBtw==","signatures":[{"sig":"MEUCIAeu0CSu3yfRvL3oV1cY5Z5s6yOcPsifV9GCUWkVdYn4AiEA0AHUfowpv64ETl+DZyzlF0hGZsqkYcpRZe4b1YRKxiA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":985178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigghAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4gg/5AAt5gvw+E9lwQBel+7XKFnpoKKJRHBlyTiNJDV6w2ruIE2bY\r\n3Y7X5SwHYMq6PGRJT3Rjko/Va/VK2k6/trJLlVPVnqGOzMPrAapqIVrcIm1e\r\noo3AUiqtmNbxvAMq69AkqdeoknKj5x+nS6np/tyPY4fxywpB/0mO2XU+GYY0\r\nQjq7nwmp82qHbha1vfyTbhTApVKoSEdrRZSgauc7trFMNh4HOstvaY9GSJOV\r\na1x0tJBQDr2KDPbK5fLdj+2ayf+VWCN/j/Skwq2uk/gvqcsjID6QJvi3HwV9\r\nOnbgxqU4GBPnRcJi3xT6g6fF1R3clHHU6YG5TC6hquNwY1cNs4nr2Sn6Je66\r\n1nZNEBDt29O+XAzWP9xNHNF9wKv+zTZzq4ewJSWSX+B9Z66R3wOnAXKr42Yc\r\niZU8RvGRr+tK6HFannEFKhBsrcRDx01IZ78y5xPh7tSsU0++ZoyDccHWH1GA\r\n7a3o0oPOSfTfwqQoEp+Ei26KBKQkgcY8YZths4uICp0CJBPW2KUjDLhx5T1s\r\nCOKJDBJ1jvZFgEpIzS6N7sB6JX68FSchLDoAUVWxtLwCrW04lotP+z9P6gfU\r\nPkhRzyt1uLYKqOCayk8tUvJB0ypiNUouV09vdErT3GYlwrwJ+2BvDzeAs8ph\r\nr/TwtUXD4CEKT0pT0Z7gDO39HN27m1T4YOo=\r\n=UnnJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.5709ebd","@microsoft/mgt-msal2-provider":"2.4.1-preview.5709ebd","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.5709ebd_1652688959816_0.14373820899303746","host":"s3://npm-registry-packages"}},"2.4.1-preview.3f6085a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.3f6085a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.3f6085a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8d84ec9b9388029c962bc61ca72c9f688f6e457a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.3f6085a.tgz","fileCount":18,"integrity":"sha512-TJfuV0jGaRvTv42nRTxDuGlyTkFAfVXEoK0uV1wXe/9SGWhInmFEUCZVzYmqs79NQZs//JAYGEU/MC5MFiicew==","signatures":[{"sig":"MEYCIQCC6GjjmmrTeUpU3a2j8Zu/SYaNadCfhGwEgd5M8brR6AIhAJ43UB6JSu7eIhPcZw5gyyDy8KCBzzWZ/yvIn73lc8Lc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":985178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigjceACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqveQ/8CRyC0XCfeDOAbxNWF41cXuesl/bFNiE0eujrcingev8abdJ7\r\n/oP4i3LgkhgjwL23pWitFTmLYY89F06FmoZLpITBjYpwBHYVSJbzh1bgqOa1\r\nR9aSg1AaSvuGeMHcoFvJyGtmRomTfXo9Ton7ChdNo8TapFiKkWw8XEcH3Y28\r\n++BUI2ZwoGy9aMQzIyjm3jqXAIYv5c2xN8thRntn41UK2mzstOIcTsRQU8Eo\r\n5JhHRaqFrWshiEI8lvCAanpSFHxHadgkWEzUhhdSAhPncGWM7MawmspPgEtn\r\nWkK5xNphs2z9fiLDiQs2CGGKJPlNjpHRHkIui6F1FNq/5kQrFYm7VOw4+EBG\r\n9taK5Hv+idwvUSaiJCVSWRFqLiYR3ySBepbRrCYVho2KCDaXhxaudhZz+5Wi\r\n2MCfIdx8YG62t5IL/X4BPGPJr8uUwXRj9Q5zrvWy3RJPAwJ1m97NeLcmo3fl\r\nTw88OYBpR0Sqh6vcMdHy71ExrwV6C+xADiP5H10t3Rx5LI3rX8nAlLLNhYuF\r\nO8u7a8/DUCT9nZWH0WRD+CfgMjmOavhd9YFy7vlGJC8cNf6meMc3Z6sEpfoB\r\nBpsYeyCZ4nst2R70GF6+p4WhE+BW4lhsMyV5eTR4VRasL5sKQjwfIspvwrIf\r\nNQ1V07J79+Q+y8A6o6WZ/GxMULQ1JgkLdW4=\r\n=wCIZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.3f6085a","@microsoft/mgt-msal2-provider":"2.4.1-preview.3f6085a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.3f6085a_1652700958628_0.5453211390926247","host":"s3://npm-registry-packages"}},"2.4.1-preview.c1cd1af":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.c1cd1af","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.c1cd1af","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"5723a1983051c699d40d8cad1a37c2451a40c70b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.c1cd1af.tgz","fileCount":18,"integrity":"sha512-C1q/5r+i/TQzFQ7cKMQmPutWYooSVbj26lK7pzFOcQZ9RZgEu9cTBLRIdLEQoDw2N2z2NQRjBSXYFGFJJ5BZQg==","signatures":[{"sig":"MEQCIHN425UCS9fE2XizM0DbC1jeuxq/FP9tVH9l8AIwLWVHAiA/ioz0kDGEmKddh0izNMA1NTojZMadWtsNqoFAXxwk/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":985178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigkLHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqtlw//QL/WpDvwKzNoTKc8EV2Y9s+GVK5efkyoCeTU6d28oZkrSee/\r\noADgr+jKVjDg4gRk1Z62MsHDsI7/QUcFT9WZuZVeLoKTQA/9twCRvRlBtRAm\r\nNniQCMbtjE0VFjpIrrDPJvVGCc48u9Hjymzl1MDTo9Yq8PgD50lN3ozjZlRz\r\ntmh7BpJL0ozJ6GJ64JKFFSPZ664eEWHdKEp0JPVvAje6MBzHnZtRySWmxTlP\r\nVkAb5N7ybCkoNSwekgLCGgpce7yOFGwKvhGYckKVDecEa/o9BHDmiCEzoYym\r\nvQwPURxM1l7XITCddBIUpmLdNaqmnnq6ffC9Txkff2QMMe5v/RIkbdxCkgEi\r\n8s2id9pxHzWciNd4C2Fwm3kr57ovOx4UiEJsX5QdWmNFrk9A3pxrQdJ2NJx7\r\n8uVYUctwRjGRj8rMnvxU5zyfU40QWNI6+VvvAxpzhzty4Y7+o2gcmCywx9li\r\nhlYd1hFjFZOxnLdJ15etu5CgYXKT97v9jFh4q3Sr3A2l0QkqMMiXDsATY+TF\r\n99QBCnu1mBg647uv4icL9fqb2nDQE61NdPY5ExOztUnQuTSinVlHYJcwny2U\r\nciG879ZcBKuxrley0/K1pw3HHfBl26uiVXy3+GXSKBPqDfIkOxAPzvOqFwAc\r\n3awb4eZEI6iTwkYMOBDv3vSVDZTkPULm56U=\r\n=E0pb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.c1cd1af","@microsoft/mgt-msal2-provider":"2.4.1-preview.c1cd1af","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.c1cd1af_1652703943793_0.4137877065407298","host":"s3://npm-registry-packages"}},"2.4.1-preview.148aa7d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.148aa7d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.148aa7d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1afe4e8a31dc147a1f137bed1142df676b7b71a6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.148aa7d.tgz","fileCount":18,"integrity":"sha512-LavEhrxh+0b6bB4eZ/UgV8+QEjcl+Aemw4Kba2kGxBM+Tc+MPjJdNjG1f3kgVxiFMpVeuYhfuNf/8UjL3BwcBA==","signatures":[{"sig":"MEUCIQDCk7/m+jzmfJzogFmbBnGl+o8eAH0rMQSLMMtap2YtmgIgZVyNJHJ41pXZ7tAOLoOXdxv7ErIUzJ0hGtZn+lubHg8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":985178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJig5+hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+qw//RoOLPoP36Uqiz060GgTreuglIFlZBkQrxhfxuTN1xe0MsGEJ\r\nasLItN0u2yc7OGWeo8spGUhHaggqoKwrz48tYluL43vfW1ldefnRIDZSmJwS\r\nvq/asfF2Z7mljFyriWQlyCCu14z2gKyK+TnftzpXaJNWTDLYTnyuucSod7HN\r\nZcGNWXM85oFWKC++qb8M6hTrWC/mOYuKWQIiMDyjufFzxDBCnfFlCMbE85aT\r\nC51nsj0awRNDxLhm9DBi2ZgXqavLLaowF4FCKgmGVVVA9UZZGPN0y7yoNSAA\r\n1huewVQ5zpSOqF45DNBgs6cJ9YlvVg436oANG8NJv4ELnnQZ5cNNawmftHm7\r\no3ce5Ki0OzvMZxAZ5Zno3QBJwnUoFkrsQVGOOZxrRuetUg+MdS8mQYq9+X7R\r\n/ZmmCi5VbwTuvDsghSjICqJrQJXV81p7WsXRqqNA9WqW2lXadbBm9MBhf/cA\r\nxmpTypFsf+1PLxHfvUyh8pyHYfk1O935LB5HeKNqEgBZf+8lomc8zi/vIHP7\r\nI5A4bgZ6lO3jaBcu/OCFX/O3Jcxk7K+Czcam/ZwkVioat1wxlAivPjJNrDiv\r\nJdNYKozpulb4gI1PfgEJsGpyaxprB7zLXzzG3Tyyg8XhjIw54pazRBiP1pU1\r\nw/RfxKdIJyXdniq1v9nQEsVZ4UWNpEBsZSo=\r\n=tNqU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.148aa7d","@microsoft/mgt-msal2-provider":"2.4.1-preview.148aa7d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.148aa7d_1652793249073_0.556363435082448","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.15637c7":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.15637c7","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.15637c7","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"85efe375cf674b6b02e6e4bed7e879a98348a6d1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.15637c7.tgz","fileCount":18,"integrity":"sha512-0s0R8UO1tncCEO97IbJmwVMtlMV29ycAjEFHXjxWNfXmgTbaLGHYee1rX4kY3yqMWQJ6LAN5P3ZtXMQQxabeFQ==","signatures":[{"sig":"MEUCIQD7n0NrrMBMJ/yA0hqmzKRxOuOSTt34Dc08trxbXVwQygIge1/1RyujxyKz97Wz+9zcJfKpknFRJFqX/fm4wocfuLM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1081385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJig/5TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJLxAAjl5UXyQpex1BeqJThiunousfQqDDTjIM55NoY+I5o/9PbQ1A\r\nJrdso2agff1IMOvCUMhzkl5KrL6m+laVie4FnRz0jUocbuXctDHMEOniyd54\r\np1xaW2tTBA4z7jZq83XN9OvsaMc8TyJT1MQiMjjMV7Uk4oARs///brHQ60jO\r\nWavDO/T+k48Dc5tMQQE/R7eMeAwiovXPFTwkyKnN74+h9UkIXq925IQIc/vx\r\nWuY6fbUK17tmcblmxT+HOO8AwujWSRIf/7ZlBkes7O+qkT2lnipRU0cv45gJ\r\n4oZFTfhH+v9otmUnV6uqDuyarZKlB48Lmuh4g5AppbmtCzuVqn74/bQDZdM6\r\nRfvickjACVw7MSD9sHlxTszSRI0YhgV0/ePuaAiBjsnGQ2L7w/KbfDyLoq+q\r\nB9FoypEgyaqva17dj+BA3DXckQAcbTJe7/WqD7Z8r6jjNaZsPhy5jkK06yZQ\r\nTmH5KmQL0oztKisuPI4u0CPPkzQ3q+JGae/6ZBIwmt1gYMnEGmY6iCIp+yu3\r\n0EC3Cn3Gh/ZjVanw0X0tORheh0SXizCgNdLdwytje8I92UbWaNufNTW0oZPi\r\nSbhmgbbLIKYs6lKuM/IpDSzjAza7w2nomJGdrqqxiOSkkZCSKS7gTVTk+4j7\r\nNRflD4rty+aN7xMa4SIrgaTqGmBpZOqp7BI=\r\n=uhRI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.15637c7","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.15637c7","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.15637c7_1652817491115_0.2862427325572314","host":"s3://npm-registry-packages"}},"2.4.1-preview.f78c398":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.f78c398","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.f78c398","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"5a6a9444503f56c4439b2ef70a5e3a8a36b6db1d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.f78c398.tgz","fileCount":18,"integrity":"sha512-ddeJT+wKwz/2ls1CXs71GCZpF97K2rvoM7moclxTazpBw/IH0eGWJ3hwDXfrZE7EyHQ1FssFlM7+/hfE7NVJ6Q==","signatures":[{"sig":"MEQCIDlsJhaKG3+9g3rIRPYkdiEi7jwdUuXystcjR/Gt2gKlAiAXD4xsIbKGi1dsUTr8roSkqOPdHRfT703NX3v+OVKyJg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":978413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihe9uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7QxAAopH/XCrKAR8A8TeSqE0UtBzvf84+urE9aya7W3LOTSo/bGfz\r\ne0q9aq3rhUHy2BfqVeTynQXyrRW6V6uhbrCUaF5ovXY/r9TG8xpd9BufmdJ8\r\n+1LfbDG1w9XQzKcKFoPsLzG2sVgNEYcRgsXOu00Nk5astjbrntEhrwp723EN\r\nA229IQ0BHYNkWWQD0y63AAlo722CSzjSedJ23ASnuFuGdCX0Li+25l6cuULj\r\nedMf3JCeMMaMg4f9NDM7yrAPgCre/nQmgrGNPYScd59IagLzVrH6qA/5ZJva\r\n3eK4faQqLOBu1fwIfnZcnFiHKBejye0ZeFlpgRgAEEKDQz/NIBlQiZADoZ/t\r\n5ZrbbY72L2ZnjhaZZsa48G1sBiBL/Dvs7mO/ma0rBdTtc2vpXXDfv5KtZgEn\r\niwI5jvY/eVhCyv4Dm+soVI+JfcwnS1jRNoRgdHyEp5CoXquSIz9WQVqEm7Ky\r\nP8l0E3K3vs5Auy0ymlrOImyLfQj5Xh9gbAOEbSPMZRsY0o+MQg8lw+A4kpqc\r\n8zBaL02464AAbT2RL/pI+oWgo5rRLN9yw/tNUV4TD1/UfId4huLiexhxdNgO\r\nAeO9r48/A8GpaxN9oRpvWtuc7eUeW7qWPUp21Nv+zX62wRAZTrLFqksVIQ30\r\nMIbwqq3/6MEt1XHunKu+YsLssP9AP2eI3so=\r\n=6whn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.f78c398","@microsoft/mgt-msal2-provider":"2.4.1-preview.f78c398","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.f78c398_1652944750089_0.7730585018377634","host":"s3://npm-registry-packages"}},"2.4.1-preview.ef729c8":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.ef729c8","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.ef729c8","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"9e3a826dc0576708ef20c6886cdee50480ba11df","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.ef729c8.tgz","fileCount":18,"integrity":"sha512-efEAloQ2Px0tmPQIH8Gi23zwYaC3OPo+zGqqcD8dmIYGmUMxMTb6MI0p4H3kfpKEAcSJJKmNwORIWE9ma/r5pg==","signatures":[{"sig":"MEQCIBL+Wg0XZix1nzxULa6acgI0k+ucAszghPxKVAuKPAf/AiBGo3G+KgYe2qpnIxt/yG7LYEN4GcHv0up4nHj8+FIPLQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":978413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihiueACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6jg/9HUqMNNJWlLdxB/mxe61KPPpytPYxm8+UdB8f0I7Z4ENq4y3k\r\nrgpoYczD8RXfGkZUQp1AN0SSyTHHUKPDEvTBWxIx6TZcHOOqM2eXbOKCkAXj\r\nDldRoBNeNcnAzYMXPjmPmns7+Q6YBKvHrBdccqZTvapYyMyXVzvnyS7+fyEh\r\noIhOrjla+ZrgVZceraaS+KZMwRUofSHR30wHVipaMzsMzTmIXvVXw8Fjy2Lq\r\n1qNVAOd1hJNrggh1C7GILiJtGQ2OXUKLNlG8LgN7pmeOeNNhJ5iG/4H3pP6c\r\nUVvXP3tM03TCHG7bfj7gZ+HS5nw1sr3KH8uKDD8zUPEkTbZ1f8BitOnY96ql\r\nHA9V9FGsa+ChuBPYHu1tLPysrMPaZe4o255sqXaxOVRvPQ2CsWXJQ5nBpW4/\r\nBDCXCAlyggxU3nAcELNzV4dBxFAh25eLJ3mj0pg6fyXayYJwmP6nMMrUpE0Z\r\nNpc17nvAcS5q/xAbi++HS5ZsWhM0MQr9pJwyBGqNOupuzcy54gxwWYpimKYX\r\nhnGxx1KGpAj7y6YO7dCX7MNVnAYPhkx3jjvPSWj+bwvsHecTT5jmiXs/hj5M\r\nFoGfa/YA0Nji2usLgv0fE9XGRBn3GMSp9MFtaXBFh/3vi8ubu61i4466npwt\r\nkx6l/9kw2dBYqzI31ylAhh5meFqOZMEZ1r8=\r\n=SQT1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.ef729c8","@microsoft/mgt-msal2-provider":"2.4.1-preview.ef729c8","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.ef729c8_1652960157942_0.5915984734126682","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.7b93d57":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.7b93d57","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.7b93d57","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4d908b8d06e8bd3d017adad562c29ce46f32429a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.7b93d57.tgz","fileCount":18,"integrity":"sha512-OwGA5oiUwO7prLch6OyohGKtx62Pcqnufnct/M+HwdcGC33MHqO6rI8aEp3dpdvO2OBqWovY/gdrpPVyeso2JQ==","signatures":[{"sig":"MEUCIQD6iCQyWtZYUpzMoJz0SugaDV+K5FNVtyt9bs/+jbmV3AIgY7zxUGJLmqKyKmpiPR0JLSSQFdrcRvev2Kc4ifQgJRM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1074806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihnaCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoo9w/+PEpnf6/7Wh70W6qBSNkMZHWH3V3KT6vOeIfHko2eH/QdVBsO\r\npCKoAYtOBnoqeb7VuAy71xydozcvMxyab9EJuisnvP1RvnJvXnNvzEJ0h8CG\r\nsYVFJVBArc1Hqwe3tKYpKzCrSC9d38MbbEsGyxPTLYlliJlDDrXmzWPv21O+\r\nHraFDpCnGrxmMfbUwOEEwKwGuKLc/tPvPoU1xZ2b61Q0UAwc3fw5K+a0rnTf\r\nRoZnIG9XKWMAvEtzMmk5+qMX7DdA80DgxvFCjPcNRhCNwaAWihSu0zobZA8c\r\n9078kmCoA9Hy2SdDG4kmrM1bg42kGBeNOUNGKfWZKOrvrbqD8sQL84pTrsfq\r\ngm6gGze9uJBKvN7KhBud+LxloTgICH8FT7bLg0Elpzag0ow2oSoY38NnEtsY\r\nZlgFy7OJDBIqJjmef6FXQJ59mEZQke5Cc3pqoGY+UB62lYIjkmge53lG61wL\r\nSiDTJWc6YzAZfi7m9EsqtwiLPyMtAmpC3m2aEEefXSduvfFSdWv8mdu7cFRs\r\ntVWs4S83KVFDVYAcJQryPw7QD6gV9XQbtMq8aFpO+uZpPa3etgQyGMa4lFyZ\r\n++ibFXiCuaS3bzScNzsyPS1U2Gkugnz09qfn/O5eR+jfSt/l0KyuytUUEBWj\r\nZH+qb3JpMPOvUk+phjSnJGPfc1UUVR3joEc=\r\n=z7Um\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.7b93d57","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.7b93d57","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.7b93d57_1652979329972_0.25176625529681274","host":"s3://npm-registry-packages"}},"2.4.1-preview.30ec91b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.30ec91b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.30ec91b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"571d1ba47d85af7224066ec59f4898852b66a079","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.30ec91b.tgz","fileCount":18,"integrity":"sha512-csAmkBu/KKCR2j9g/Bxt7T6GpHdS4xPRSIG1zQ5wq5r7f0aPp1jDYaH4QYhSiqXeVoMhOD6WzviNJaABaEnIdQ==","signatures":[{"sig":"MEUCIQCM7pMDfchcyeLKKhgZWslNmIR72U66G4qToq83ARRfTAIgBZ113YhECIdRWzb7S7ek2jOqQ9sst3KJ6lDiJlynWIk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":978413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihoW0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquIA/+JmovfBx8a/7eV4ks1YdAswV/EXxeh91LBkUjhRbBjz8Awj+C\r\nmO66WyD5h9ZF4bgicv7P+Ht/lmhNMpHY+in+PYjr8SJmcRIPF7zcEBsx4JYJ\r\nrZh7DTIrD5fJWyv34CJWhVVFrJFeLDbZoGgau+09QZRDUy3GV6XmnYEjDg/H\r\nha6jSvniHQU5EU8U65C4/FhPSkmX2Rokjj97q0E6vd/1M+6K65ADMp3hyTX2\r\ntbzeGrfFoncChW6FxgxuwqjyjyTQNSxuffcyUsvXrxQdxVexJ5HsGFzXDgvO\r\nJ6XyzgMmUcnbicG5fAzYnlB8CXym1bKrw8RVDKEYu3s2DkEC3h86WiVmK18f\r\nNiV5a+Smf7tgFycmBIypo5LxvHFr7ccx3fWQ70NnEltLn6Q6PjuHKDUdoCch\r\ns4SlWAviKIAd/Ry19UeuhQGDIokGshMfYQ/sbav4BhNhOCMCU5CFwtk5F2aI\r\nlskygt+ilzNniwTu1WXlZf/xJg3S2sWlrJ5iKFB73Mj2C+DboB17lgGFsxU+\r\nRBvztPz05AnP0r9dND+xw4w3abDAKTENz6eHuGnqSnMNdde1tGfvZ6JpnLub\r\noysbzxJp/wylzvkIGU6+7xWZBORYjfL6jweB5VqgInYbMEgy1Z/yd/n4adgg\r\nHejCLz39cR45cbI6R5iNq6w1ipOZacw+PtY=\r\n=BFBI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.30ec91b","@microsoft/mgt-msal2-provider":"2.4.1-preview.30ec91b","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.30ec91b_1652983219575_0.04649177472800359","host":"s3://npm-registry-packages"}},"2.4.1-preview.6c124f0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.6c124f0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.6c124f0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ab1ba62ee0745b9d01fcc9647904c3bdb6472a6e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.6c124f0.tgz","fileCount":18,"integrity":"sha512-jQ5YVc3GXxsRQX70e231DMaeA2t6SOHq8cD31bg8Ecc8DOcucdKbQCXUWt55CmKuyEKmDsAQxL1PtaMsKsAxgA==","signatures":[{"sig":"MEQCIDCAYaTDHkIWDXV6ywopVg6n3WjqnKJLPraA+Hr5DJhZAiAn48nb4/jjpmP1pk36GVoGXdCQOmTC3KdtbCSMVUZptw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":978413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihpQoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBOg/+NUnEkAdTU59dSDHU6VzFjPnLlMWa0EZvOljosI0Il/7biR5/\r\nOwNly6aeL5Uwvgg2y+5d93BxG9CilewJfFvHZZEuUenrzZ2tS9W/591psl9L\r\nmPWU8y6mKlTX9EYqkTsgYqmuHmc7uCnUqed8vllOvvHKrO6l68phfeZlQCOE\r\nB0XKLGqZq6hOdgStbaRBeKxY/d9xrfAVSc6LEqpumYS0vni7Akg+bQ8ESU8B\r\no/JLeu3F5putQA/wzofAkYBABEmQ5307lVyDToxgnLCmZetB41Ai8W62ruVE\r\nFtazFi0kp2xZZye8cQ2u1s1VEo9Pcn0uzCHH3qUw3LQqbQjt3/YU9Er5SObs\r\n2lPya/DrP7Kanr4qPCkcGzz9hvU0labn4eV4CzqZrCSBIPu8KDBNdzKFs+fJ\r\nm6rVYbEyDIOftDVYbQ3stumqcTnpytW/ZiWhcmzSC6WbwebxR756XcPfEz5y\r\n6a0yfs8k76yfcMq9a6ngzMmLQWu3WOXXFJ0vGq+QKHgb2u2yM5ijB+uyqEmP\r\nzkFm4vByqABWR1YfXzawVFt5DM3M3JWDH1/qKbFXj+BZQAc2Pb04WlvuVhZL\r\nH/qfb857tVwnpCcXbChfWhYHl/zw/w/6QDEqJ5+k8abxxFf2uRBoBQ4dqm7v\r\nrIPwCwbJp5yW5o+eH8RI3gEcp7V2O5yq9YE=\r\n=zr5e\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.6c124f0","@microsoft/mgt-msal2-provider":"2.4.1-preview.6c124f0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.6c124f0_1652986920587_0.21562889781794392","host":"s3://npm-registry-packages"}},"2.4.1-preview.26f8d31":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.26f8d31","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.26f8d31","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"cb83ab3c5a1a1c35f65a5371af3252b125c04c7b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.26f8d31.tgz","fileCount":18,"integrity":"sha512-TQl8EwJ6GWyNkd7rLBdgv9EnPDCfZvtGt6A3QwxfT28ZzQi1NEdKLnOehHs6vqWgXRauscSJSiBw+lTfu1r4iw==","signatures":[{"sig":"MEYCIQC1sUJYUxO66NrRld3N4ZbDcfrKlgQNw1163OEPuBuK+gIhAPD+GzkL56y5KrYp9ZscHjmEIjygpiRfAltFv7k6HFo7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":978413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihpmKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMjg//fBuJVzT4rLr7KanGPXc/ocKrHFfkAcpkRgJT6V5tD+zQNLtN\r\nRN5VNWoJwbQot1peFXgs2CLGan6gIIpy22Vh2xAF83BHP30GDPywaezhQuFR\r\nDfmGL8kK/w8RfGh5bBeprubZtHI9eS1mxybv79FG1lnqliwQ7oa34ujytart\r\ntDdQUFD4eqoMvTf5h9qXZ0jBoDE3MM8AlIHRWx2PXqQtSL6ArbbjQ/bwXjhb\r\nCBwSMuNs09Uh3FOXTBXN04sD03UTVULAAFXgTju5aCkcE+jdPvPFobWOcdDA\r\nXg5rHVMjxN/6dV01IDW6JwiFYR+MdrK8yyZfoiBicbenL/1egKh6J7qM/OIK\r\niTumiTofUqjEVqkB6ftdsl6MFzYvON0i2ZYyhbvCbjiZnaujwclIcOB4v53G\r\n+CQrzLufN6H/LLjWiE0s4681HFajI0CYKpN2jZovc3BJ3c8y6HGelzRe/uu3\r\nuOzcls0q2Ytv+lX8K32FZo6B3lR0XNaAK3kj5wjRjo9PQdZWVvQkLOVG2/MM\r\nkpLoGR25z1cbtfE1khpmuLcVnkCls8AKs0qLH0axoxHGE0thVGeHVoe4v1jU\r\nhHX4yT1seK9yWxZIo85XLgTHOtSCrHKGLMIohanliM8hv6JW7ehzevUvY5jo\r\ncl6iUytTq6Ala+/KrJ2CGf+2DCDlXf0Wkck=\r\n=OZsl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.26f8d31","@microsoft/mgt-msal2-provider":"2.4.1-preview.26f8d31","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.26f8d31_1652988297945_0.07980490036594512","host":"s3://npm-registry-packages"}},"2.4.1-preview.4936d97":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.4936d97","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.4936d97","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"194513bce2b1c3315c53c7845686ad67bbd411ca","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.4936d97.tgz","fileCount":18,"integrity":"sha512-iMBrcDIRX3Xfr3LXBnAOvrNmtNw0n6XKfPS7QItOfTvY6JeUiBz5PVm6D8PUI3531y0D5eSrxybmkz2DIgGK4w==","signatures":[{"sig":"MEUCIDViud9MRaHVqrFTV1fZe/pynh64eedztm/lDtzMmFqeAiEAxCC6q1M5n36Jw1lcqAiaf2LJaRqCzaqgH9K9qtDaAD0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":979856,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihqRDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFxA//fi2xz/ehE5jLkZNkjBN6NUOstTBFZi5Yaii/q6cv+g2VBAhX\r\nszSw+FOs6tY7qbtqv3ID4BzgXcqalR0B7GiiB7vOCdWi4TeqIu3B1pHZlN5Z\r\nsG+aQ+AZ4dZnDbXz7r7Nz6Fu6RJnMV5hapON1+ZMIb5H3UCJ03xE+ki79tIB\r\n8cxubZqd5ANX3xjZ5QLOd7eJHpEKJU34d4NTnUw1SWfs0DQ+6Ngz9FdFcPwl\r\nNXp2ib9IfxO0aBWEUx643yo7S9hdUEKJQpsH5NlaXzS5BT+UEtS8QV35e3ZT\r\n47KmxqfM7pB5DWjxCQayYEO9hQ5Tcgc4ELvgpjxLLSyN9R0fO61l3Tkw5oVo\r\nzcCauR00CtLRAucazaJk2yolamKcRzr/Kt4nDCVI8XzOCj7eHIL5lBWqp7Ed\r\n+DHRz/BAL+qPqxIXaQKLoSErY5Fx6wyYUzA0SpIzsYUL1oe4rm1tPJalIzVR\r\nRagCc5dbIVHwSdrv+N0GRV5XZgKjgzQz1PwpcB6/XikoZmHhBpMy0Aim6dPO\r\n0dYPewdSdr5LqruOplol58io9UFIkzSObNawbLwkWxqlbB6qXEM9szlLXNuo\r\nJq7tlkagGikf44ZrwhVcnftLEwMFX/0e7t+9OEGUSTE26waalmS9CB6OtiBa\r\nUpdD5nZmeXl0Id1yXv/IZr0MEMhXPr95mCw=\r\n=YVSo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.4936d97","@microsoft/mgt-msal2-provider":"2.4.1-preview.4936d97","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.4936d97_1652991043185_0.259296546189135","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.7125261":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.7125261","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.7125261","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"0cb689d56ce839fa74a557d0e02341cdfd95c5e8","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.7125261.tgz","fileCount":18,"integrity":"sha512-HBiU1X2FQD+2q8MU3yCMKqlO927bB0uyw5TN87EGc4sFk1ruoNIUWtGQi6+0/VeE/F0wdzOKJ7wKG80s434FNw==","signatures":[{"sig":"MEUCIEXjV6SuSdQk8HoF1kGgbV+43rmAqrpG8HlgFux7qOhkAiEA5m90SafSELCUfWFhjjgu407T8LLgfCLRxAMFqoa46OQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihqTQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoQQ//e/NolOQUHp1zQynLP9x6A5QppGoYGZmk+3EKTXFWeC1mLfLx\r\n5PEj5pWiiXZnh288GZ/2pCefQf9WU4rmxTA1MiLRDVuD4WwOjaIJHG2GzqTG\r\nCBNw7OVGJufFnvZ7lGjIrNadA6BjhbeqOflIC8Xyes55d6AqtssthUOd+zfW\r\nfnWdm9SN23DyQpdHNXMxd1gUzbS8zaxl3BwXNDk5UdKj4lBI1HI6c8oOzBHG\r\nqhOu/rM67D66xxiHbBuu0NAJtuNPoupxa7gn3B3UixgBaVRqp8foKMMN+/KS\r\nW2wy31Lfjb49l7XpG59luAIhhWQvOPr/cCZwqmIfTmDuLeOJ8e173h0SH3Hy\r\ncQ4YhuUsaYLA6nWBY+fLsAwrwfTTtXtwshnB/+2cejNaO5xCzeJTclZM0U7i\r\nS88jasoyg4U4bs2/+cnFr6nqz0VwGkFLmbDqIaR/AghUL0DhuYkhxCURjgV1\r\nFz1PRkkkgLXVChIUaY1ztZ6t3IjxtivpjWwthJKulNxig88O8B9qDBmsbQV5\r\nkmMkPzLN9I8x6rMBgtHrxvH62Dbhfb5Tz+qgAa/TCO76ueXClldK3b4iUgns\r\naS+dw9g+7bdEMj1AIe8pGtg2hpAAf2T+qyrCmxRYSxo9r4D+gMo1FmBtkKIv\r\nQBGlzEBaXQpvKrvNRIGXD/LsAtHkn7FkpXQ=\r\n=pKWk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.7125261","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.7125261","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.7125261_1652991183971_0.9434269754947249","host":"s3://npm-registry-packages"}},"2.4.1-preview.f33e416":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.f33e416","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.f33e416","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1851ecb94e9e69cab1de06540cf5c26b1057c705","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.f33e416.tgz","fileCount":18,"integrity":"sha512-MuxEM6PmnC/Sf1AWdwJ9h+D2JdYAno+SPYBnlRvO6N1uscWZvlPMTGi+Nq+CxHzZgzlekWVZEgBqIQa+VYP8rA==","signatures":[{"sig":"MEYCIQDVwecODyYAPmVlzv7jveRIiXe5wiO/J/m5XYU2kgIfbAIhALleGrtFXqoSBmptzG6Hn3i4dA3GklUhAms+UFzdIw/1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":976694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih5bWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQ7Q/7B3NNnVDpDddhiTo16hHu4snakMwOPPLSXlwXmlcarDekHOrk\r\ndudxe5EeHuOTgg6MIOqr8w2BPcNFMaSji1BvuXTayXY8bTc27Cl4gu4DHh0I\r\n5RQ4kNCmGWx4rI27qzRAyXKjNICs/OIDChUoEg4ZM+80IwT2zWHNpsB3mBV+\r\nq1UKoaYkVl+5jQSVTp218ckDwlFyhTI+KsSxPQGgYUFZ+UNJ+FfjaffmvdHI\r\nXDaeRxCAt+gKl153tDnJo0m7HRpZDVG3mWwch2AvfdLS51fXbC5n1CKPnawC\r\nwT4xgBgj90z2MF0L8ROy3KJifd90le9yD3HaENztVOk62qrj/rFQiYaJ9U4T\r\nihqbBZUob3ZwDpeEIN0lxdxbn0xD05oKLhwXSvbnogWlepKSncU9OKTm8FUv\r\nu0uTQDAJJCNfUJ5kB+/ngQWj4qGNv1CiQS1jNftNgSlaHh9tNWVuSIck87ym\r\nIKNMr9hgc88X9FbgrdHEDiZT8PMmMUH/qrMGTVChaiUyaJWH6ys1HeIt+m+X\r\nBe89YlpAAv6lFr+yiiOzasu/AQX+12CpBa8ZVXq7J82agC1U4yUIE+SEDm9S\r\nAyFRTUarVpMHqcE40+qe81MYO9+qEvaijlDhRjZ8a4obhxFx6RrRFDx7qt6t\r\nxzbDhB86RdjZPNgcCB0TghNAuyskwEHHR8E=\r\n=xxri\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.f33e416","@microsoft/mgt-msal2-provider":"2.4.1-preview.f33e416","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.f33e416_1653053142630_0.9204190784677533","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.5936a19":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.5936a19","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.5936a19","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"37fafb634e2125c2291b9b6bd0f1e76a36016708","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.5936a19.tgz","fileCount":18,"integrity":"sha512-kHZTu/ck8e47XDU3b0gnuCJDKn1zWIKE2cOGqTlv4GFt3gzc7eiwECFPffGlRzMJNlD/6+hyrzj3QYf4sSI8rw==","signatures":[{"sig":"MEQCIHPKUlUuiGOXm13+kJQoBhbwQ5VnJIZjoRTL0F8cgJiOAiAeDnCyad63xe+ebIxRXqa0Q3RmG8zArsw+1pPUVQ8wRQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih73xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEYg//cRhdIFcDn2l3TkmPId/wnFruvBSXwJ4vFJh97DC/mKqClMe9\r\nzRUuGipUQ0dKDTHdWso0sxV8pkAbG7h9GVHjS9w2BY+slug0kblUv27yzxR2\r\n6rdd1HUKY8G0x3afpRQbdnd5xGcKT+uC6lck1IpNXVD2SycvtgLEgj/Lc/G6\r\nsT27GXgBXV0cqNax3DaA0ivAiyvQjnzym69tcAXo5C4e0sc/Op5JvhcU8ACz\r\nFc7cvV0Gta8R8qXX+r8ot1pHWwqpZizmkmC23Y2X7fxT35sw69hAIcnQuUrz\r\nVM7S5O2YoW6epI5Ce9vY76HDPKNr64dU9VB2uqFah0/4x1QjVaHriF/mutD4\r\npeSeh0R6/tJejMGpYa6m4l+lZ76m2cB6onIbtLW5Tu891JCbglrXpDO1aB/B\r\nEnB26XGMKWvQribNsyPtD3NNHgl8ub9hX50OqzSDQDF3rsZsWVsOJ/eCkkzz\r\nVlPPmzzdiEd47gj+dPP7aZzBoVhhEH8yPqR2U7XifcYFROXGGi3afSgcTDga\r\nNYMH6umIBq2qR8om7aCnMwAOitHHP4Aut2UZMKisjKQSFqA9xIx5+mQc3gw9\r\nEed7K9KuRGFEHsMpHmOYOkXn7f6YCNyOW6Kn50U+l6+tdixgEQZWbMVqu27j\r\nqXL5TLSGu0bdeeBzGzp6yy+Gc/PS41NRlUA=\r\n=eXre\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.5936a19","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.5936a19","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.5936a19_1653063152807_0.06514460636423047","host":"s3://npm-registry-packages"}},"2.4.1-preview.6b037dc":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-preview.6b037dc","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-preview.6b037dc","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e0c28bf06cad06c9af3f9da1966239ec730ef09e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-preview.6b037dc.tgz","fileCount":18,"integrity":"sha512-atw6BYKjzeMskBCx5ZChj/8kDFVMphlTWQfGaFXs9YZYwRdQLZ2fcTZSuqXH8qWrbd9Zu8bzzIR34nYZU+GDeA==","signatures":[{"sig":"MEUCIQDkrJjvrvxDqf7gD8rBVAUXo3dCcjIC7lCHoCw2ZBqYJAIgZjUk/VwchuoATNOuUvwL6vx221o+v2VJS0u4KiVqjN8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih8BjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZyBAAj5m+PfgStr6uryU2xZbN8Tqks2yql0QT90UEMRFeEp8ds8St\r\ne/mNUzbd4Yz3FN3XeLfTIdVkHzTOxwGPvu3LQy1ck6mhKgEIvFNVE85juBCn\r\nzMIG+61XODxffePMy32QuNNc0Lslmyjvhv7/AUPkgL93QkpB/zNnOKFOWmeE\r\n6VC/uaXjkDq47Wd+tNFoqNPXmZ3pzKfuNW33cQd0pqVv5Pl9X17HohvzIeAY\r\nN63LAMsV6iyTd3F9yXVUfOHt50GY9qTiKIIZ24kg+q/v58yVHj4CvzrWY29r\r\nRtIwyZM56VG2oF6cyqCdINIL29HARO0vyPrWQgn96QovTuRuTlUuQgKUNuc9\r\n2he0ghFQKLJEydfxup5SoCOw7oKy9Pm7H9PePaOoFrmz6KT/r+sTH4BrAzuy\r\nOQnqQ6l7CRa+6zusLnrISNd7C+cgbGMxK4gFMG5l70UmnkhfXeXFRpfOcwC5\r\nlQuCSqTl3HsCYokC56jLIEHFw8Y/Ple1+iC5o6qlp2JhC+WbtVtTjAtgH7Vd\r\nzIrifJMZTlHcNOFAetcwg+wYIHBecN5mND5xnfYKHBGuryla64KLjnUNB6XA\r\nrlgme5C+/qe8YTgWUQndkhEwDkPXtbv1KY6dJXfbry/C9dY2FXsLm0TVso+k\r\nim8GN6N4D5ae1zHgGhCDnzTWocUyDSKnO+8=\r\n=w+wT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-preview.6b037dc","@microsoft/mgt-msal2-provider":"2.4.1-preview.6b037dc","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-preview.6b037dc_1653063779359_0.1845724428970439","host":"s3://npm-registry-packages"}},"2.5.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"59e0bb181d95af728840609d509c86a22372a849","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.0.tgz","fileCount":18,"integrity":"sha512-pdd9D9r5slBXPLS+XQVKZDuB/hAyH8kBU4rA/LOTY3iYevpdFrq/3FJpGSebzY/9DygjfYbFLvfA9bTSehUY7Q==","signatures":[{"sig":"MEUCIQDH/U0CbjJGDs7wgzj+SzUspEOK0geaU6e+Ebt/9PPGuwIgdBiEW1szq9bSqCf05BJo8btYmyeN67o9tgyJVmAaNGQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih8c8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqU0g//ToHg8i6MDYHfuvTdh/yCYLqqfXBjbU9VnbEz33YdzYPU2wiD\r\nlbITA5e8eVQUOGoWq84e2y+GClkFvMS767Dp+SuUMY9hj+heks9IMLp/cll2\r\nE8wGOnXVPNDfOauXK5P+rylSx/RWJXmcP0xCNhrJcj2OAI6lUZQ5nCUAtzma\r\nHHRZHXGU18Uk53RoM1EwoBeGnkRpsGeLwBM11/Fq+X+hyqKzvWgwNq5U0UJ1\r\n62zHFdYSkKbzQW6VPCde+gFH9cYW1MQWLjJVY5Wc22seEPKTXVWytvNdK1Qz\r\nex/1tzo+36Hy8jrXctjfX438gOqZ+vN9rCJ2LQ8A4zNo1cAKYLkOyJGZxiYb\r\noz2m0fsmgH3mj0tMOgXgd7Jgx5u88N+2avbJ5mUb3Cp+b9rDPK2u9QqB5sX6\r\n8HZ2lgy3jUkxd/Th+kRhZKVmO8jpFIXAT4CuAWjanF/TyrONnRqoSEQI8HGl\r\nECKRgog3ogLPJ3pogM++9Fp+K6B8FsLO0YQZiTmmWylH5drZ922JD0mhpUNf\r\nHN0nfx3dgD6y0WS9LXmFYQKyTbUJvqCvTakT4XHq1JFIvxc87X+alSuBtlOc\r\nwra6nuoXtuXidxfuD+VfOYnnvIketKd5DfiGGKP2FKh2KlA2zZPSJY634d3/\r\nfLjpbVASlx8pvbP6YXB5hWf+TVB23uL89/s=\r\n=Q5zl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.0","@microsoft/mgt-msal2-provider":"2.5.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.0_1653065532102_0.7410681927343421","host":"s3://npm-registry-packages"}},"2.5.1-preview.cf6141c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.1-preview.cf6141c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.1-preview.cf6141c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f3e62ef20e1b426cfef00e84d4403e7859810ed1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.1-preview.cf6141c.tgz","fileCount":18,"integrity":"sha512-kTVQmwhTssxKuDXwTqMGvVK8TULw+G+PqNviMJAWMku1W0ZF05nGXjw8BzS3bV3v8vys5JRPPiZsCoo1T4PHPw==","signatures":[{"sig":"MEUCIQD/fdM0pd9es6yF8OCSfj1nkohLuS0F2pYnjJKLamBY4QIgJ1Do6PHVwQpYYQdjmCgMDZC13YdCeKOeCzK4fL1dlwE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih8izACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvaxAAkVjoLrwzbEeR2z9zmotcndH/LjyjHzJCZnv2NEnH+Rfwplzl\r\nN1JAkx9nK0bd+L3WrL26RcDXE50+9lcPYIhT2tIHkUldyskyVgjeMlrzgd0H\r\nFAeZECKjYfaM9fhabCgXHBt/veFjBtNK1U6Y6G9oUgAUKh4Dldk/zSyBckYx\r\nq9s6tY1S4Nctp3kHuTqNTP4O81+T1lUkJHRLcVtJEtEEK/yO3xU4xaWjK2Qu\r\nv7fFhUXCZlMFlOvRMMc9dqR19ltHFDXZv5pZwUhZUGQ5dT/okTnYhz29tG8o\r\ni2NpV6Uz9PZglHN/YEigMwXm0Smf5SNk4O9Df0PQgMd0F22/pRFNO4x8FC7l\r\n+VvtJ3RMT19ryspKrzBwXU+xS1HJKgS8YQYi9+dvD801DO1ldLID8dXvh6lz\r\nOyeIul8TLG7uBPYX4Q3QZsHyoY5FXUa2b/SBd9UfunSZZn1BwdMA4RBe55Kp\r\n3zdQQOtx7bKVedM1PF2Cqe8F996PDhDs5l996TWKu0IiJqFO4p3L234hrHaG\r\nfwHtZchouTmFFxtW0FQGEaBYXnI5PlbPTvinoGHgQgAgEZxgbGCZ1eRmLby8\r\nniWi89wjBRdjDrLPG2SvkV5DFaG+S5Qrsn6KFl8Ortz67ZFVaK9Jts/vr7y4\r\n7gRhN5ihi38jMoQUkZOVnDj1NtEX43j6yUs=\r\n=TRJB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.1-preview.cf6141c","@microsoft/mgt-msal2-provider":"2.5.1-preview.cf6141c","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.1-preview.cf6141c_1653065907310_0.8530832972910125","host":"s3://npm-registry-packages"}},"2.5.1-preview.dffa85d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.1-preview.dffa85d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.1-preview.dffa85d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e45ce0d30b7e1eb0b1f82031eba1aed9348b3cbc","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.1-preview.dffa85d.tgz","fileCount":18,"integrity":"sha512-X7HvRH663MjirReRiDDk28+Mz++E6T82Vw+ufT10yOA62Y3hjv1WgOX0cE7GkVcF90k9iFshKt0jkt8jNSzmgQ==","signatures":[{"sig":"MEYCIQC8fHtEe8RU+XSE7hQplpLxPNHzp8pMYc603wKruumXwQIhALCqn/+Hiui1jzy1UswSB/veIzvwpvajcIYWeOj++hy0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii3AoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKcw/8CwOqGbTHhNaERJkicWRygbShRsswdhFQZdLKl7OYOub49z7T\r\np2pii357KtPgINIkH/s0DDqUuBmsbgtpVn8xhgnX0gZisQKrEQe3qUFIj0+y\r\nB8tIxajAf2UpUHPcVm2psPu6KYU1YWZGR0MJiL83QRLlX/uzR49BJY0iQAZi\r\nAp2MBwHwaGDSc8D7ZRmIshbXAQtKUia5VLGJDOhUDKweCmISCwtqEme6KWc1\r\nnegh24ZKnoZy+8i65mxtQq6KzJkSoyvF/fEpDVI2ZJILLh+x9TtlIt6XFxAe\r\niaShZtWOMs+rZK5cO17sNmSjZP4F8osIBO94u5yLPbzCVvVfLaUOTVIjBjcZ\r\njV6qTQdPjktLp55QVnKZ8W1dWEP4hhr0beVibQU1Z8lOAYMiLPBv9c62uMHa\r\nviRV3IpRfTEArLZVTCKNII+G6U4CeSy/0U+0mE16vwxbJXYoXy0/vF2pXsAY\r\nb9UkvtFdKmobtcZZsp9/W+zZAWRN/15QN1kRolDAZ9PlV7QtPdVhzajeZxEf\r\nZVZz3eUwUYwNzpjFg3Shn7YaP55htAlQY+ivHGF0FNhLVYP7yBBmSdbKnKGG\r\nlXI0gfet2Zl02qqqx/eVF73miJEgj13+dyag59liY3iDlzlUbPUGXwIiX0QP\r\nJryKeE0zV+a/1z53BYZpoXAhr/pJnGwdnew=\r\n=YDTl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.1-preview.dffa85d","@microsoft/mgt-msal2-provider":"2.5.1-preview.dffa85d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.1-preview.dffa85d_1653305384409_0.5764016949729618","host":"s3://npm-registry-packages"}},"2.4.1-next.teamsfx.8d56785":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.4.1-next.teamsfx.8d56785","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.4.1-next.teamsfx.8d56785","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b80c4d5901ed2bef16dc3105125b10cb2f47c292","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.4.1-next.teamsfx.8d56785.tgz","fileCount":18,"integrity":"sha512-lMUmPUwE5zQetYxE0RaFP1Gl5ngi4fJUes7L+7dd/0WXlYP1rERfEC8xKFfr2JnQlqLvsJtj7D8O17hgJL8wDw==","signatures":[{"sig":"MEUCIGLafhJ4TF1i6DrLJuTFE2ETEO0bbDk7XJMlv/so5oWUAiEAkZ/GPh8RbKQJW+pB3t5x/qpfPHzO+5VPwxkMAxmqhQc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii4mwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo46Q//bVCC/wRr8mqSeJY9C7EkmMgYpV++RByz4MoFUKfQ4/pol9rT\r\nZBEJN5HWJ9J+z1auFXlG7dkIHcZ0GJIkn+o0gps9EGxw0YzbRNUUa4wRLF7U\r\nrmxbkZd3WdznUCkSRI8BMrI78GBYtdAGGMNwqIU1YSMGi6ETZNiSmWZpacKv\r\nR36XrmBl/jhtLJUeXqATZrfZlkBvxGeFLC+WJXvjvtE0oLLB6YAAwItZ9XEp\r\nCIBFS5QDEP04SRw8sj8AGCTMSfqXE5zA1b6hjYeU1eJ+N98FrE5bSAP3/Zdo\r\ndCfum7/Kf6daKiiOj/LGEd0NE1kMfPO0gU395lzABbufDCP3W8joSvvI70ak\r\nQBXq+HsuKJoTzpSTGsBMFwbGjNreIU/13p6yAqFtXXUCYJqmryEaq8zot17I\r\nHbvVbsPG8W4wkKwJdiFTC6kGmIcapIVPtrHZ6AMs4jdF+m0HRFusrS6K021V\r\nSb+vGIT5vJohQz2QZ0UPqN5oJGEsIc7iM/HzkNIYVEb120RXTMB48/v6lHIU\r\nm/CBgKBnUwXf2uoKtBUXDgBxL07dfIEEuGvvpWf973CyHhkOZI4MLCXuwLwu\r\n8bssy3WMurau1sQu1jlwMjU3Tjfi5JXaKkKghpJqLiEZxrKi5qbhOHCbM7uM\r\nXjaPbmN0/8S7UyKCXlKoz4gJujRnG3SG5EE=\r\n=BFgy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.4.1-next.teamsfx.8d56785","@microsoft/mgt-msal2-provider":"2.4.1-next.teamsfx.8d56785","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.4.1-next.teamsfx.8d56785_1653311920687_0.9942095575042107","host":"s3://npm-registry-packages"}},"2.5.1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f6a2516daf7918716d448f8944ceb1de017be089","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.1.tgz","fileCount":18,"integrity":"sha512-eIPBcsurHhYt3nboeL0r/ABT/oY4xu8oydIJFHs7cOxVIYpW6M7sYF+p3H5l1fDw09O6v9yHcKGShFxbJbhfzQ==","signatures":[{"sig":"MEUCID60o9YN6Tu/9lySmBt1mxVtMz11LclzKoREbR5EdJCaAiEAu9VJIdN8V9alCdUPFELECeJQL3DXS3+7OrjMoHTBkL8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii5MBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrY8RAAnnn4x7IkGCtlIV6OcLNANAYNLhy1mDKdDYWIKGLEXpwcGX/u\r\nhBIFjS3Zbmsm5nuDhweEAa58hSMjy721f3RAP94islUK8d2mTMYwU0W5O5LU\r\n1J0Qiy6pD+iZIUg7Xol1J//Wtgz/6okTeNmp3b5GEFl7hHIABvS6U2Mfljrw\r\nyeYLMNA4GyJQ6TQ0MuIRFe/TDFexUgAUowx2hyF0rr+2jrtEkmYKXPh8A0hd\r\nzEdY1dgSKsI394ODorv9syOZDIOhNGrP0HS19xlaFhxuwxLV1QRSSihXBAsN\r\nSbysUR1B5aTq02XFllQeeGr0ssd/X0qi2qxIh9RNiUnAJswRWIGUzeUyEO3i\r\nv6ACf+vXHgaFV3oYk8AYqU+6qm+SB9reJsCAT+XVB29MAInHWsNGqmhsBF3F\r\nFX2sd5LwV4tD9s8PG/+cAkCDlpShAJdMuLoy8OOmcuKeo1Y69tlqHwE1jA+M\r\n0gyuYbAKi0w5RgrVn84uSPCSX7sSKap2N86wvsPa6fhn1fUdJWfTbIAvl814\r\nwbJbKvQi2V0KxJ0qm5LgeX5HLM62dPfQLl1dk7uGLM/Ly7ZuZBfCIzsidV9k\r\nAMzGmi1BcNm7fI5ZWJ5XqTWAGnXsyKB5QruyI1gGR2O60i7QOD3OHNZ26+Cy\r\n6lgmwoQd6AviMIhHe7Ym0YdpWegiDCCjB44=\r\n=t6hA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.1","@microsoft/mgt-msal2-provider":"2.5.1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.1_1653314305146_0.19450241373996002","host":"s3://npm-registry-packages"}},"2.5.2-preview.d8554fb":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.2-preview.d8554fb","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.2-preview.d8554fb","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"edd5768c09e0825e132b2c17699c601c5bfe7518","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.2-preview.d8554fb.tgz","fileCount":18,"integrity":"sha512-I9kFa+IJpuBbVxLT0bZDZ5nkB3oSf2VdWC1TICO0eRkm1cfeh5fq1XLjePQf1dIsfORk5rDfkImbBXNBhoLPkw==","signatures":[{"sig":"MEUCIQDts0RjIcJD6x+96XCG4L53D/ZNmTbn3uzvrv4+2JQJRQIgSk/WLRwufNefaZdvwr39JXuWrWVZswDmzhdBkU2TJqI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijKiaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqfwg//bd4EN0HIMVK9txbamN/MtOE0+RFTf4fqllqaFBfPs0cW90pA\r\nPigpB86Rs7RqnpkOYMfbO+2MyBjVDemZQ1rtO3iViaEAxe2bV2+B9QZekiZ0\r\nhUktpIaFSdxs+jIghsneo1Pi/jVJ5WITHhTq7wMXICWEwfV9lT8JE/Pxdpex\r\n3JCSBJJqXLtHsG2EjdRm2XFZJQJh79MHujq9MK0IaMc1clzkANXEt1Cp5gl8\r\nWHVDYHkCj/T2X7QtLoamtU5VWWVz9WjLUkPDYumtcvXv0OGstO+bhVGZnK9i\r\njjk8Fb27B7BYQGC7Xz3CNBdYfBCaCJnTk9OmY/aMil1hO99foQRjPA5Jaam/\r\nfM+Nc6l/OR4nLB790UcbbJhPqO5n/aM5/+iJf2zIV/nc/A7QujJt0FTud1O3\r\nE1ZHqkFL9vLUzsv+vivoFc7+VH7ufiXXuPc9vxyAmri5+wW6VuWgXE2TzlJn\r\nk/NRSm2ABAdo59QNl7VufEeJmRxCTxBJ3VehrSr0dxZoWFVqCko/Fs5SmJ1p\r\ngAvfFRcHwigksjHL78XTaqzpXj48UPkSUgkyXWcb7eBCX3IkftpbyMG6+m/M\r\nqk6kJJUvU2dWWuqUy0xT+lBOklZ91XubjErlTtvWpQ3NRmGdRNRqOjlSiug7\r\nkCC86bNX5Nhjc1YbQrGOBkD+z5VttRq+tVA=\r\n=qNX5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.2-preview.d8554fb","@microsoft/mgt-msal2-provider":"2.5.2-preview.d8554fb","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.2-preview.d8554fb_1653385369911_0.9252165532968817","host":"s3://npm-registry-packages"}},"2.5.2-preview.3b75893":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.2-preview.3b75893","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.2-preview.3b75893","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8299e359b79e5e7641ecdd21d5f4c8610f6c73cd","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.2-preview.3b75893.tgz","fileCount":18,"integrity":"sha512-/LPe7d0byqg5JAfWL9cLP4negLizKeCyVG7aEcYNALmjf5IqlOyKA/pVDYXoX8bjdKmaqb7nBJfnYasqHWrv4g==","signatures":[{"sig":"MEQCIEe8rIktDYIPy3WnUXlzriPQyOkgZOYk9VSi5jrpNoJ5AiBJaWuk0As18gmD71LP7TIcGR1qpWobvJKXmJcS/HPQJg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijL9fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1Gw//UbcvRjh74obbNiWXhb8A5WHEMm7k4vQuwXxfkjP7jLEm7vDD\r\nKVtyP1tIRsFtCfddxwJNhre28hAmuu/eJOBpIYBmW8q7H4o245pGKoDCRTip\r\nUVfr5RCrureJUPmNeQCbYVjVr6yEmhfVgLc1ItjaVCb8tZfr7LzreIilN+tG\r\nRl3lCEyDMnTzuy+NeneLdi/GTgMwTojA5CCt7MsmfUrUcLHSb3bbRbzPa97K\r\ng4AaTLjvt9D961uM0y3MAbATMyGk6ILaoQAH4zp6RNF1bl3PdXdLPKCj1YMZ\r\nSf1QpPZu53AYwaTnqwpaWus0DZz1TfjQkCDgrz5M0V92VFYPUvML7rALV+qV\r\nTqRXMZ+Kghb7TYvwQ9PGwftzftbEy8GTpS7P26PpX3GE+G17VxBkp25Fqu9G\r\nKiayXY+xHYFiDzYKU+689yQDEjL0SM5pD3uZY2fKLYSG1JgqK3ZniQJ1y39S\r\nOp6nU4Vgwf9Snep/iuymIaAOWPVTM1B4ZVq74OhbaD3ThDKTvO5eOd23DJ5Q\r\n6tjuZRHZq5QB/lflt6WwoORxQr3GwBEpQ7TuSqDD9O4SX81Dd/BSvQMLRi1i\r\nJlcyWIekGLxKuuqhgu/3bM+8VSz1Vlmxfc++DXPlu/X77TVs8zrM1Whn6sqY\r\nc11SEqLUzSELsyLqIClghi4xM0L7/uU1pbQ=\r\n=uIhc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.2-preview.3b75893","@microsoft/mgt-msal2-provider":"2.5.2-preview.3b75893","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.2-preview.3b75893_1653391199485_0.060590937120208466","host":"s3://npm-registry-packages"}},"2.5.2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"63de5dd7746bec5f45d01751407f5d6969de80cc","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.2.tgz","fileCount":18,"integrity":"sha512-j2B68NbF6tcAXB+riwmCrNPeXip6l7m9gAIM3LU2sYyIlYU+tTuAA2BIiUv/zSHsK2cn0M+oySEa2KP/aZHhWQ==","signatures":[{"sig":"MEYCIQC7tgq+up2A0YCiL7JoIZerlLqvykQHVeH8tvRm7j3EXAIhANX5CkioojxKPChoGEmEV8Jvn1nsxpV59EAmkbVgadZI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijORtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqC7w/9FHknHMj5tl0sq2FPEMOl2LfkWwqYHRwO1QcuKoAAeAx4NDpt\r\nckaUEAG7hUCorXlV1BUbzxf/pvkMabMHxsg5WTuTOt7Ne0H3Gb8itCMGHUPf\r\nb4IHNOuqyZ5mthAYLu3vJ9yWz6grIaQuHnggmxq9waArYGQvSqCZ6fRMoltQ\r\nbQ0unxZkcvEmSdXWEN3kUEOWLU/4XdLgKywbk6IKgX8kh6jgL4G08ttUT4UO\r\nj13Ux4llH0+kWka1mlFsY9G2Fljb6UQQOtdxxvdaYl/iqyylUK+58FzUXIuN\r\nEoX2HgqnrRc78wJOBfP+E2bVSMi5JswBv1+AQMBXqZiMliqmm4IOVyvgTFOX\r\ntt3TdRn7zZ/p7VMPzG7oJW3/da9WmzCaADKJbfD1RzkhIOLlTScBAfwyYNoy\r\nxTTVrv3BPOyw7SjxkrRgdBF9jPsBeDUYUnZkGdCZiDs7H1L51JEpu3/oCRfG\r\no8TJWwig269hrRrKaoerjgHe+85FghyBF8unpve7rSfh0ugPn266fLqbSYp/\r\nylko7AbW1wmcgA6+w3iC5sy76q3AI1hbiexsSLsJafgPMc5XcPT/UfmyzGTG\r\n1pZ5Cz5tXaTD9s0Z2b9JOdJAnQKc95o5XksQY2VVSmFKxh7wt9RQ/vbHj9o2\r\nB8q63Tle3jFCrqEffFAd3qiIOHekB2k7Lvw=\r\n=sn8K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.2","@microsoft/mgt-msal2-provider":"2.5.2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.2_1653400685350_0.26824510965806536","host":"s3://npm-registry-packages"}},"2.5.3-preview.7e34648":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.7e34648","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.7e34648","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f273061d3c6b24f9b2db5e11c86e427376f9834d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.7e34648.tgz","fileCount":18,"integrity":"sha512-aiLvRp0SKldYe9hqvQfrZUkGKlAbKAY0lpjTF6J8QOZ9hzYwKpzj0KHNFpnzMrAzXcuWBOOEphxY3nWCQXrWmg==","signatures":[{"sig":"MEUCIDkBgQUjGrOFgV2+dKPfVU26Fw7kJ3ik8yogQRpQIEjTAiEA5XJrr844L4vJVwMTRY6kF/rjAXnKnPxGGTCU5eY/1vg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijymbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoiVg/+P+7pfOuNC6J2wVUZTvJ6cShj+r0hSRadtbjj3s+xPx/dpqL2\r\npnknjtyunyk/gQ3HFuY3huecyusFFNiT3D0r+MeDy/6O6Ul1dqudzl05ywaE\r\nW72wRRZLiNRljC99aWPlp4tU0FS49PpjcOjVIjeAFGtkatk/FWF6g37ebu80\r\ni9dqI/kjvQMHy+ozzWbCI7qZJopC22BgQw6c3JiolmFX0JNjxGy4WAK31VKz\r\nLWUf4CUtnCWdUwSztDLm6nqx6kpTqjRQPaDgYcxIs7W0w2rnV7w/e4R5yBCh\r\n3H5s+WRxLwLTNLDG72wly0P7gNDpMyLlO8t20IVzop8N6EBioAZXL3keY4NI\r\nERx3vPcr3COL+WR9h/uFeRgVVPli+F0WLWuW3GjE9OBq/LB83qObNC3IbbWT\r\nfWbJdovYrCHf+DNJXZvpfR3pF9sU8yxWyQvz0oBf9TrTUaAsndWXQGQhqaJq\r\nP4kq8D85tImktZ7Uwj+a9QYo7ggKSCaU3Wf8LZ1wuv4nRcQJpfkYWsqGAf6/\r\n0+0D0M0OY6j2Zf+UGHcxc7Q+SXvWJg74HRGC9KwWXMFJckN1e8uyA3XiY0jE\r\nbT7kdOvUxLynOujkykAlxcjk3Dni+00ZZw4CIS4XyjwuPpSC8d5GMc2sgjIR\r\ntw0eKtIEX6071juKEdA07KhzGhpRpLQvsHQ=\r\n=JJfB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.7e34648","@microsoft/mgt-msal2-provider":"2.5.3-preview.7e34648","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.7e34648_1653549467182_0.4960308481502931","host":"s3://npm-registry-packages"}},"2.5.3-preview.774b7f2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.774b7f2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.774b7f2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e155313f5901eb3d78bec49fa81cd99daf3ca10b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.774b7f2.tgz","fileCount":18,"integrity":"sha512-0+fkJfGhUYatHgO9+q1oUVYqzynO8UWsldCgY7qeD3p/r9vhWbwVyXvsrLouBgot64tzbxunpmvJmZzAXWWuZw==","signatures":[{"sig":"MEYCIQDxJ3DnlPy6IhMVujtwTOMNlbJ6I7vJT/2jvNBma3J65gIhAIOg+aqEELpNLsjAxb+ZZxEJdNjvJ9ZLhqZ+PuBUDOtg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiogh7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpi7Q/8DwVNjS0twfCwK4WC0ErjX0f6ZfW3zSRX9S+Le8wqh3ex23H5\r\nR/yres+ztt/tZCUvH3M1qNMztktQN3aJ76n3mcm4BPgX3qOtzF6nnJYqgLNQ\r\nTcves0u6KKkY9tzk1sDxp9O/hHQjcJHeSH6fgAlRQquuvhxbhcN2ONtAAk8u\r\nrcV29NGxmqr1oV3Oxh8W7MnOK3MY6m7icxd+QG2vORk3QgXol9FD9S4ZuTW2\r\nUDJGofVpAyzW2VY3dpWVxoQM+Mx5qd3OTdNqzFlTxQoycWXkkQWbgl8COIoE\r\nz2DGK1kzcWF1JhZMHk1WLPJVV+h6CdvKubk6Mr1T7wXBA4FC687DsYHTPQqw\r\n/9+hwrZ2LdwCRoXMyq5V21uQdgzUYiZ+R+uLTG0h7bXRqIWgCeylsDiu7DHI\r\nfzzgfxPGP6aKaTNvQHxzW1jBKedpUtpyHB4ZZJ6CyJXrsbl6vl0E+nerKi9Y\r\nGp8c6RsAJzb3w6WLDPWLqn8Q9Bp9YVuCtd47DB/dELS9h9yP+3vd9O3r816J\r\nJeT6Xh0vFn+g4EWJZv4P64o9AqoEReUZBSSSEpf7fKtnYL+yUlf5R3YxHO7K\r\n0ZoO3pYx/akcKMyV4AS7F/qLDPc/Ai75lstV3e3cRayKUk+sJfOOuS+60P7o\r\nBM3hsD0nbhASev/gfWl7il1GgBP4rtrwEsA=\r\n=w8kA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.774b7f2","@microsoft/mgt-msal2-provider":"2.5.3-preview.774b7f2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.774b7f2_1654786171008_0.8455904990831489","host":"s3://npm-registry-packages"}},"2.5.3-preview.600eaa6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.600eaa6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.600eaa6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"c31745abf3b2f5f836f1bf824fb601ffec1fe765","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.600eaa6.tgz","fileCount":18,"integrity":"sha512-bLHtoomYQ/hHcU84Di/KTFAUNyARBQN+69CX3Ob2syqaV2Xc7dpkBFZdzJMAY35H9fbhET28RAlcIKCIpihgYA==","signatures":[{"sig":"MEUCIBfp+w9+HkOJonjWvAEl5iVW4b0nGfp3st+CBDVHMcc5AiEA6iib9N0tO0sg4JIwmmPVyHWuxXRaP6CbA4qdTDPS5Mg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1076510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJip21TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp04w/6AksnKpZvXrnlR+smolVLEWJVmXtLLu0RUIbwgAEV//0WEKyr\r\nkRih6SJlNwkC8RMkVqTbGqUDAGDoJdC69cOSwOxm0xB3wOKsqeVDEr04m1+T\r\n7hUL15tH4KwcR2yI5jtt84fYTZLcR+CEb/2++Cd51ogORT1Ryeu2AWTlu53E\r\nKB6gUB8BOcmY3Kr0YX0wfIxgps0P8K/SaCRLbw3HngzzCMfhDedQl4Fh0nqo\r\nbMq8T/5YZ+/oPp2CBx7dbIGNdpGqy46F8bS8x3QLw97kywzFMQfc1ciACaNF\r\nETmHhcRdmLxlZt7cuG9m1gtqeY9f8Ii9etinv5Wh2ynZnZVpcxW4gNtHkfXu\r\nJWtKbYOj+Mk0peCy91BU0CoIk5d5YiZw/QBi7zlYlqtOhZJnuVfqkWxXMguZ\r\nxOAsP8HykHrvg/vuAHi5F9JzudGBBIM8vJxtJ16O3hkRKhfplULdm0Bn6ZaW\r\nMIpar7Vh9ma4UgorkmFDwAnQLgVYN6NbOdOQ9KDlzR+k10sIATLxBoFDlro2\r\nG1/UN9hinmv5NTVOAqKl4wM6QtGSpH0FDl5tVTHVDd85RLBNcAMChkiTIiK3\r\n+OipIks1Caj9nFGc4Jygt0ZVoIagzG/SFBNaNNcJhuyjPejJYIiyhNrxl2IA\r\nWZSRXBpUo6+Eb4dlEoBE1Tp4c4ZoWOATJ7k=\r\n=Fzeg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.600eaa6","@microsoft/mgt-msal2-provider":"2.5.3-preview.600eaa6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.600eaa6_1655139666879_0.734002206253179","host":"s3://npm-registry-packages"}},"2.5.3-preview.b339cab":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.b339cab","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.b339cab","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1931003aa371b46956bbc60f61ff4dbb93c3a14d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.b339cab.tgz","fileCount":18,"integrity":"sha512-bJcN814hp0VHYTulBX9aUu0+zfP0zoOVlVJNTozsLiGSqyFRY64rsiG5vHYCMe3XyMOqgbEKikckHmjS773H2A==","signatures":[{"sig":"MEUCIQCXg+K0foMWJpJ1yVR/XPEAoDOUWMEn/Ezz3+ACWS3+bQIgSEqLl2lHXVhMu2U78BdbLh4mpjcv4WCsfoHdFGF4Ank=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1078465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisH0lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogGRAAhjgy7NECVryksoAbmrYAstqeC7IkO7qqy8no6/gg9rq4u7D8\r\nPnNhZQN4XUYW5PjXtw4wwdCniAwzue8q/mnSdlFmYxb0zqs7awojTndiCMJG\r\n7Dka5B9/ZnBq7MMcqPtRcDPJgDdjx5cdVrNKljWbTcEtlAww94XYe3m1zxXA\r\n7ptgYdpqrdbWnm3699nAgiU4fKNuAZR7Wa/aDs6kG45epXuZB5qcByXD3xbr\r\nGlpZXWynQnWKbC8Wyru0EAb8pheSw6KIVYCO+BLTZDbDLZHs7jDtbp+OT8BO\r\nhTqJcuI85YQujW1jJNL0i1yIDmVWVtI2wU1O8s93/qaYjH2CnMtaWRIrOMAN\r\nVsCCvB6a8HCR1R4t8NpHDX7H6Rn3FfWvLdHqEQJcs8D15K6uHrsdf0RVoVJz\r\n8U0CTqbtOWCEUioWPUkEqXmSwTnAND2OhHmeY+OqMBnlK5hNdozsu8GSSVtW\r\nDREqq8VGwp5w1Rx+yaR8xg6tnO317SaC74VvffokUVfDMciQtd75eYPvW/ym\r\nU8MDWHRUKYQ8VWgz4fgU5kLOf1c5gbh5A7BmIOMUfZcRp0KjoCholdO3insN\r\nE6+9p7iMffzXzawLOmQwMSERPVdM3UaYduEwktuVYpc5Ro0vm2FoBJ3ggQQu\r\nF6Ozsm+pS/5+Fa4y+gEzxvuO31jZw4w/eiQ=\r\n=piju\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.b339cab","@microsoft/mgt-msal2-provider":"2.5.3-preview.b339cab","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.b339cab_1655733541613_0.2504711489875786","host":"s3://npm-registry-packages"}},"2.5.3-preview.cd03a35":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.cd03a35","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.cd03a35","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"86aa96df2facea95dab9c20d66669e8a519e73b8","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.cd03a35.tgz","fileCount":18,"integrity":"sha512-raTHSQJ6TPin0mBK6Dm4ybnHXoaowFYCtm31oaV2NwX2KNoKcK6kLQLqI8eMzr7ihi8CU4JN5GaLXWFddPBu3g==","signatures":[{"sig":"MEUCIQDbRrfiGmhsDjTy9N7cVsHRvIQnIsqgZWdM1Q0qqLJubQIgHKgn+Qs7Cni9CM4S0wwwWP6Gww85nrrYS5aG04AkBwE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1078465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitKbiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreMA/7BrrVxYQk1kSH/AYqf+QEun1C9oHPhhhESfmFNdkC1QJZnWi3\r\nxiAZmByl4lrgYuJkwcvv3HHWeNZfit0BdGCXubS2FZC0oNv/jNRWuBdWydHP\r\nbKyI1N4+eEq/QvUdnU0zP6Y514ayUUGyZDs0t4hlFjYyrIJrSIvmpWg/pRvO\r\nJ3OYcOevGthz9cDbFniI8+8fmwPeHNN7Fd8GsHS1A/U6TxS8E2I1qRhXaZt3\r\nSNKz+onMAZ4ldYUgOXoY9qdNLS5l/vZ2p2sJdmR1srm57XTDs/YTQnMJiHWH\r\nNgGDl5vXKENxQYdWqt+kL6FdcjGhL8YuOjm1HXoY1842clFhlis96MDWEOgo\r\n2d4OBRyNcxm3YMsjfmHYFoaNvCD6tpFu245VQ1DBzDr/OLZPqri1AgfUxmiP\r\nz5ZUCFBeisqJa6syoMeUn82KsfKiDauFdt50uaRCgOiWHrDSFsQ+bjjgCLIL\r\nA3FBBw5zmpI+b/Hz4CfKZZf9Cra4yPLAVWCZ92IdVrP6pat4sTsVAjIP1ZSR\r\nobjGavHo5d2FBVpHhDwYZTur6B42N6UNVn5jN2MIsiX5O9yZKyIzqpqhRdpa\r\nBS6UxINdOmMcCoZjZ8AGQhEZYVjtIkbMGVB3j+p7BXIn6rqS7hnMUeUWyCFQ\r\n9Q9aivadxC4R68PqtnWXCRvn95ohIEJaj+A=\r\n=5CQ8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.cd03a35","@microsoft/mgt-msal2-provider":"2.5.3-preview.cd03a35","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.cd03a35_1656006370705_0.609009116520137","host":"s3://npm-registry-packages"}},"2.5.3-next.fluentui.fe24fe9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-next.fluentui.fe24fe9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-next.fluentui.fe24fe9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"5c775ac19dfee5e166b6cde26928b142d0379a03","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-next.fluentui.fe24fe9.tgz","fileCount":18,"integrity":"sha512-kKaLLLh/mhhflZSRdLwKKUJWLKmfnFEsM+QHrSgiXEg2pkIGEQ/fq7kuBIfGMiFj4HoMphnJJ1WkeWG8tRzXcA==","signatures":[{"sig":"MEQCIFcT2tS4EzMsj5s1ULX1cR2Q1jXJC6n2LIU+nw40l2dVAiBBH2w9ttWST/O7ZgD3kztsQ6uXLPa7PaIgH3UK1xrlAg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1078635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuwvGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0tA/+JijIyIl2emVAevb7BbR6+Ov9UlAiHotLMJN8vc/vhIKevrwv\r\nIDPcTJ3gG3rt1Sv/ab1XUoB7NZgsQGw4VZOE6LXNCDobuw4F7uYKYb2mpyYG\r\n1z82m8hlgWqyAb4IRitt8R/b089/WAdIWxXNN6FgcDE9+fDBjVs3nM88xGGG\r\ntFh+DC1X9aAlV4Xd/SGeIb7QJdlZ9B2g/24QOIkixDIGo1ZsRNgFBk3AhtjK\r\nIrJmE9lCVkUfVhzpJG/OLQcCWgIZVmyB79J0blYoYrHeFJMz/MmNyyB2hlnN\r\nNVAf/MrQTrgmDjFQVmdsKdFIh0KjkAHtTnFSsRI0l1MIXQG24BaI6BoQylyu\r\nCkYCgYFxRv8MA1GYvCRGKxv6jylmei7RrW/9oVQYB38Ivp20xlyRqeU0riaU\r\npoV1ndKGW6hFgWZXtrHIdkKBCDkNnJ65/chsGUSfnjghCa7wc1ocLat/5rBY\r\nWG/MNRdI2GLq2TPzK1HOZV9S4guabIgamDbkSkXxwKsToPvHaqi2LGc873ft\r\nQqi6ktWZu8QxFF1v9qhv3IzTWfcUgayP2gk1rDNSOlvtFYwufs9CukpoZYCf\r\nuZJOKBQ+gTBKTmlvMh6XaL1wlvCFrdcGkQkmL+WgWqCHb+belqLkbmWd5nZ2\r\nqlkEtbOoaoDXy2fGOBOcAi4Z2wClwJacFZ4=\r\n=k8JG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-next.fluentui.fe24fe9","@microsoft/mgt-msal2-provider":"2.5.3-next.fluentui.fe24fe9","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-next.fluentui.fe24fe9_1656425414450_0.6205204094806571","host":"s3://npm-registry-packages"}},"2.5.3-preview.c1307fe":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.c1307fe","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.c1307fe","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"50a4379b98dc08ecdbf09cc99f132dc693c259cc","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.c1307fe.tgz","fileCount":18,"integrity":"sha512-5UKh9Ktgycn7buV5zDQl4JFNVHtV5tlJVcvFy2NRlOFOKhEWek02Dx7Romchf5lByMq/xZOLZME+7ydi34ys9g==","signatures":[{"sig":"MEYCIQCbkQ0+CN/TcfzYjr2SMl81sVU3yOKH+P3dzgwpThPfxQIhAJz5yOblogB6QnapoAlfGhG2TUo8Uima7/ccSDeZYW27","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1078465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivepgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoe6Q//cd8NSUiRVPkrRsgQI6B3ZYpExcTlFslt4bwI+3ONzoi9toMx\r\n7q+SrczQw3V1etY3FBoDqGtE/gZQLMmPLkuH02J+FvsS2VBku70cuXT1oYP6\r\nuKzR3H5v8/FnWxRdqbaAn+g1CJGgMgZp17BkqKvFk1ba66V+cvlRgq3aGRPl\r\nliEpihp/1clOC4npoMgbV39LdyHo1Gn4Upv+16W2eyREts6dWDIvbGuDLamA\r\nR+hl9EUPju7Gcl07siquNXJANklP0K9kWnB8JL7mPiHYDfSXYkXOF14W1DfF\r\nBchD9hInihYs9e7STpH+N7ZdvigjY29FUKRfRzttcoPEE+d5rUiBrrj2qJvQ\r\nOvnp5QzEOjCqRD4fw0n0OMh58nsyJ3GJjWHHGiaxhLNHhVITFPrXzGuTfRyE\r\nI7bIq95uVfZl2pvWf1YrjK9CxnbL/kkB1cqCV6Xc3na13AkTH/BrQ+pFtdg8\r\nkkYbANNDytivnhiz/ju/rF20nJn1RQAY6KLHnSMft6PIc0AnJdtRTG/VdC8J\r\nVBzcqea3F+59iMP9olZBDdzIJ57QCFP6zPWEyk2WdxdwD2JUAzaQV8eUBZ5x\r\nOBtm8Y4eu+wRFfTk6L4WyMDeeXy8o5mKHn+jTM+mayPCcHqEPMVtoLOLg9GB\r\ndAtpAunnbR0hAu6jwY/vWnETWgQaFphoGzQ=\r\n=AK/t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.c1307fe","@microsoft/mgt-msal2-provider":"2.5.3-preview.c1307fe","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.c1307fe_1656613471696_0.12539293217620573","host":"s3://npm-registry-packages"}},"2.5.3-preview.6b8ff09":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.6b8ff09","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.6b8ff09","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f69e7f3d7e245b6584f93e67eb9ce8a1e65fca3a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.6b8ff09.tgz","fileCount":18,"integrity":"sha512-0BXM30rvKIYiYZX0lexfqagZPnMSq0eZIY5Q2zbe46iaOErqbx57W33GdlKrwyQcF1ZKq351eShC4Z0FL4ibng==","signatures":[{"sig":"MEQCIEFryerjaSDxG5ok1DLmBANtEUqYoioj2ryn7j6KzfeQAiAVkT5VAz3KRiIwaUh3xf7TuZ4ID1eGor0NWZf6wbnyRw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1078331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiww/TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIJQ/8CoUh2dU23oTbJikxJnBCrHphrdUGjNmMd1bhhCGwm8Ffyq+f\r\n4YLPzaDzLLmS38HnLecnU4RCl6+WLREkfznFuKhHIFFbbODi49Q8325XUSRz\r\nG/e7d7L788VicQW9odifICtvEE9QgR0/RJCWEZi7yAHR1R1Yjnq7qKjuqp1r\r\n6khAt9LyDyq0xA69RpTUuVz20ee2ZuOvaGYKHggiWZtT1SayocKYgjn4uzh9\r\ne3QsL2zijOvB2nVmmgGQ+h/9GgT7i/cQd/3tnaK2dOd/88BXyGIzDABNT+f1\r\nTL37bIBOhcvXWbURwh8DA9fl0tgzXDil0rT/dKEQfFnTUb18WzHqvhMrO9tj\r\nIYC+WRZt8bGVFQ8LMVdwN3IN+4LG7QzHuV+Q4YLfmnDguzTxSWJIINu0HLTk\r\nAJFMyeZpTjopYsN056FoxRLoY0NSBH+yUYzg4bMGX7AEv5nhdxFT5sau4l3Y\r\nYdcJZ26/5jCNyFr83nvATA3yeNvZHecoMFCrX5CGi6x6eGchgXHVODMgmDO5\r\nBSVzBXM9occJ5Oq8pEOgIebOZgT5S2SFgd7N3bVVvDeUT7Hx72DPKmOUa/nG\r\nv9ZPRTL2aClujNEx8f+/zMSq/b3dWbucnV1LN0yakIZPC8rWCDR0n8ccg0Kq\r\nED5r3ry4zXVHeSiMRs4K4c4vkPVjFfQ0AuA=\r\n=HAkl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.6b8ff09","@microsoft/mgt-msal2-provider":"2.5.3-preview.6b8ff09","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.6b8ff09_1656950739500_0.9487907157332895","host":"s3://npm-registry-packages"}},"2.5.3-preview.d26f83f":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.d26f83f","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.d26f83f","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4990c12e69c563f7244b6e80191536cfea18f460","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.d26f83f.tgz","fileCount":18,"integrity":"sha512-4+SApJHUR8iIvzahrpeLd/Ll/+5RCRuQm6nGalY/qaSukqCxRkPCB26dgQujjVEH+gqCRwqeGew5xk23POHRGQ==","signatures":[{"sig":"MEYCIQD3ytQj71bl8ZxbMFj4l/kB34ibi1Hbued2Oh00i40AKQIhAMzhQysj4jdiNj9I5bqe52+RkrqFx4w9S3cc7oEH4i3E","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1078465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwxKFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoteg//WUzP3pmtPiAIdRFBAaBvenCQxvI39d8+Pflt55XR8TNWhYv6\r\npYN5UmQmsua/IjF1WwC9OTnO9HZPO3VIrc+Hj3yU4VdR2oWk/GBZ6Yd3B9Vy\r\nR/VUUwAvdZKDpK5Rs/eEJy9Snn+m4pRomBLgymNb9tIBnZj7vKqtG8/EYnMp\r\nkd1S4t9YTU6L8wpkc/vyyBBNuVzlId2a/vTk22GcwFC7e+2wfFfwdgzRdtuf\r\nUC2TuViMKtXFKZ4pobcquVd23XQh/jkY/o4173iuogGqqYbTW6nJ+AkRSTw6\r\nL+JuSriHvuPxocz2o86Jgo+mHTBrn4J1OZ25JX8gZK8zDexgosovT3JeOffA\r\nJdZRqsRBpbaJAuZlCr4Z79yYm0SDS1gTuCyBXhpp86YXBxyI1qNtkyqICXUE\r\naSUyQdVsG7PmDlzFxD65db7hXfra8q341vFXdRaTbebvjhBkbxZCPdrPQosG\r\nYCLFehZQHqPmD7dJJC2Rx/6ot4WSW0oOwZWfs+FBYdF6ZJHVbzqDsPgK9ZvO\r\neuY4jgUMBdFfuoO22IYS3k7/dMVTQfT1J07MSflUAxSXVrQ3vpdQT1H0sTWC\r\nNiTxv0aE4piNSGt9wtcF/7a6sypEAzi5NipFXeol2QbQv0zguTnWzXIZ+R0/\r\n6JsGkuhFu7QZwOqs/tWLSjUNLgv7PkAywL0=\r\n=EOMZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.d26f83f","@microsoft/mgt-msal2-provider":"2.5.3-preview.d26f83f","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.d26f83f_1656951429521_0.7529627448459202","host":"s3://npm-registry-packages"}},"2.5.3-preview.40fc41e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.40fc41e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.40fc41e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"042d747fb67df9fe4c27c79e712f265db6c76dbd","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.40fc41e.tgz","fileCount":18,"integrity":"sha512-dGcLLT1QsknOQgmamWIyiHsjsoFlakIvE4J2MYxb6M3hRSElht0kpjAYPHcKKMJNZ0WW8g60o/nTlKwd/OAwfw==","signatures":[{"sig":"MEYCIQCDfh81qLzwIJlHRATR0DfPdJ8eCsNqTeYdxZY+ylcgkgIhAJbOWoLBB6SML/ffx7EJrtsHyLuU9wRYfVdqYBNsFr6s","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1045727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizpyUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSPA/7BHahimORuPaR1exWfRhRYle0LpUj0t6VAOlxPSecfwQVF83D\r\nOJu37aum6jqatDhS5ojczjIRCDSmFW5/HzFJif39Shsy6ecqosWtlDUovyXz\r\nF0WBDTysI7cJ8wCB4+cBjqVlUM2enPHfL8YgVeOptzY21Ou+HG2ZcA02dMwB\r\nTvTIl1grjiSWlFNQiDVEi5to+cpZS1qGibzJv34+IQhx5bmDfnoq5YSHc8q+\r\n5fYFtyXwK2aABmAdaWyfS7x3b+1sh18A3R598uKFbc+2Hx0oHTMN1CvDWTPs\r\nftRH2z0gFV9uStkz/WXaI9GxjzKP4UK//h/A784qy1WzJt4U4Y0yGoD6fmtU\r\nsvqhSoj3xj3hiWYtB2nqFVemX8YQkaOUTcWCqBUctAmzPHLXDfrri4zuRrB/\r\nMrDO51ftBk8YB9eWL/Z9huVRRh+pR4HCMIlcpvngUskHlRpuh/BkYsxwQydB\r\ndsgdP0MFJ4yvXkYSOXjwhWdBaHcZh287EpNj7yKI+juErhqoPyTo+xihyUYh\r\nkPI0LK3A7IlPhnSTfCtCJmfKhyvkc35bJDqilssN0C5fGgcrX+8OKoml9hdO\r\nf0wVhNswVBQFuQEIu/8zp/OVe6OyqKAm8Au2zSW/g3od2BVsmpYGjGsfnXyp\r\nPkhYxo20VJl04oLMjn1gvMnL7xSDL/R/3zA=\r\n=KmzC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.40fc41e","@microsoft/mgt-msal2-provider":"2.5.3-preview.40fc41e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.40fc41e_1657707667837_0.003954159574724114","host":"s3://npm-registry-packages"}},"2.5.3-preview.9a2fe66":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.9a2fe66","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.9a2fe66","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"22640a39552982fa233d086979f2cc83e1abf205","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.9a2fe66.tgz","fileCount":18,"integrity":"sha512-isPCWfVFqn+g7Zn+z9W/uzy7i345XsXXBFkDs9xieC5Rpt7+iQKIoShDzd9OZr1mt5TvL0lMn8heKU8VFtQhNQ==","signatures":[{"sig":"MEQCIBb02rE+S5jOWe1RlD2sgxKRvzlNXy2DzfPpj56aOdtpAiBfHneC5u1gkxS6TU/Vd5Z6XiVgJGyzyIfhYc75eoQL3Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1045727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiz/LEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWRQ//Z514HiCXlllW5OTkjh2ZH8vhAFV7PrBkLgLEAQj/Mlr2kL4e\r\nOijBeDEKXqmEg6BKBhhxDoEo2lHvuMpqoP2qmE3ejnwxXTBBH7Rz3fTYVSl7\r\nANJg0MG6IjEJl9joomTQUVRc1QhryyP+yCs1+ecu+oUoWjFjwg05Mz0sDho1\r\nSFbncJaA66rju8ePODgekbdx8dJz5Low4YIp+a2XllsO5zYwrSRL4l7kjr/e\r\n66ZJHAn/kgTeyaybVVqyrqeGsx+74y4nd3+sLraGqbJkadb5NXGLZWmvaRTt\r\nD1KOKZtn55ZwtrXeay3uSYNE+H8rdlfwhc1WRBp0am3QxQ2pQCfxraG+qdSr\r\nSo/JZToXnzDJf9iqJqqD/gpCN9bxtAr6mAbB7YThJvZXoMIJ/VEHs1NOUiuu\r\nvTxkBcOT/woKw6WMUIlCdVwxEkn7DSBEGxaxNC93/7wFLu8X4nHztX+MXgzg\r\nyvs3DmZIaKATctXA9o8+wmFpXCHPeQeUc4U/fg3j4fxH0ymZVF98NLJHQWAd\r\nKiTI4OdeKgMbQ+4edjcRE42OwsEO8P6SLh4OhalHtnMxUjcQrCv2JGP5Zbch\r\nGdlEXMpbwl52bbHZfjbDEIOVU5LOrKOnpjlVIM74qR5LZhHmowLxYALJYGyN\r\nE7vyYygsKay8rSjQeqmOjxB4JZOtT+MN3YU=\r\n=K0ce\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.9a2fe66","@microsoft/mgt-msal2-provider":"2.5.3-preview.9a2fe66","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.9a2fe66_1657795267978_0.006158389132766118","host":"s3://npm-registry-packages"}},"2.5.3-preview.4877f5d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.4877f5d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.4877f5d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8d3a6de9626df14617c7324d5aa085c2e8d0e158","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.4877f5d.tgz","fileCount":18,"integrity":"sha512-cKFpQfbkQnbO4dPZWpynKOIXYcez8lE/iO75E0Utap4klq2brCA3rZTCeFKY8wfni64A14n7j+aVdM3nSkF8Yg==","signatures":[{"sig":"MEUCIQDisx/VBSmCKVWoKljWUOnyKJy40IrQEbpuockQXMn4EAIgRn7az2v5eA/7Qq4GzYnuD6542a94eeWSEy5Kn/4AIRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1uCPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFWBAAoATwIVWfOjBbUBk502ehHg19O2A4DpU76cZE8/RVbpfHBRra\r\nqbZuz0qsU3KjiNhwaeU4UIc7ru0H4zmvI9jeBtUFaze0L1N5PtUcmtYuaRfk\r\nV08eiQ8mw+actmOmLtXLbTurI1mTXIoaJrSpeHReHnJ3EWRAG3t/Ri+fMDMN\r\nHUmZt+i6WYdNsm/uvK1xT21pJ/YYHLXibyi/Mio1QiJ9DKGjcD2x3h0gxDD6\r\nFGoQD+PGxYPc4bIhUzJArAu+gmuCZ1Qs1beqVg8lotBb7IRbfYbbepe4LDpH\r\nVnMVlEedrYtflm2KKdvHlIr17owoAVdnLp4zS0AihqEG9sw0jy5m4RzUIV16\r\nqok+I7PKcQOZ4ynaIaEPSzvWtMfJhXRLBiT3KP6pBlWZE3WHGh/UejY5NCW+\r\nWjDxk+G+xH07aJjMtX0Am4mGOIfhtueeSxuZael2jtiQt2QT1TsAKG4+t9hB\r\nll87pcOBF6Aap4viPK1uK45FsgDSw1QGt4z/gkLS+vuBzgy7kVwmA+Yqn7Qi\r\nHaeEiDKelC9aiT0vLHX6zTjBBz9iGxBYZgdwH32fjbCm332ItLdccTA7hmeA\r\n7m1Oy1ngxHD6BFsACMzzL2Jua84jwxx2/tt5EQqgfAI8lWeuBUDfH56ILaEg\r\n1qdiFQ6M3v8yzw2M8QA0E2+8NKsB/B9T5AA=\r\n=j/v0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.4877f5d","@microsoft/mgt-msal2-provider":"2.5.3-preview.4877f5d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.4877f5d_1658249359545_0.5234561134222504","host":"s3://npm-registry-packages"}},"2.5.3-preview.884992a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.5.3-preview.884992a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.5.3-preview.884992a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"c9684de83ed12f075cb1c554ae4d2299c702b120","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.5.3-preview.884992a.tgz","fileCount":18,"integrity":"sha512-c1Og32DBGfjEo+0bxkRvGhUGQ5DyNs9/7vm6C+uASgXHcJ7qcKnE5Fa7w3q2nW1F9TU/xJYxDaXloy9ZJckVoQ==","signatures":[{"sig":"MEUCIGUGFPk1Wius8zLirBK+Fms/FI6UZx96DAosYtohMkdxAiEA4mojoMOFEj9WItmJKbjetnMxYk8H9fXzbRQgGdSeVIE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1//mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSQg//WZDLUBGjxE2MrV/NQ6U4dloBxs9OiVIoccBpj0CG6R4rUesm\r\nnEfvmeSyNSj0dhu+USQsk+OlVoICaPvStrhSV1h8K9TVNELZ5nB70SxPu9fk\r\nu/zFGPQI3gWt6JfuV0tcq7cx/186ynrzBSLUald+aJziYzPiXCOfDx1YyUpC\r\nNc/gfMB1f9IHs++20r3HzjUAtjCareedEeF5G0yKa1cm6bAhUCupAHI4ZRcZ\r\n5XR/KOpRUM6ghVG6JqY9sy+zC2mBAkJbw6j6oycz3VawcD7I2yBbI9XNDX7c\r\nMhyiB7AKhr+ptCqoWSCunkV3OQBU3JFvpCsOH1ybPbja/8VWNhObiZOqHRfV\r\nHEQHk/u5X2KfNU0GH14wcr+oDePBlBhMYRWh4ddq1t3CE9g3/JKEyCCye3FA\r\nGCQh4Fyedw9gn2iGiU+dms89Sbjm6U8AVqXh57YJanRXvRUYprjWUdngdxQQ\r\nXhpNtwLutLdo1iW4/XDsRznMWG5Aiv31AW4gLGc+YiLHaKl8SPWsqiQsiOmS\r\njC+ZXYZC9cgeqmqZOc82W+D1QzOD4yn8bTqmYwBUBakAArXpXuBJOSxfr1Cg\r\nylyDIZRiaM7LP1ZkZAVZDGRCJqfC+SL8pNrrcmVhg2BDp10n6AtZuPRwxY18\r\nyQ8vSx2WEEkXlVeq2bh1YxzGALGjPv3jMVA=\r\n=3bJ/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.5.3-preview.884992a","@microsoft/mgt-msal2-provider":"2.5.3-preview.884992a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.5.3-preview.884992a_1658322917799_0.39522942984843223","host":"s3://npm-registry-packages"}},"2.6.0-preview.e984aed":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.0-preview.e984aed","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.0-preview.e984aed","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"177f96975ebb685153ad5acae7693f7bb4154ac6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.0-preview.e984aed.tgz","fileCount":18,"integrity":"sha512-npAlYpjnjtVpJAXedbVWcEjcpFB680/I8yq66IbAISEXkRLbOR6SgbLlGctvp7y8Wj0uJzfgCzjzzSAVHM96zw==","signatures":[{"sig":"MEQCICcWVOvMOd4uyMULr/KEtGuwPUdlgzGD0+9VQtGz/+YtAiBpeX5FaU9q1Y/fvPClLlCie+GHo+945rWwuR1BVxi6+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2CnmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCrBAAleGp1yigVrTKY49jcFGeXCWZOqz4rsehT2nOt0GE0Jz+PB7d\r\nYdLRN000xHzpa9UMeKU03Vy5kpMxMquQtl1K2W604RNkoPqctnedNgm4f/Ak\r\nRlQVyl5M0ZRoiPuQdiWaFpoLhxug+FJLiOXXjiFo1HZkQEzTKZzYQMkWQaHE\r\nSShwITzHpGpqcTxw/wwPWD1tM+sKr/Vr5MN+S5YFB288Jn39PmmfqtP+6Qjb\r\n2tkiIcLOuXUlqI2FbD8uxWy1QtZ+WoekvG7UEa+0L/bOXj46wDJ8xNGtV0Ml\r\nMMuKkJXWD14xQFAegZt7Zld+ScVrZXrkRgmVbnO4GY7tGSOUZeOzKY7WlaIi\r\nPQF/gjZbju2ofZRdwLuMx3ELIdJl3LTvVXLr+fIl8Ks+yPteDxxj+KKXVBAX\r\ns2ITjmeGW1c/pA27l1nrWYQ1Yq8T6Qc0n2vYxuW3qYDLifqdlbmk+Tiy9y7o\r\nFo4nIR8HtmO1bBEML9D1lYGDZTbB5/8AAhId/7DAOJmZqoo8A4NCZVrhcIud\r\nv7Kkl5dU9xBuyE3jtG0x+4mpQHuFQYG3EBuVw67IodLizNNxCje49sdq8jgs\r\nTWrJhU5m/dGnC2X6i+ynlmnE4RVgJE4d+pob1uC0oItdAzrPk5hU5XafrDnY\r\ntyEshBQ7Mu9ArCBrzvgnm6f4uDZa1kLynvE=\r\n=RBUz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.0-preview.e984aed","@microsoft/mgt-msal2-provider":"2.6.0-preview.e984aed","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.0-preview.e984aed_1658333670712_0.6348305855925733","host":"s3://npm-registry-packages"}},"2.6.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"49e7a002f08d91d63b1a46c3eb2e3ffe3f479648","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.0.tgz","fileCount":18,"integrity":"sha512-IPDWiFxSGq/xWgZkX1yUY55+h177SYDT5L7JpC1riUiKjq3A3vFdjdd+LhWsSii0kL8F7XK4vupXtIrORhmULA==","signatures":[{"sig":"MEYCIQDRS/1JcNHxKnGvfg8U4PvJrQXdchSd6LAwYm7BbNfjHQIhAOkjPTgaHqO35GUXWe5Q+XGtu/nSQaF+7CF+yuLvBqzl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2Cp6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLtRAAnLFdSkLkUkMZk0+w6HGXJ2d7ADEZ086ve5/qz+8dWEkkcVwc\r\nw1/ULNGRySqV7ODD06cstGvqP21afjI1WYs5Z2vcZqPP0aIueHYvC7HD0rJr\r\nHY1LPa/11Rh2OwlTn8rkGtJAUtTlaPFbO3mElRVDSQX39BlJmWANmTIzUXEP\r\neU9jiEWqXpKCJWSTXviVsutC+gueEfwECQLPtsgqTaCzUAyIpez643vJt3+3\r\nmd53K+KhJ+cgAR0zwSO8pG8jjoEfDK2iIJRR3Jjp8yoRG7rKAkkRXp697Wb1\r\noJVO3VKOvXzIbfucJWXZ6ltxriNV4lTjCcajh1x0Z4hJhUA/uF53o4akwB8O\r\nfzmUBecOjlZDNwTuIwrsyS3qanbfQ36XClvlrrpMiEZgXZy41L2gt+XmzGO5\r\npxIlOW4bAu1mjdDFBtpHpWQ00MKQT/TUgIZX4ComM6g16gVDjjR+ejRvkKWa\r\n/KRopWwOBpvi9iQgxKvq1i9EtKoHQeRJ6D/zYCFOpZCwS0O7coWvtHYGixLC\r\nmx6K++x/T4+MtG2ydWTh/53ANXURW3m6kmSunU/fQKQpUH1Vt+2sJCvu3OXp\r\nw05G48jMyRV/6aFtQNDCuEApkGAcxexUVOsoSU2ZRUmjJVwlawAqfD0ZdbwZ\r\n0f5Y1tO3ia8PP/2IfRm1ewCtWWv7GYf1cSY=\r\n=JpW3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.0","@microsoft/mgt-msal2-provider":"2.6.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.0_1658333817987_0.3329843622707387","host":"s3://npm-registry-packages"}},"2.6.1-preview.c46e418":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.1-preview.c46e418","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.1-preview.c46e418","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"3738a39df5e819ba1d4cc88e60f3188d1f85f106","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.1-preview.c46e418.tgz","fileCount":18,"integrity":"sha512-93T1s9g6LkFLM6JLedrz0EpuZtNbpKGdF6m4D9JSYsSPzVfupBaAcF2jBKvy14dhZCfi+NgqXAlXiH2iXqrcgA==","signatures":[{"sig":"MEYCIQCZsuNhgM2/oKh0XEEgBkAoQrIfzCKw6GeZEZ7IJwm6qgIhAPilg4eQ/imyQH7uUH8K2Q26VDmnFh0DOJny8fJ9lm4y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2IfzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSfxAAnAiSZHCkKAqpYai59FsNXAEfR4Hi5+pUOXeXq05liSI5IVLX\r\nR15KXVXGGCDEOBRhTfeP5DfMS/0t2YVQBVqqnZAQrXj2eL/UmviYS41MlbRQ\r\nsIgGWfuEhKiMNmzqY/3U4FWmnqIhVgFC/BFpgJCKNy/0IbdZlvaeT/3ex+3H\r\n1aOAwDQLoNww7sQuNzoixdsVx+SRrw+Tmn2s7pRUxsUxj6OQ/xo+Kgkr+rqy\r\nsjedfbZasTWl/+SmWRLyMvUjv2rMUEh+z/WFHsHyOREc52dA13KvyZfy44yy\r\nJ1dOYb7RXdZ5WtygIoxvCQ4MH7Qe2n2yuxkLjxgW2fVqz/JFiNFJiXEQRLL9\r\nGNWyXfnPH9Y8BLuiNdB1ZXl0rBqQuYGnp79mbP04Emb916J61frs6VNpL0s1\r\n8X0ajiE95rs7uh5YuYhxeDAKf/icMlh4vlp7ncb1HB9473+8PuiIQSwNJhaU\r\nGFaR/T38lYJjKyLb8eVmUSWDHalS/WKbaHe58mIBJQDqMPndWxU9SOVWJVhu\r\ngn0BNNHlF1E4jru9CzG/70FjG1cOv/F0o0U/Xf1vsyVjSALyTPghUZz+Poxx\r\nBO8U2nlrUVA6fomq8MzvC2yUiQj0vlOk65fOJILGcS2OSVHedJo/ueqCN/wy\r\nTDxqKBrK3y8/tTEGfKYiSKRU5uuu9CJRIjA=\r\n=0t41\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.1-preview.c46e418","@microsoft/mgt-msal2-provider":"2.6.1-preview.c46e418","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.1-preview.c46e418_1658357747806_0.5450782030846402","host":"s3://npm-registry-packages"}},"2.6.1-next.fluent-deps.5690b07":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.1-next.fluent-deps.5690b07","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.1-next.fluent-deps.5690b07","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"557fe849a7ead2a9f40b65f9583dfec6a7978778","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.1-next.fluent-deps.5690b07.tgz","fileCount":18,"integrity":"sha512-XoN+OhLvXvh8FYo5khNuZnMIiebLE8bXDEqqq4tE+yFaPs5XEDMbcl5hZlvPfvNBE36pL6n7vCsMfCdnPmK0Tw==","signatures":[{"sig":"MEQCIDIDpjEcAsmBCE/RCrVOn+hNthI9rTRaRCbrpyhlKs0qAiAmfmWs5knbkTHzr/cAsEz4qgTOoQi2d4mDQYim34x+Ug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5ApiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIFw//agQM2DAmZSvNqX5H5jO1sfDMX9rLmGuyM/mXR/bV8R9/iA+O\r\nVX64JL5Hizgi3IjiltQJr4IYcTm1HRnQnTQpYEU4kjFMWxtLAS/3M+QtkqNe\r\nv9n2Y5c5OXUxelUMkmT3iVFYC0WW5y2kMOCxNZz9Q3e3DbPceo/vyuHh0RQn\r\n9EtH58WDqEudiGtULbjVcK1dkXLElD96aFUR9usmLNN9cOtxcNEs6vQogYcX\r\nhOZwyssk1GqUZB2x2949SkF/muu9ND4JV4yzj6Jce8OCqJVqdDlLWhomIacx\r\n7kULWd1xHiS0O8Kq2v+zgH1DnrMDQb02Hpw/EkfMBvKO+7MQReWh74+kgzrf\r\n0h1GWSxyqIs+iZT1xuTjqQhprznEuYHeh0Po2mGq3hRP65nNR9X3ZxVfW7Ob\r\nr8iQai5t+Ja289jYi8pWGdYUzsAhRggjQ6hdeUfFlCrZOahyKJeQIZEoyTEl\r\ne0icGoEpivhzO6/htfa3gdlX8ulXx0HWBX7lZuMOjLUYgHxthxWC1LYuVBxo\r\nHhmKrLYpHuc5kFwK3yByaNimM8aIIDMzYQZdNVtrf3cFb/4fShDKoFIvXwOX\r\nSBF+M8ZcTQGdIi0wfcHwKwkXYEnmv6K2u9WX0+bUjz7zYM3fbWZuKGDLKUbx\r\n/ixLmKqx7uqT747ug/0kWF3S24xRc+MJ2So=\r\n=FKfX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.1-next.fluent-deps.5690b07","@microsoft/mgt-msal2-provider":"2.6.1-next.fluent-deps.5690b07","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.1-next.fluent-deps.5690b07_1659112034763_0.7015093167873476","host":"s3://npm-registry-packages"}},"2.6.1-preview.03eddcf":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.1-preview.03eddcf","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.1-preview.03eddcf","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"97a8e404f5d6a66f4f1a66a01b62eb05acabc00b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.1-preview.03eddcf.tgz","fileCount":18,"integrity":"sha512-pEv6RD/mzZ1cRJShJ6yPnsg0ydK4onH49kEw4kjrrindVjxeP39okKET4/oHl+g+E8p9Y85mw/o6tOHN3xlRig==","signatures":[{"sig":"MEYCIQC1OOmPSDb73tNyFCTjDC+1Jx6jgeAwyewxEKkPLmlWDQIhALmTooe/VmTMVN2Qzj05iZVVv7jjr5HyeZ6IFH+hqXTw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5AsXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgTA//YDDNGr7r3F0V4O3FgczdiSVFFPj3EkdfeFX+NP//1zPjir0v\r\nx4bK7jdlu0NSTN9ClZMJU8joLQ9NJXzCLGd1yU1l3Q+gH1vniA+GnOH0t0CN\r\nPpPZLTOXH1alukzl1m4TXGFHgWfD7AM6ZJ6XHRvuIAYBqs3mkNQO3TbGPcF+\r\nkHZPE+YJU5gu6+v5J4Q1IxEZ115oznO6uAP3WEnZ4N29/3Iu0ExSE90G1cxB\r\nNFuP7m+6bQwtddA+KV1X+eOtsRA40wFkGR76r1buuXZdJu7CbymNglegHvbC\r\nAZQ3UPo9UgCzSteeEm5M4GHNokFjQlb8jANQk5xxX4tWqqBHqo9aTe8qKFqZ\r\nHhfxUr0HxI7ZCsx84UQ75O/xks9+U6E56IkxrQ4YHKVR4BOjV8y0oBTqkcNE\r\nDOjM1t+2Fxh72HdXN74Yl6TiZRlvxr6TFPaPe+aqZjC+Zt+fBhqSzzwJ6WzZ\r\nMO8BXThQavMfKPn8WQcA6ZtAkvQgxjl5vWaQkkAA/agVotn0jPh4zWMSnr8q\r\n7Bbgjkg7n58ihxKvB4pW/zAkwCIQTo2CZG+JUxq32zctp8UMT3N5RzMQ0rB/\r\n8KUWq9Kdlfdh2TtsTv2Vyv5qbzc0kbYdj+2QuCHkp68RBvfgsAYRkVvHQHnC\r\nGeFMOC4bJa8B/DbT4eRjEb2+W5o7AQ8+1kk=\r\n=2AUj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.1-preview.03eddcf","@microsoft/mgt-msal2-provider":"2.6.1-preview.03eddcf","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.1-preview.03eddcf_1659112215382_0.2354697220891948","host":"s3://npm-registry-packages"}},"3.0.0-next.fluent-deps.4bc5741":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluent-deps.4bc5741","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluent-deps.4bc5741","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b21d36799f943a5cfa18f36ec8c83741c783a32c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluent-deps.4bc5741.tgz","fileCount":18,"integrity":"sha512-8eNcw18NcSbBJLK7mRstBqOyB2mVVGEMsu1J3so8eZHrvdW/rkYhfxmVrVS5VNAGRHQTD23FewKwWhymQIdFKA==","signatures":[{"sig":"MEUCIAixKHPXAgjEXHxZyN+V+B8Vi/dbf3bAIYnXPLTuGjYyAiEA4CZeqipmHyVPmlo7awbROAhepi6bXHz6pbo8hF0+yiQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1000482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5DHWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4vA//Vh4+a1w2tJ7He1Op8nvpqITVIheUZencvdJwe18J2k5Obl9L\r\n87ClaU1a1jQAMHURmPAXmqY28snz0QCdvuArAVYS4/W3sJTeY6oQG+Kb2meh\r\nfVv0k3IZydAQpqx/7ru4BJLC/GA/Y+0LP48RwPg0DFC8Sv/64HGNVfgB5hon\r\nB1WdmwJhqBXpcIJVEUc+Di91PWTnmO/IW/yhDzQ4AipB84p/mFXAJXSFfd3s\r\nB9WQAio0I0FKf6H1+wXgxIVPp0RuPoN1cy91lLlQ9cI3x1rlY6q4xDfECqMl\r\nS1T/HRjvKJxUsNKrGtVSm/47eOnlzNtWOZ5FGYfl9FZQVGUkpuzzfVT3YRwb\r\nWha5IqjmGVo6+SOU8I2Pzq2BG16IGqCE2ouuSeToRMdhXJByI3ii8scbiJaB\r\nbvTFZ/c+uTsy9T4198s6M+Ji7iCfaXjJ8HCsm5os6TpL7dypcB+HLCC5qjhf\r\nMawwSvJWRqOgjc+9D7wG3CDXds7OP2aRk26suyxqpg9q24N3VNPx0JYOiXx0\r\nQo15i3imHpeebIsiKft3jIhaxeSOXPWUDNDQRplThrjwD66yToiCyPql/lqd\r\n83c654n3yfNMoGU9zDojKvmfuCPTwGV6+S98QOTm1BW7oOpzax9raa6rfJA7\r\n4OEByAC/RX33DeIv/6UNTZOHeoyqdI2smHI=\r\n=cwql\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluent-deps.4bc5741","@microsoft/mgt-msal2-provider":"3.0.0-next.fluent-deps.4bc5741","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluent-deps.4bc5741_1659122134496_0.9036115708457342","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.5063d12":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.5063d12","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.5063d12","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"bc06cda27683925f0aceb01a92aaf20c955be259","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.5063d12.tgz","fileCount":18,"integrity":"sha512-TcMqSWo9JBRJDstrpKsCZGz/hwslEMflSuoBbu1Pw0/026vzORWA0Vnj0o0gNjxH010E/OGHwpffEhYXrOGo/g==","signatures":[{"sig":"MEUCIQCpRelJlCiiQ7sesIHmlofSSZxYX5U8onJiXrH6Ve8jAAIgJJ7Vm/oznC0ZeTqVPH3EJkOFvz/hOsZgTmXXEtfdps8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1000473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6EPAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuKBAAlUzPL7sY+EmPEKgyLfh8wkjOX7NeGmqCu4J9zP+tfJ225Z/z\r\n9srzSwX2ne7ggPPRMDKq+VpCzg9whLaWGOKYcbcY03pV8/69pJG3HL36VLwa\r\nRcXUkVIoPvu4tZWZMPJDAiYXcLWmmxWLCYUwi3LKbVmNc3St61Jr/V0UcS7k\r\nUu5kl8JXplKVNS+anBZ2Tgf3OEJyb/Pabnn52wdCMY54NFSXv3u6Tvof689i\r\nCwpYo/K3VDQdsRW7xSpzTG5v8EwAojAj9uY2T8HskATQPxoHvCqllw9/cnDy\r\n8HHD0IKE0NMez2U2sj64rLMHVcwkpqOic1ZZuq0IjKO/xEy3tMHbhBRwp+Pr\r\nVJoeYiryIykeq2ItEOZYP5lrNJj+TNSuDj+AKVZFqAUi8AsM1NjWSvCuKTto\r\ngIaJmgLf62ACwI+M1fLh3DxLwQs8GMvKVHpCvSb4lY8wTQHtKrEro5KaRMI7\r\nI6uL3LmnqLcCd/ZtfUI12P6ESfgpNHpAcWfo28OQVkCSqr/I3oqhT4MPJ/9o\r\nWwQF567/S87mpiH3rDzVf1JeSX3R/r6XlliAE8uEyj6vI4TO9VlV/61RBuNi\r\n+g835cuCVf+z1xszZA6P3y4kJLcuNsrHtpzbmziwAjXGZVWZnw9HNEugT9Zx\r\nr88JuaoIbv7BJz0YqWn3lMx7SZ776nPMz84=\r\n=z57K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.5063d12","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.5063d12","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.5063d12_1659388864079_0.7898279156517463","host":"s3://npm-registry-packages"}},"2.6.1-preview.964204d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.1-preview.964204d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.1-preview.964204d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"69d4a0c41e96ef5de093b4819a177c763348857b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.1-preview.964204d.tgz","fileCount":18,"integrity":"sha512-AKKAGgCnfY2jeahkDZBApVSqwS5i02fAckQs4xJgw+JX2QXQ52Jns62M0eQxoSKJG36s8eTOWfwibPyuKVSxvw==","signatures":[{"sig":"MEYCIQC8gukrjyebm+xxhBRPAtViQ47uhRgvaXkuMYF67N7ErAIhAJFYVU5VilG9zUYDdwRgBoQry+eL2pclwVSjbYD27NSL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6QZEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWqQ/9Grdwjqrk+F+RDwCOH041phtakafs+3Vae/LdR9tBp0+et8fK\r\nX8aHaqM+k8Y0AXqUIUDx6Bxda5lKaBMSzeUm/7vtekbLuor305JRHVliuTpB\r\nOn2W59NJkH2FktmEtg49HIvXotR/xydyjm1RRJAfQRjJnZJmTnrQl0+KsnVB\r\nOmpLpcvtwNc5vYLw0txbbvqWZWVD92SE4oGuCE/scWHfOOnyLvOEc9WRvN2G\r\nfa3IrpFgnwZ4uX+sUKIlqn20bdHFjWT5s7P0GF6lsdc8GmDH4xqXtsuTjfrV\r\nYipWoXkyIS/87JWl5ydlKMtKTtBmg0oCGjuGLmBzwU26Do6tvmDxQDWmB6Sc\r\nZi4MxemiMmT2yaH3EXo7y7CTVbVUv8ieWjdFUVjlNuq7x3KWr1j7s4ZJ+60G\r\n2qG4tuE7ypf0yxIiUzPUgPMN8uudUhm2nPeVhzriE0EVcxZ2ohlEMighVCwb\r\nvhvAVS0JLN+QQ8LKf4TRx1lBztHA6GDtQ//Q7m7EDFGv1cSJftRPpNFtZHep\r\nom23eO7AgISfBXgik16h5zrelgbw73b/bP7zqwLLrQagyeAOQbXQB63xxZki\r\nVqIbBQtW57wnmKB1iuBNd/I7CFIcapWGtyjPodltj1szFd2vBIx3PhNmo1O1\r\nO7yIKWEzlRi7DQA84Avg8Aal/7BLK9HKFUs=\r\n=WhcF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.1-preview.964204d","@microsoft/mgt-msal2-provider":"2.6.1-preview.964204d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.1-preview.964204d_1659438660504_0.09677899629672648","host":"s3://npm-registry-packages"}},"2.6.1-preview.32a71d6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.1-preview.32a71d6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.1-preview.32a71d6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a3f327fb59a62a9ee807d885a19e5a5414c6d381","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.1-preview.32a71d6.tgz","fileCount":18,"integrity":"sha512-X83SS5dTT7lkgbOItF6AvQfputxGGjpVutasgZWB6ggpJkSCbBBPqtcMtr1oBUFUx+XnNA+gPhy9BaBjWyRyiQ==","signatures":[{"sig":"MEQCIDI5bet8jPnN1YY6Vs61Z3QLCPi7o0HuTmOBR8aBb/diAiA+cqQN3xv7faaHNxjTlHk7JtjSLKzHX9vv27TWm1KfLw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1048948,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7BLjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnWg/+Mh/z8dEv+Ffj05iazUGGYxy4zor0sOQQVWw3sRrEus3s1POl\r\ninmn7YG1aKZug1O2xVUGKcKm5sL2riTgZTRlE28IrwVypPJ2DQri+xSkRe6n\r\nfRQz79MjBwwAYd2xxsvGphLyLYG9g2S07OD2AqZ1jJXKykiFaJ/mwrcAyo3x\r\nVMPeJz9dJ4H92c8SiffWE62/JW4YVHbwYIt6W7WYphk1iUSnBY/a4zM9x998\r\nqCT8LJBYB/VIM/DxZSp0/A192VlrCZ3oAuoiaHYLO1WWvRDxKziqPY1vIOAr\r\nTWqrxL6+jzTOEjP0vrGVoRRtu6BTfql3TzAYMdAYvR2wtHaPZEZ2M4IEo3U6\r\n5zQCe3UgJ/8fxVRpKQWgR7OSHZFbLj2u3V9vehFfZVSTReSY00wGNEMh96Vh\r\nMQ5pl0WZp58tj1lv/bJspUvfXcdTRJG9q4YgMkoa72jXzUUMxT0F3D1OG58+\r\nxlZt8ZWacvxSKCy79NrCN3zVUefo+Nvc+l0LifhkVwfXnZEsRl1JEha16bCg\r\ngs3Q/tR2wpjUGOky2hj26onbBNDh0QjEFyLySs7YKRyIYT24z/qfoNZSfXTY\r\nGol8da0h7TM6npSPBgF2E52qdrBobWL7ENjK7T5D2RqL2Qpdibcam7GHXibV\r\nFu5BEWn+W//qlPO5gNXJFP+Dj0K0bOyaBtk=\r\n=DBx1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.1-preview.32a71d6","@microsoft/mgt-msal2-provider":"2.6.1-preview.32a71d6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.1-preview.32a71d6_1659638499474_0.8827066897486158","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.f570cf7":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.f570cf7","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.f570cf7","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"39dc693849313a4295ef068af33f79d9f89ef6d1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.f570cf7.tgz","fileCount":18,"integrity":"sha512-bwBBfP15ssbnm0MfqhFsl0iGQaRL53rtfV1cNQTXcp0LaMRYko1QvihJvAKIWJe5xH3C8q2IGvL7IN1sZqDOsg==","signatures":[{"sig":"MEUCIAXymAPXr/0kU7BVkbaTk4W8y4RJwc6Gn0zfTZsdbJaVAiEA16kWFZIDzsEmY/MGt5F3xPEOO/ujsQmairQco7xio2c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":997540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7MV9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUKQ//ePEBp63wqT41LSwT2EFE43Efix7mTGC2I15UqbChFeLTZLcv\r\nT/pL+ggPD2BUxdjqyiP+4hSqtXtbUyuldXRiX0mrzgp8wFwFoY9CrgPkc/Lm\r\nH+BSOrFxb/l/TVLy+4edLhz9L8J+NqYUP9+Vb/uwC+sJd8EUAiMgjw+Fv9fD\r\nZ+kaqSrhfp3Wx164Qvilck11yaI8Th8mrhi3uGuoTlqe50Tm9MEgUlCF3xK4\r\nSQgGAkt3CY2uaId7qIgZMm9S8PcWX4AKDx0oouQwKGvc7OvVidKe73xYejn3\r\nDZNTGabl8UGjRdODJFZohnDTGQgBgSBXtqp67KF9KnuSI03fGrYQj8zeMs3D\r\ndm4dvEbQ8rxVqqSy22oVJi9j9fuQ33XOiJyA7l5fs1LhgrvFmM9sAXB9dYKH\r\ncMkZHayj86AfJmI7x5znXczE2Ex/A6pJ5doRQFV+pGdaVc+QUl5yUAqfldTS\r\n291a8Tx4qSsDLq67FVUCJu3dGaQ74WR8mpIJG7rHze9q2WeuxwLteN0ZWTvf\r\nlq2TCkoG2J+Q+zFX2ljVHzIegedZ9sLtywk0OeJIOibTf2H4pVrEdlH7kwEN\r\nRlz4NCPzFlDCVrQVO45pFyUF+nKTbzobVeaK98T5TWqqf/JhxAOql9RAqDXJ\r\nl8R24r7O0ZW00P84JA1Gp1CuCjCgaNmLed4=\r\n=pgLw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.f570cf7","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.f570cf7","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.f570cf7_1659684221424_0.43333047542139025","host":"s3://npm-registry-packages"}},"2.6.1-preview.be9c83e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.1-preview.be9c83e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.1-preview.be9c83e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"0039e41445805199a5e1af578ed646a19ca511ab","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.1-preview.be9c83e.tgz","fileCount":18,"integrity":"sha512-C23QdvC8EzJyeLCc0hDTEdXMJHGise53LR/WzfwNaYm416NsQZipp/5SmkB1Vjbc9PHVXCcomIo5CA0/IUdLYA==","signatures":[{"sig":"MEQCID0ToOzzmS8yIRs46nRzJLbJzlcNBFdkF4a0C4ClScj9AiBKqMDgh8nNsDXmzxZy8WXGZfa85ITcaVzr0L7+eKd1lw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1050377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7VP0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeBw//XsvmPDzx4a2XAoJzQVB3kS0isiEWOiuQ5a9UvNYVXrU0tTPF\r\nmLE/tbs+nozaVIK+uRKoNgT3nVI+BZC3CkLJ56mCPR6DGHqxDCn4pc62MQih\r\nVQ7RndDbrQRpiQqPsDs21iSplsTlrs9L/NFERN87LFIP9T0UIluX2JS8KAu0\r\nvaeWzT8MsmUgQPaLCP0skYKfyC+XHD3ihlxejjyqihObEPleHEK5fzadTM6j\r\ncrfSx4cWGJTVxVD5kflJe13+Pi7FKSo3YRA4KsFCg0vq4pIWBOMYolFsqYRB\r\n41ZP8Y8S6nyeq1ApKNWjBClCk/m1m9jI0xvTlOa4CloUHiZw/0DxsnYPA6e9\r\nl5gYZXktP0aPtGnXxq0faq5h9FyQhjkbpm9WTJNcSSKv5Eg7BalV6qtoLQta\r\nHUL6MeYlo+SNyxmnX5+AUBVMP6KFt4b4gqL3rhSCqOhhbcw15M8jbP2jUIEI\r\nYjQ1KyqigP19h5diovMFscO9UGO7qEpMG7PGV/sM+DpMB5khfr3+ltN/Vfsn\r\nVQ05HX8CGOp9fbsqESJGQ6ipb6J6zRhTXYP2U7IxDtkpy//imwY/k4TfpTuj\r\nOjI8tdGtwzdfqwwnFvaGGk0Txvkr6rvMQVMETNVM9v++NdW8yQzMAFihoQ7P\r\nHg5NEui75XnYLDlTiSTSvuXwRNQmHUemKYs=\r\n=zijQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.1-preview.be9c83e","@microsoft/mgt-msal2-provider":"2.6.1-preview.be9c83e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.1-preview.be9c83e_1659720692140_0.3931674282916209","host":"s3://npm-registry-packages"}},"3.0.0-next.login-design.005c735":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.login-design.005c735","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.login-design.005c735","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"27b46ab07dbccf9a885a3e6cf8f028d511e0c9e2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.login-design.005c735.tgz","fileCount":18,"integrity":"sha512-bBavUk+vII1uXjvMNQP0OgsIQHPvci5HUYal0ut24SmSxvYlCBHu9u+ya+SgZGDMxMmqv971RI62Mk4wFVw30A==","signatures":[{"sig":"MEUCIBK/7dIzCtQohdCt4AXuXR15BAu+1IBKFS+Qsq69Zu1jAiEA7vek4F62w21GiCMD4KmxNLirDm/s9MlE3IPxi18ee/w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":994204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi++MAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpV0Q//SAfunzxFb5UFPCCKhZc4Feknl8W7POwUeLIuH//Roff5beY1\r\nlJZD2yL6yl0qqTMbIJO4XPvCnNNqgjHpQrhJ5cUvKgsIEZSB1UZ2yHP0cicf\r\nK4BGw+f6Cltjg269ai2OXeeD48jCeOvu5uPIaUMrHCnuzBENouXbThkeGlEW\r\nKdlBQhUx/h9c55phltxFo7nEmoOp24x/bbG9dGDPUv6nQBSOTqR7YrO9Wpen\r\nTLBp9/O+HswVjnIIuFxx86AZ5ez0vEb+hFSx/4LnV0UFNF8zUioK9FYBJWjB\r\n22+RIMlU8zfj+qaLYIiDh/T/NLGlIUGXqog/OGYx0rTg4htRgty+kiThZdRm\r\nqOFyELFXtkn5hq+zpyO8I4h9K06gcf1ZN1HWsyA5A5u6w//uTbHDCnxYKf7X\r\nmmrf8mbJH5qM0pm9HUSfEppz34WfEScGHIsg8tjpvh4Am0/2AyzPpbAZdqc0\r\ni9kO0+o6luKVuzacWbQ0rp6dA7yRmCtvdhFX4kU+PquCn9cRIThP/ND3vVL7\r\nHb0NUhuglZXExFfPZMqCauCfDRHssvViuzYq2wuecuMt5rID0nKTdd4+phWq\r\n8m2GgZ+znR12/efdxCnFnP8LNcYq9lD563v/T5Ac1V7OdGsRx034l0jnqUcU\r\n+Xjx5UzKl2bnXwgShPnVxOooNvWjfWMvyFU=\r\n=X5TB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.login-design.005c735","@microsoft/mgt-msal2-provider":"3.0.0-next.login-design.005c735","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.login-design.005c735_1660674816372_0.8950996181938069","host":"s3://npm-registry-packages"}},"3.0.0-next.login-design.7e06837":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.login-design.7e06837","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.login-design.7e06837","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"26eebc7562c5f4f1d7843f88ca412bc03f3816a6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.login-design.7e06837.tgz","fileCount":18,"integrity":"sha512-Kal2YHblEqLRQDCwQxEG2K1t3/bX2FbdLaq3wS+gHG4HOBgyBcrcwcD4wT1wCHSsTXofrKKAIMefX0N0f+8xAw==","signatures":[{"sig":"MEQCICB4WBY8t5gtX4Kk3E/hmIeuTh6kd9Y4etwJO7FU0PyvAiBpwtQLwKilFp79RAHme/B6fpX6Usyq6zY2/n6cQG1T2w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":994204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/AdOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpeyw//SnA+gA9kkV5doRgw7THf5smgt/W/TLPaLyld4i/9CHoYlVGo\r\n9mK8Kwg8L1Kw7G/ty+ndgLwLGpF9e2J8qGd8+P8nq2OmzgN9d2tkB9gXUkE8\r\nXezJVsRRXc9A25yzsVBYGnvCcUXb3Z+Bx9LdbxTP6OrHQIFTofEhcpgb3sYX\r\nD1e7F6JLC+SpSTygUefSaGV1b8PI93Oq9KDOZefustjKZ6oJzkd0jN7jBpaX\r\n1H79rS44u2EMe0e+ql76F3YibmEd97ZpAtWfErAQgJZ/8NbVPm5Qya26QZ5c\r\na0FuYT2KUW3TTkxLRtkCdqZHwsU8hUjq768o0l++eybICz0aV8uAsE/J+839\r\ng+6L9vk/SMaqsT8F9ZdjU+Gf4+PRca57BD2UxVxRKHZT4w3ln8leqzSr0e5o\r\nszf3Nn1Pg9UKuZMNXbThnvkKv6bSxa9RV25kAhvc97ViVqvduc6qb+zguFOw\r\nALCKSkOmfgDaedglPisUXotMDJFKLIYqwPcgB7qNSikUHKhMXAmtTrGpU0nz\r\nx7/YWZuSTk3hFloMn8tKQA9PUcu8d3MSY5WTg6f/oFZRsBrKoH0Wl/xZW9kK\r\nb7d1R3Sj5NoXiuVVJRidF94zmB6oqzf02TN/SzUCDhoi4RgMZEVXW2UgUWqd\r\nK0RP7dX5m5ghneAP5FOg21T6UCIcNirkS4g=\r\n=l4Q+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.login-design.7e06837","@microsoft/mgt-msal2-provider":"3.0.0-next.login-design.7e06837","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.login-design.7e06837_1660684110295_0.3305271598494999","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.4ad569b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.4ad569b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.4ad569b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d22de9c0b121ea9bac357b0d5532478d5ec6e81d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.4ad569b.tgz","fileCount":18,"integrity":"sha512-6NDbk4G8GbUNxxZ0h7RvZ46lDQfBM2kO/EzAvrPEa0+jhtHyrXr1lacAKa6cxHT66NLT/m9zfuABdWdvs2sqsg==","signatures":[{"sig":"MEUCIA4nhMKz8v2pAorJ4A3nmOyJWA3921u3Qe966hhlgLZ1AiEA5UloHplkLCBFoBpqqu2D8IOtzlWl66Cgd1d6bkYKBkk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":999034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/Aj2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrcCRAAmF1avHu4eoxBEQ9087E05QSk6eVo9UOUqQJfLq8J/cEbuXXe\r\ncuFZEqyr1NsYLZu0tIo1I23UwtRUUdvj8CrVqZW2AAbWj/0EEFs0zfjI6LtS\r\n/tdyDKdGlbChwpjVFFl4if9+PWxDNmXo/mKUtAViWnooLCip9gYNtxyEIGVK\r\nKbuW/DwTgMHKI53Lv0dyy0DcAGbxEjjVF7gomsJ8VjUuTlQOEM5SIg3mukcS\r\nPh6cjH2DrvAFAWT3OmE5LoxNKnXoU7UQlg6pddKsDCiougj+VdRov0qQXMJb\r\nonWTx+zs/la9UEPhFnmAwXJLN//HSE+hVaWHYOzGoaUpQcqN28ssZvKJW/2B\r\nzZzCGb6ZBMmUiPyYJ9YsMINtxCrdtZRtxuNYeb/eDTNuaDxyP3HwNZZg55M6\r\nRaGxbhKlmy1T+ZFZJuUh403iKW3ZYZ4hPWzGIEftt2kS/5oKdNQbSI5iBByw\r\nZ8Ze8CLD1D4OTZK9kofCtZOrNHikps0mCLTyRpOv3yt/O7hE1nS9HttxYS1Y\r\n5zhJI/pB/cFCiNchoquRgvldWmgmtAbVzd7GujRnS0C0sNomLgsWwIHDcLDB\r\n+JMc+JbviON/SNVtaEHd4GB0V+eSHfA1u84p5OdYwKXoz1bAe/GBO7X9GDTk\r\n3geqWuanjvSLTGlssS0eLdbJEp8iTuSGI5A=\r\n=Po5R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.4ad569b","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.4ad569b","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.4ad569b_1660684534084_0.3206525572400454","host":"s3://npm-registry-packages"}},"3.0.0-next.login-design.8a19bd7":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.login-design.8a19bd7","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.login-design.8a19bd7","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"aece0dd5aaf7f1e45a478abeb59cb4ebb3b7345c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.login-design.8a19bd7.tgz","fileCount":18,"integrity":"sha512-7SljVJEG7nNMe6ta5UYEz/DwRlUuocTUf7mbeuKvRrvZxe6KEJnbyJRzCGFbl9WOOE0T5fevGUq/p7PpHy2/Tw==","signatures":[{"sig":"MEQCID+YkdKuVJeD7A7IGOoJtSEufIqQgZoVPpaU7yDPHH1lAiBv188pE3+CEsnK9ozIdfcFNMEFiDfAWVrKpjk8C549Hw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":994204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBBAPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOrQ//e9PyCSyvWGYImbDREs3Oq2DAmWtwZlduxPUXB0ZRrmdp0/hv\r\nig7Z4irOYjE2/tbWV8JYxFsKm+vPPq3p7ZA4xvBQANto29iYYqASjMrXH6j0\r\ngZEZ3iOSpFeUyupV6E3GUnOxvAEtz7jvKGkOVdKL4p7OgebGTVCRv1yyJQah\r\nh4z7dFcjcDMzmDef6RCweAlHytpVx28oKkuN43CHkC24RfyfVP7XbDvi1RL2\r\nT9VwJYXiLr9qL7LtfpOZvy6XVP5B2OrQGIaCl1BxczTdoiLwEH+gClHcxdFs\r\nLx2sNeBitdsmMU/aPFe7se8gO5xhFTT5gNJ8hIqgyK6qO8BuLHVVXals8hH5\r\nzsjEtw1U4HuvEVB2pURKNVrqmahBqaBcpvrEFatfNCRPWLsdWFsntMVlSm60\r\nlTK8ez1MPu/QpTczw6ZviAE69KGsGUVTK33gm2vYljrgzfEni6rxw3PmawM4\r\nogqElp7uqlphM2icZmIvPDBzCnLP/fOh9Sh3OsOUpXN9usMIjyyBKxHM0Vcd\r\nZcHB/59zbL+zK1oZCZg33tzfQr0n1yVahFEum8R/BaMhcX5A6uTyQd788L9f\r\nnM4Am5boRCQUYCDulz2gEpOyaUajwzafs7pvGS+JU4EROfarK3PbczPX4CmU\r\nn+H/Qf9sDvVIutBNrUJWDACSnbwVGklhUBU=\r\n=mbu7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.login-design.8a19bd7","@microsoft/mgt-msal2-provider":"3.0.0-next.login-design.8a19bd7","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.login-design.8a19bd7_1661210639363_0.16247302562945976","host":"s3://npm-registry-packages"}},"3.0.0-next.login-design.c873cc8":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.login-design.c873cc8","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.login-design.c873cc8","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"5a370ff5530516deec22d49e955205a4c2dfa7ed","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.login-design.c873cc8.tgz","fileCount":18,"integrity":"sha512-Q28GhmprNpzzGnBzAmomukxoAhyvzufYx/BKtSFDRaYiMPnkCHLBl+Xkz/JlJvYrvlrQlzWwRynlM71svm5FvA==","signatures":[{"sig":"MEYCIQDFjAzsKSMu9ObPqY57wCscAKffItnCNKE2ztCU0ZwyvAIhAJbRDXW16G9ANW2HJOcfEyj62a7ilIBrT9HD1+RyyANw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":994204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBCCrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIpQ/+MM7YHIzk2HHMoYZ2wnYpQ7WAbApxosyKckDq+dP3zMt24Lk9\r\nMslftJtbgCD2AfBIKZqfXvY3ebKOOW9w7ksD/SffSLiXgMIpTNj/dyzau1Ec\r\n3koovtVKdcCNGFlRvB+Z4A9caxyTEdmWmHly6bAhrjFWcd+y1O4rC7AtIjEM\r\no2KJp73KhV1uiXTEONJ3cGO1eHpDU5BN7GhIHJobT0HraftVDevpRLDUY4Ge\r\nTpbmNyJevJpSnpBj6ytYQb9ZJYxvy/F6yUASzCzWz/xVlpv390CC4hb0P19y\r\np1LqTcL8JWCUlR2tgsOE3PhQH0QkNxRwrBLUU0gUJt3YXv0EenjHLpnqg+ke\r\nOkad2ZQah+4xxKYYfXxeBiVj/4dMhS8fm/IW506IHT9C7gCgwJc3wvDb2eT7\r\nvyw3sVNl6LNY2PrPi086Uan5FhxoNNJDifHpVu0BzvKnhrQgA5MOGX4EixFt\r\nh37hiZ/5gYrof8gBCd/GhVO5fK1D9LAUvL4jFjXXEiglXiC4Ea3Pi5HOlwyo\r\nMbGFX+0/Nfb1pIM8wcpJWmtRh2ylBsAG0nTbE+uqeI+D635r6wETOpLATJTS\r\nWvIeOD5yI2YVOQztFtMAVtTVl9Yh8ejRETsX7nB3HkSkpvUH74svWs0tCDwk\r\nEsc1NSE9620Y6Wp+AV222ScNgdK6c/Pu/eI=\r\n=X4f0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.login-design.c873cc8","@microsoft/mgt-msal2-provider":"3.0.0-next.login-design.c873cc8","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.login-design.c873cc8_1661214891406_0.7043376029512065","host":"s3://npm-registry-packages"}},"3.0.0-next.login-design.06300ed":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.login-design.06300ed","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.login-design.06300ed","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"fd387a17514fd136cdb3f303f2ea38047620a76c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.login-design.06300ed.tgz","fileCount":18,"integrity":"sha512-2On4NhMdrWgSI146wxGzGFlIPPrPJoDL+5oeIOxp9kyRw28T3QS7tzhTcGqDmxFNgXx8W4/GaJ4plsi7xHwCdw==","signatures":[{"sig":"MEQCIDeKi6hLqjP9PVB2LgBpu2v1bcBaA3n951L6MBC1Q48KAiAvSpD+cT4vygMxfseBRenyriiOkZuQEECqNInJQK1MBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":994204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBQrrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFXA/9G4HHL/gbK2C/KVk4dQ506Vehi1njeSU4I7gDsNM049F7KWL5\r\nYwj18yX1omaONsL74vSd1EySCpv6MROaERaQoGq9yIAG2zErYJ1mUY27wTOd\r\nNcYfE5fO6s/ukUQjPkFsXVLDgjxWrYsNtzQj8rXSmOu57OZmIzx1375bGmX5\r\nADqsoLnIIt9ylSlkqw7ic4fOar+YROrocQzPiKxaEf3oenJ/weqg0NlfyqZw\r\n7PQIH2MCe4FRQtjVtd8ARP7WYWlCw0EFjYFKU8Zt9FPUPvObKROblErBURBO\r\naAeoIIjYvbHLIDRyXCbfqOHpJisH0d6nOfSEGLnEK6bPvq2vXx4+frdUsKWU\r\nesyrEesflb8jJm46F3goztBfTsFelLKWfrlEAl48Ld95F7uvSq1rlDMZeKqI\r\np2QgRZ6pI4tWLLw/5BZi+kpZVN0efpLEcXBSE9tWLiIz+hhRCC6tdJsseu2r\r\nSPazUEtd/8TAT/FWV4z55/fGlWy8XJmoNdJREdl0PfXqqQbmZt5JwEmL4X3i\r\nFpCv473iy09EEUYMTfTbdyh/VK33Mof7kkdNupyPUzr6jhiQ7WT5WLFEpsNl\r\nktamGwhbOoeBmc9gxlWe8G9HyxIURPZLh08y042agZ0i4koMC6ttwbGLnObh\r\nE0bsUjS/r0TMrxhyJmq3IefTh4Pc+b6almg=\r\n=/naW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.login-design.06300ed","@microsoft/mgt-msal2-provider":"3.0.0-next.login-design.06300ed","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.login-design.06300ed_1661274859459_0.7040478731675832","host":"s3://npm-registry-packages"}},"3.0.0-next.login-design.f35bb03":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.login-design.f35bb03","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.login-design.f35bb03","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ae08b6edbc75f7b51be3df21d20ef800d0401bf9","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.login-design.f35bb03.tgz","fileCount":18,"integrity":"sha512-HuEOsjQzfA91clM8cSGLjA2d2oWkyH9ctsIFhTi5B+9BJcyd+1m/WhKelglUplPDOvxmvX5lwGmNJMKBkI448w==","signatures":[{"sig":"MEUCIBYLvFGAlOiHKN2Apq9xQSfscjWfOrm71wUlcMt1GQ0PAiEAy6P4g2mLAvrvyvum8DQFgNAiXd0GckXvM9qSCyWp8Zc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":994204,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBRSlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSjA//bSP0+3Xs1pJVNp9jC5tYDb0mRpBnzvJw6Col7AR46/nObNaM\r\nuZuqQXQMrgP4ABEeBPNcYTPXB2OkvAW+8O2cwVxXIBVM+4UtEc8Hk/lSwq2O\r\nPgvCEYV3uaomUFLvAPO66wKbDQXgQa5cBERFgZd66qMGO3jHmUKPaOT0Pjfa\r\nH9Hgnm/eZnT/KpLcGpm123WftM9DauggW3ClOdV7GVMnks0bISJlTUWvSzGR\r\n4a1v3edfuHdEeahxUdBHLwjv16lPc+80xGCPeg2Vuco3WOWG8edQZTmOKPc6\r\nJpBTm4i3jvJ78X15bH7+WI/edu0slp2holmbNZ62rTzwrh/Re7Yj+HVFCoCW\r\nO7pTBvaY0JJqywgWcpQEXP0kCE8qEcglrbB1zJ1Pya0nhi6fvSsuiP8LMCLR\r\n6zQVjD2C+viiEa91uuuWAs85mnFpHOFZborPm5FzBc3QHyyUkw6hspX0jJNG\r\n4EkFrfv8MFT5wUSJm+GCOzf+hRA/z1zmzmAWJIfjifFrEV74GRvR0fz0aV9V\r\nO0hukkz3eNz/hXDE3IOLu8P5HxR9YZuuSnUd9dTjqu1v3HXnXCZfqLgH9+BN\r\nm3mGBvjvSBoggAPYwiQNvmdLE2CyUp2QGt+0HoUgp/psnny2WF94E2jkEdIq\r\n0TSvRWJ6dNpz1JzHjrXmIF4FhRKeVxZ35qM=\r\n=l6Yt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.login-design.f35bb03","@microsoft/mgt-msal2-provider":"3.0.0-next.login-design.f35bb03","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.login-design.f35bb03_1661277349095_0.41461834599849423","host":"s3://npm-registry-packages"}},"2.6.1-preview.5606784":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.1-preview.5606784","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.1-preview.5606784","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"847d3f9c6eea04a1e0a6393b5b814ced87831c82","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.1-preview.5606784.tgz","fileCount":18,"integrity":"sha512-jg8vK0ht8DKtIJx4JKtLKek/jYaWV7RrvtxCLDcjDOp72UASW8cYa4BLnamHdX3Bvfs9ZD6PSfwa5hkNAm0noA==","signatures":[{"sig":"MEYCIQCj6TdESp4mfVgFnGuyQtkJ3XDZLD7vT3chvcHPNVHqpgIhAJ46em3Wt/I5uicE2LnI4OzfmqVaeFsxkllZGWI7uU92","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBUTyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrAg/9GpfMI5IKnFUrtaFiO6e1FwNaNIsQj8oN8c6aZl5b6u9fnsgZ\r\nWC0WvdCSZNh3Uf1QJuVPvyWyU81R0Rk4LNwU4U7nqAenAze4nHVIsE5UQj/0\r\nNqiqLd9frT5h6lu7ar8JM/ab7VlPYSohm3pQhvP9LFMhhVM6YOzypFpc5mvL\r\nNkdDr5I7VG4bFR80BQfcSmZ3rUkB5KwbAz9S8Dyt5WZJsGaxszMhRvq80NvT\r\nrNf09IokyMtY8U9xkJKHkc7miatIt8YWTYPeQWTqd9p5uThHobfNsP4SiBBp\r\nicreVxhZ8kwc+euFpzbU38h8IPesooUIOd9A/qJLCswcTe54RU6gnyu9J/s+\r\nB20qF89+qPKy6h3wluVx+QitOYBMNN2KlRASmob4NUAtjC6Js/dfrl31xPhs\r\ne+ysJMpynQy/ahde9NWXCg/UT+pg2RphDkR04+S9AL6eGAmz+UOYqVzo0tkN\r\nDHvKcsNBj4hblnd2pjwCN2sETudt5ag73WKz+bI3in9x33GAzlFyJf3W5kvS\r\nH4n5qA4DocRzLx9L5oQj03UhM8voapJqZmAJmXAvImESYU4KFsWTWYl48qKJ\r\n503Pidd5b0Li6EEqA2ZuHfMfJ+QwIF4l7CO1NKeB8GaHLuzWbHfDmjbGY8+I\r\njDYHOuHkZvY7d3mTAUJCEQLDJ3g1o3SjZqw=\r\n=1zSX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.1-preview.5606784","@microsoft/mgt-msal2-provider":"2.6.1-preview.5606784","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.1-preview.5606784_1661289714032_0.48532498487511333","host":"s3://npm-registry-packages"}},"3.0.0-next.lit-element-update.c752368":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.lit-element-update.c752368","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.lit-element-update.c752368","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a91f4b941e1c5b1b7117a922e3197fbd21570c6d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.lit-element-update.c752368.tgz","fileCount":18,"integrity":"sha512-LCRC3/VRqk/q+VmKiz8w7OlFK00b60VmxqH+q7j9FregiVv3vaGEhpSGwEf8S8pRf80BauVExCiLmKtgVmqS3A==","signatures":[{"sig":"MEQCIEaZE1PzWQwAj+3gcBKw6q9wZXBDoaMufLVcc5N+A1doAiAWiZt70Q+lRhCFnbWeeo7pFRDu+G+k56fZrum+StdAjw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":999489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB5eBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkGQ/9G+UiLYtuOE5ueULkjG+5wi3PnmEJCTH5g9NQdGW+3+uTACTj\r\nr3RrAQa52U/cmvu2vjmvAmkPthwtLZk0POZ5+TG0uHoHzWdtNjatxHq2rLCX\r\nnM59C6F9TBCQ66K84QvO90y0WBIaB7pBDN9HHIqb2uqoouiV55xLkSMOWDBp\r\nSvwQL5/uN5O23CeHohwPLbJDfdrj+BvbQTyj43F3eM8XHvZwb0InCYfqG0jw\r\nofR1Oo7nstsNiuFlTgscc77GrgvsOF4g35RpRSd6PiZf6ub3LXtRazyIREw5\r\nb4xPLdv0mpcrdjwmB2LNCbSO5XrSRRfW6ZUIRbFOBJ83CIfe01zOAra4QrzO\r\nksxZlCYigqcUbEBTR0uzVrkELj/4636WJnnuIwBHvu/7+XNmXSFb+hNC7N7D\r\nccJa9BjB8CJUgSKx3dpPcgkWCsnFfLakOinFCIiSyErKPsQTpevTB/lbptfx\r\nWhVZR04l0wwHcUPXvWVgBXHzJ1VM0SNx3/iMTX+zhIPholINF+vssMN0ppZa\r\nmEkqxpYiXe9i9UTYWsiGPd7TMiTYY1xeDzLjN/oGp7qM2DH5WLemwFjIdEGL\r\ntqCOb76Cy3So0YSpo9lQBlFR+KhYQYrlG1O48jOEvxfBMYLs0rMPm2FgGWO+\r\ngVeDhtbm7MP2+oj/TsNNkxgDIQFs1iYnf6M=\r\n=g5Fj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.lit-element-update.c752368","@microsoft/mgt-msal2-provider":"3.0.0-next.lit-element-update.c752368","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.lit-element-update.c752368_1661441921801_0.6568487252916873","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.f074652":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.f074652","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.f074652","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b039fbd286fcfe9e296bcfeeb46ca6fbf60babe0","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.f074652.tgz","fileCount":18,"integrity":"sha512-N9K+11qm27FCP3u7b4lKapMySwW/rbVPz+l4DbiCbsnVRvJ869j5jxxsVDMyaTx9CStl1yYDUi9pz4AkqX+wrQ==","signatures":[{"sig":"MEUCIQC+PFMiVhjUS5I0eW9AhcSFR4iMEcw6xo/46u/HIr26uwIgaM1LM0imKZMWEDSXKPjQ4+LlhSRXb+cYvdnuGE50SWA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":999034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB6KBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp69w/+K1B8uLiPr4trisMxgyTyXhlUBAqmXhgT+HEqa7ScbizYzoxo\r\n4gq0RDx+iwi9v8ZRbIsUnPH1mTWD8ZgJS0ixsf33nJ+1GSDD7rxUF27KZ0Ng\r\nDgpBdhQ7PwUwCKTt0kA57BsrwlkefflCh4sx6LFtkmJgaKxJxS1NutwifCXX\r\n+CLt5vjHfo7wbHk3zahHmmPVJGBeAULIC1BcR4SdO0JuwvOmG6P0yKNvrbdn\r\n/AZYcwGPRtAsJiEmsSYHFU/ic4aYl7kqDh7/gxxhit+/3xzjIjk2PyNYHpsh\r\nDmgTJQTtTDfDsRSGoWHvdbgldTj7nEY/vgO3fjNfTt/TcYZE2a9F2UOVjdl+\r\n5dymyMb5gkdNB/rWcxAteSVznzFHEWsfk4rfxDbV418degK9O1uFgaQppstw\r\nUcz62P95L5Hn3/gPmfw3Zzw7yLy0DdAiVeqo+MVIdSHZvwLleOkOYRqT3e6U\r\n8H+LuDfmLvOU3aNGMryNNhlC24ClszsTKfNM+mkGgjAy1pyOq7S39C9UvjY4\r\nphroMK1cLoOI8/uUxQlJdHqopJk5ThgiKTJsb1cFcIDJbetYxrb1/P7i8onB\r\nks/8jn3xksFlA8yPq86e6t2z4dWGAJ6TFRz5NVv+UibjhWvKa1fcP+cT4d/5\r\n7jbeIfQUFlH5z09snaMOL+pPAGlIBQMvt3U=\r\n=GDX+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.f074652","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.f074652","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.f074652_1661444737187_0.46618211550753297","host":"s3://npm-registry-packages"}},"2.6.2-preview.fbce175":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.fbce175","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.fbce175","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6025e0dfebbdf5ba8737dd1bb083f64952ef3233","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.fbce175.tgz","fileCount":18,"integrity":"sha512-u343WijPK0usAPp18ldK+18+Bfe4ExoMWQsjbsFCadvqIbt7DoOdGD5A1Q0WlSitU82nzo+pgC2RoIppjl+bUg==","signatures":[{"sig":"MEUCICN6ZRxev92mxBB8GUO48JlietqDH45AX+h8JWZ0nF0tAiEApvFwUYO6bmTBO9Xa5Iynx0SYcbxg3AkTFbMclc9QYAM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB7MhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq39g/+KBnqFKkSCGWoIOCUBSMaJfFe/dLt1R0nwDWYp2ldm2BD9376\r\nYxVYLIV2n4Sbu4Es9bGs5ExvxWoTjz5rbOvqPQhgRuCn3meh1TpTC0btV9Dj\r\n/DvKgiM8suHbHdZLqxPYGItGl+ar6Ki6Zxq+KSRxC0MzujGTMb5pAotg4mQq\r\nm6kw8hR/DMZfRc5rmLhbd+hYVqZL0OQOvHjt2I5eTkGLFCNmVBfShRAZF4qJ\r\niNCvAMguAmimvCpqMONntvrBQceB+RMJQY/kUr0b4n4QnQK3Nq8mCrIDBFPD\r\n5chSzr9MEkIQkj6CG9OW+MWlgTeCQAWI9qldigzJMeLIS9CPYO7Yp0/w8tq1\r\nBaoeBusQ7aYqQxP/dl/y9MbV1Ud9EPhKHIQ96kXrEz9LmHsz3tNrE9XxGrSB\r\npEY4CiXwjtJxHMaKuWeMbDvoWxtMSemieuUM4uHZX6IajcyTKAxEvZukAPsF\r\nwciTCX19TFVfb9xKYatfRq6aq8StUcuGhuHpY4JMqIMYUpEG9IzY55SSmtrd\r\ngkONGMwFXVhY0ET9PX/52z8zyufyvzcEopjZv531iUypUYQu5P5lLkLiB2IH\r\nr9ctm63mbLZxtP3we78ahKXXfwHDJx35EYqjTfn4tq+e1OzoIiDIDrx5XAQV\r\nHBqV6XjuoUHEEz57kDPCyXdZoLB0gl+C5yw=\r\n=/6jI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.fbce175","@microsoft/mgt-msal2-provider":"2.6.2-preview.fbce175","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.fbce175_1661448992814_0.0609937795471136","host":"s3://npm-registry-packages"}},"2.6.1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b0d712e41d9ee84f443ec407f468da554b632889","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.1.tgz","fileCount":18,"integrity":"sha512-uEtW1e8i4QU+bCTsXUq0v3uHpwrHwKrv/rcIvIRMm7RPUwGoKIYwdlaMIswn9mvCmTKpHf6FPGMktoJifD2QsA==","signatures":[{"sig":"MEQCICjpzZDAzYOVn0iQ7PyfVIM/cNeLvQpq4PmDoMZC14wQAiBf7g+xQRUHAW9iOIz7Hk40EtB2ZX/Gw6gG292xbf2oxQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1053731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB7NHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQ3g//W1LZvggvko602kibis0VMiwFMfhaBpVsMy9zS2q5TYc+/H8b\r\nyDwmvxFmIItYZeohZzQw+/pRLNesVne9aLQkVgsRiu7KTYYUUDdmsTcY0MwO\r\nj2+BQJ8xNB9QPJgs2G21RPsJQBR5CsLSn5J67FSkWMYEeavpygA7ew5DhErK\r\nlBvoEpGKtrlZzp9ljEBd/veL0Cu8Y0/DgGJPVMD2ESzzNw8tjDtCqwsJPfxu\r\nFqgmYOnI9xU4GIArx5NLEbXf4rzVrWcUEkiv18ByOTwyC6PqoTsFskKZLLT1\r\nqkYyuwXUA+A6LIxhIQzPYSOZ7U51ODMD4moLIMim9mq5TibVTYEkE+Bx4H2z\r\nRUFI2QC1/oYUb5u56DHllQ0k2ggG2kN/fhNyJP3zsL+ZbF9LtQHcY1e6kEaY\r\n1SO8qmcI/o1d0F+Xbo+gx6qR/pq8ULI6Sx6+XfR0gZbKlJN4xOBbykCMuPIS\r\nfg9VnfhxbDL1pBOEwfyCcaoR5t8UJCWt+4rGz0KVCJ6e12gF7DskfeOHBuNU\r\naXZ6PyMP8Wd5MkV8vnWgH2Tj54NQbyJU5u6IipRQhX3+qpvGneU0fjF33kV9\r\n0MiduO+EeXiIuXk0auxlAJp8esoGhbjTg0QcRuCVdsmV5dk9Bz0TK4sPpk4u\r\nIpddw8roZaa1JSZFSH6b0wasRQD15xpQ03E=\r\n=Lw1x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.1","@microsoft/mgt-msal2-provider":"2.6.1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.1_1661449031700_0.10499184230295189","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.069309d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.069309d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.069309d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"69b26b5a60321e470d6affa321eeca7e626bfe80","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.069309d.tgz","fileCount":18,"integrity":"sha512-tind56z6QgWFSUebVnVRYLeeU9NZm6LiFKHLhrcgzz8wPceCLH4QJb2zT4V/yR/2t082nYY3q5BFetMoijf2ig==","signatures":[{"sig":"MEYCIQDhZuuUcc5irYL0UFv6xQvWpcEaxn4Cc+ovebo0KTDtBAIhAM/lyKybZDrXqALj0HaB4zPukQcdnQHLBqBE2nAIRxGO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":999034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDLioACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8og//WVutwWL4j6BazXpqZ5zZqJ6974Dc6hEBsnRfosaOf1okzzAM\r\n3gcqkW7rwqNXrTNbToj0KrW2RH2q4OjLnSsF9dk0kUO5vRyphC4EtvnIu+bp\r\nUwAnTTIo1iO/DAz5CWKcBxKfN1mCqoOPPuiHf/djWtk5oQYFKSThAom5sr4/\r\n8Jo+uXGARf6x93GBEZLPVE63TX7abP+MiJKkEEJmO2smKdh8/EWQH/Ux++MH\r\nmsWQAwTdG27e120V2yluCxaeds6msO4HVD0TFFFOwqCgbwSdV2xuuczUjv41\r\nxOa18t6A4PtJicrQQLBK19EsnVxEmVlJSiwVt7GEHsdvu8NjaW/Zqz7yKOO5\r\nwhKSxKmLmYT21DFkoV9yXELV/jUCg9AQbCybdDgpE2zkR6ZZHued9EnO8sf8\r\n09pokiWp+hY1xkYfor8sJCH5AdQRU8HWCBor9ali4eD/akvO7kx4s2q7iS9i\r\nuH+Pap0emEEnFl5w+jWFIKedqCMCdkV0D0mBNVokh4g1fuMCBocR/9PfyDEO\r\nJAWbuhuE14EYT7VU6ESVQCnfAAIUTE+D23aaowFpc7aTs9NwqapO6t8ybEwV\r\nOLXGec/cTkk19nFe2g6KV9vv4dW4cpfijHBvGxLeNd6QQ5Hc9clHbqO2MB/8\r\ne4tVgAODsHzsenC6+yxBKXF7bGQu7YJykAU=\r\n=Itc/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.069309d","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.069309d","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.069309d_1661778088211_0.40534464334994436","host":"s3://npm-registry-packages"}},"3.0.0-next.login-design.17a198b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.login-design.17a198b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.login-design.17a198b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ee9cb1c63e60892780f001a57f3dd1c47a07d279","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.login-design.17a198b.tgz","fileCount":18,"integrity":"sha512-dDxScPiWWaWM1+Fc6oiUuObRlh7qevJ6HUh27pohpa8/RcsoF+P1j2HLAVimqaGvMQr7OanqxU8ueQx7fGsmbw==","signatures":[{"sig":"MEQCIF2Pdeqt6ItGqItQyvor/WasUJrheoqYTaLzMxRj8QJ1AiBvmhCTnCxEXp/TO2FLUXMl8AMohr3h7f8OTVLNTZ+4Mw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":999046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDP38ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQ9Q/+NatNnbKczJAMLTgFSvEm8vpTSuSgG5UER4DCxlq37iIwqgZo\r\nwHGr3NRu4f1PTeu4ji8dOudrsXHI8B0vrb+jV5wcIBK8dREhQT6QRPxWTxww\r\nzq7i+KQdqJ4tVHgwxzPXyQIalKZk4T9vi3hWoYdO6Bek76loDZiEmehOeAEc\r\n3cuL9/AiT2JCIoye2WrLaOYxX+GNUKDORPNbNq9Nvh+Y+S7g7u19bagAomeO\r\nUz60FY+nS2cICiHPmnSwJRJKLeygSROaVj1E/umEEDa/wIm6zwt4GTOyZZVt\r\nDZ7urPEuRjwD47FVlROlWp+iLERpefQxd1E6X6HYYDJJGQVnrtArkHsroT3z\r\njh6fokasxsUh0rf13TQtcR2PoMuI5BctDrdhkgdaDuquBT6wWT6c2pT65HZq\r\ns729g2rXX+lJitOx/tFrZbremAtvkOdqflO7/SkKFKTD/I1+VmfEQjg+oEMZ\r\n5SGnc8XCZG0HuKFDcnJq26ZqOf940gmng1nV3ZmpAGFsPu3ESm02JeE6/O8O\r\nK7tg4J1JIAOIE2vonQvKi9/q8j7U7WPIGA/eC7XtvPRh8hsLCOHkmkL4qP1r\r\n5Otu3lMc9vw1J2XxZYQQ53Qslne+AT/S8rRP3s97WfqPRMaUSBGFToNA4V7J\r\nthVJzeJyg/iqHQoAsR3SnCjSQQS2KSpaB3Q=\r\n=yCM5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.login-design.17a198b","@microsoft/mgt-msal2-provider":"3.0.0-next.login-design.17a198b","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.login-design.17a198b_1661795835883_0.37185488821985824","host":"s3://npm-registry-packages"}},"3.0.0-next.lit-element-update.b2049e0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.lit-element-update.b2049e0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.lit-element-update.b2049e0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"36dc9142ceda99a806e54eaf3b5cfba9091d8dff","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.lit-element-update.b2049e0.tgz","fileCount":18,"integrity":"sha512-N+sC0k5JMzrNGPIlV2zgULqZB6ok9havA4odLwSNtpZHSavOosiqtRi4s+GSzXYvZdEQEPj3Xh6bHyAadVsTmQ==","signatures":[{"sig":"MEUCIQD4Y/sUNap8dxE3rEEslsR+wNC/t5OtteRdz98P0bdLwAIgUoPDvKCpViga9WGQJIXvjsUV9pEfLWcz77N1zW0I9uo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":999489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDUIRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqujg/9FWEr/jZgun8xnRSA2OVPOOnvGGTnWF1TbyDStnvNRoFdacIm\r\nnk2Fw2sPLrX5toRxMAB5g4TeogRgsOxaHfpKIrkSVXHltDAWmyzEeWVBP1Ul\r\n2GrudF2Kyi7+xAXLq8F/eP07mg44d4iQrIasmRSh/0ZzE6k8VsNXe1zK+dL4\r\nECUs7e8iGdvOYm3XNEe9KU3QPoFMej2M7vW3tfsppZNBMwflx0+pOXMNYOT8\r\nZZ8ChHISK2j9Qzqoo8AlOsgeKMHLuGRg/23MljIs6Bme07ukssqcmYtv9lP7\r\nOB/DxyG7XuvL0FxBmyBUv5CvIm4FmN7GI5pJG895engDZmtu4jb2GG4MKLU7\r\nHIwxJ7GiD6gFQxvuK1gVwt+KqoMgFaWBElWtcLwBoF4/k3wK4tv70GHfbvyz\r\n317UVpHBdJ7a2DnphlnEak4DZmfLosyDZvCsZa8HQyOWuz1mFQkZJuufdbI4\r\nIKKosDGOp+SG2w6Wcc5Q7l5f/c2aChmEdC4nsG9fm3j0LgI1a3D/IcLAi2Oq\r\nO8JfIke68r3lc0yGbf/5Rm71IlK5MG6QMTTqqym0seaIKbrhMPoXtJSlyGCt\r\nsI1hGgE77uL2hbSJWbvbxUMbNHNQtD8Ff6pxmU9FtYzrXDQ9v4NzPx3SUsy3\r\nLpEe3Dh4omW1wY96wkZ1lZYQIYUjuGemqSI=\r\n=rXUs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.lit-element-update.b2049e0","@microsoft/mgt-msal2-provider":"3.0.0-next.lit-element-update.b2049e0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.lit-element-update.b2049e0_1661813265772_0.8224115113401755","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.710d6b9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.710d6b9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.710d6b9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"20788034842fc3679d6bfd962add79523cd78bde","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.710d6b9.tgz","fileCount":18,"integrity":"sha512-3N+Nl0xmcYeJzjXUMncXa9F/s6J6elSvPgIX7o/u/mSkbgh/xtO77Tctzs12uCcpsmjaiwm52E+87XB95+zg8Q==","signatures":[{"sig":"MEYCIQCzyfGu5u69+2bjuaXWfBeSyGPiVza+kNE7mzkb94Gr7gIhAJGd0fSAzAOuR25rdCdO15Hfab8nlGgSikeg/nafFNUk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1000921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEdqtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCJg//QPrmOgeB2xNn8sHrwFKaFzx4w5gfoXbKx/eL45p8NBNZKz2Z\r\ny9n4VvHZcB2Kt8yeEka7dfzeVXBc91zGCX1nFW6VTU+bvgkbkGcyM84fP1/9\r\nNul031rlbB+Y5i4lcPjivBEgEx6mlNnlcmTHsjd0XVeQQFUpBq8V+N2Okw6i\r\nhHdVCYrLBXE/8EoCvmn+x9BLONoVUdHRlufUwYEzbufi+9NyPp73D+8q292Y\r\nqWubkjgyFTPxc4emRUNf1/VWCzGZgqMJWIeblVzHGgswehihRMqx1CPxPACn\r\nycEoms5K98+XOBmslhJqDhhOknD96tBFs8Qd9WiPVmIAvMrR72d9Mg9vltAL\r\nT/oJnQpvDksF02KNL6wBCycH8/riTVt2xX337R7U7bNV2Gg7RtPpmh8Lettn\r\nyfbI4Tav0XyLTojsSK7IT9/TCP4DRu4QMjq49wV2jsz9qYq/vtMdnjXaKavR\r\nuiKFMSA9xb07HogztGmwtjEmYR+a1aramc+e0dq9SsS0lKHoRd5l3I5F8sMH\r\nmkM4rCYrAa3I44m2z1/zUrLZaSCLWw15oc89tZ0NWBnAu2xYwrL57TAl45zJ\r\nXXn32o3qN7uUWBidw4joBdK9P1oL7J1ISfbHkFmTr6JBcIclvt5k/sabxbrX\r\nNVOENBoR+oY//gHSYt/W+pvIBf8RZqQI1RA=\r\n=NJEQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.710d6b9","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.710d6b9","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.710d6b9_1662114477050_0.3444010947613607","host":"s3://npm-registry-packages"}},"3.0.0-next.lit-element-update.9f5ae34":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.lit-element-update.9f5ae34","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.lit-element-update.9f5ae34","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"cfb97d7a2140bb2c559a27845624f97e13e47f63","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.lit-element-update.9f5ae34.tgz","fileCount":18,"integrity":"sha512-sAhJIR0LWivUdP8pyY5bRnSBr0XDE03YU0eEnMYeV6e1X9mXlExgJlefxELDULzoNSYyXcnza9zMlxomEb7nEQ==","signatures":[{"sig":"MEUCID4BR4Xlous4sG9x5by6SZcASvqfQs+H4IBbETruwzOZAiEA0y6sKO0wbAtUlZanOUDEJ7SJhIWL/clqR5fhfOzH3iY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1001376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEdxeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGZQ/+IaSB9QMRTVDWBQbDfavUej39V8qMTODWu8qvoSxtGDMi1rkp\r\n9KAK2iyf3hmjt/H4cNlWGtfQuiuisrzQjeFburY7reI699DYaKh4KfgqBiv8\r\ne+Bz/XjJwXWngyCKZc6WmAa+ka9L2jOtPuH63yg51AoSyRGIFQC0t5crudSz\r\n1D0RM6KP7Qfncf2cQwQQz5JeaxcZzt9B/6cr30QB05cK3I7ZSN3XMWwom+tV\r\nRKYqfrVqZnpq1+HCsdsVOArCUHsst6pQVVOnvcJBL8IhvSuvQvN5Eq+qZ13V\r\nV0s4NwouLydgkqZ9VWSQIWbNr5Ae4Yg8ZD2QwQ+fzPuO8GLXkqZxNGCEUbzC\r\nsuHyXjubx87OEgvpcf8Gp3iNtmOJm5aOH4DvbI2o+GHdCtfGhcn+iCPpc8da\r\nADubN601sC3TIFNSzYa3gU9j9M192xwZEpoOuhOgjWcULx4lGmKFlC3oCPR5\r\nJtYLRPddWZ5YoUd8b9RMpBOSyRcN8Q0aqChkJZiVVWwQWJrmprejPm8/g0We\r\nPS7uqOjgH0hrH4HC+XKrMtaNFCNW9d9G97Z4CH7SKpX8dby32HtmaJFiycS3\r\nNmZmE7l5sWRDA0yi8DqB0gAx2gQG3rndqVlf3Wtyq9/66TIzPzxkP4Pyo/a3\r\n05p9ZsCPY79uoHO42hGC5m2J/wRUQhQz2bQ=\r\n=er4a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.lit-element-update.9f5ae34","@microsoft/mgt-msal2-provider":"3.0.0-next.lit-element-update.9f5ae34","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.lit-element-update.9f5ae34_1662114910696_0.6276210859843487","host":"s3://npm-registry-packages"}},"3.0.0-next.lit-element-update.dbb1f26":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.lit-element-update.dbb1f26","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.lit-element-update.dbb1f26","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"76e6633fe7d6450cc0933f8b514cda47330c2bbd","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.lit-element-update.dbb1f26.tgz","fileCount":18,"integrity":"sha512-wkLMoXDcefJZx6iu4E6bE3S5TnUMb0mw2qjDjqiQdEyf3yi4C/2PLZlJ01+RXClYbmLKcFTemUGa+EaZSlOtjA==","signatures":[{"sig":"MEYCIQCAU4LbI5bIhS7gdtV6kFF9I7fdyUL6XeNvo9Z8bEnizgIhANZ5k+46RQQ1gQUfjJT3KxtfHKz8xFgWCA5iO5uFPYN/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1001376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEd4pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXFxAAmcQ4L5s5A/yehH6Bv8I+fdHFmjsmQNlXPQqU9nf/eV8qZfHc\r\nyzzUfhaI2IVKcTJTflKobHT3SgzIBAMVdGYl4qqxjPkv/wvCx4f0iLIaYpfD\r\nSu1AqJqdlnt6KNafXYKHIrHu8NEbw5Q5kz1bx4NCBzj9jR5hnyyriZ8FYVqY\r\nsOKJiK6qi7elD6aZxyT3OdJZ1CsTDPAUHiYzQLL7/HlnUWX33k309XmfRBVS\r\nEe2hugxRp7yBM8BZnWcLwWOIyATFML0/ZnRMjSNS6j/nWhG49GQTNQ6LyVff\r\njV+gLLAVUoZWjN0xybxzKxGcwMXSjWaJBmpQ/VQvKPwUUz0bsGO8BV/XR/CX\r\nY4zyv7JdyvD6t9QLTumWvyvrW554gQcJAXBgweW/4IgkjKH50CT+dzVkd0XZ\r\nLGH3l5+depO5E9VRHgexBU712kxrrYJH2H3IhF2ZQbUxvkBHxdR87Ira0CRS\r\nxJEeYDxW7MIfsDwPe8T4ClrRuG/iPqbUk6k15qIxq3exGuA3oh1/ZF6nzW1n\r\nf23Zrp7G+ak8Z6HWLs6rc/8C2cxIB3FI75joeiOsFbcARZA25qZ+QWxZPEyR\r\n2qwav3PNXwRzyi66bItSEnkoIpPjcIqSaAb29wcYTVzBs/LIpOCUBzYKmS74\r\nPRDmV+mcERaUIzSjSH/gUkyPdoT4wYc73jo=\r\n=S9wG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.lit-element-update.dbb1f26","@microsoft/mgt-msal2-provider":"3.0.0-next.lit-element-update.dbb1f26","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.lit-element-update.dbb1f26_1662115369717_0.8468335359684309","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.7c782ff":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.7c782ff","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.7c782ff","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"71dd0c127617a2813ae91ff77ec48dd039cb035d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.7c782ff.tgz","fileCount":18,"integrity":"sha512-UB/UA01SBJO9bTLoxT6Ot49VK6sez6MGVd0RE18yWb6lkIDM7aQgSFvFOThl8qqr43JKRx+Qd2J+LrigHN44yA==","signatures":[{"sig":"MEUCIF/yDT9/1au4Z7+jrxPHXkck5z833VvYy0ATbNgnu8fEAiEA1kLXzkc/kJQFaY29vyUFdx87Ue1v6VxcZNEOT3QeHh0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1000921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEd41ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVcA/+Mj2I4M8NPfCWIabYpIylk/EcHv+pw997mxF6xC4Bin7jo3No\r\n7l4klBS5Hz1+DrttmrZS0x78ASNKyRpNBDzgx+3YkrURUPkol+BxSF5Jb+Oy\r\nVjN9pXs7Uln8RFIzTIOjRJiJdamZOTrKo3q++SSrmDy1sCvlcpy+n8MogRfC\r\nhEmMF6KOBeSbxKhC3LjXPVPqkd3lCvf9QMu/0Kdutl98/lk+paHnmYJin7Mv\r\nnN/+W1jy6ElSzCeqp/h6AasUmTQFicBUWGr+JsOkpVFkIk9NXQx/6R5LUlij\r\nO99bcqpqbgAAQpRpFRluPLvC4WzF3Hsmu+f3FmzMUszZdS6E9tUoizYeamhd\r\nCC7tyL3QQCWgQhfxUvgqxTw2JNYdsMkCWhS2eSRWdkBJGMHQ4dt6uiA8rjfG\r\ntRBXFuHQZa3hD5BsdUbj/IWqulVAxJJt2O5aDG3L0nzuW/omeoY5TPahMiQf\r\nPXv7DgS84Xy5g7FOO1pMj4GWG5PdwaeDbbcr+foD0+0iUZofRWzddadq3SVD\r\nV4AjK9wMmeEu3wAjJQlz+5FIMu9MRREgIdhrgm3mC3rj7uRBWj/X3tZz7IE9\r\n5qoug1/X+TMQ6rQbnE+ZYIHz3ihAVXvi+Rr0GI+I79N9zzH0TS3fo0lGKC+5\r\nlTWqiCPFujCPi2/1qOrAawOArWw1R4tgmFk=\r\n=He+B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.7c782ff","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.7c782ff","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.7c782ff_1662115381538_0.043777705598026406","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.8c99782":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.8c99782","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.8c99782","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8dcbbeecc5003344864f79f047655dca62dded06","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.8c99782.tgz","fileCount":18,"integrity":"sha512-sBMPlOQNgCBIzh5YFVgm3K4C/4kzx5noCVyZEQzOycbfGgUU1CSe/0dAsKCTw2gEjzqmcVuqYrNmQV0J3Cso4w==","signatures":[{"sig":"MEYCIQDZmKIjEvDx52CRwOGexJIVJxDBrCFynLQG4cB3wKmHLwIhAOnag6VEF+JTjP6SmyLMqfRp4piv5Fe1DQVXx9U7MnUJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1000921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEd5TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdnQ/+N2bDCd63TV+WdeuiodSQxzawFl99+k6t951A++ufvpf993PJ\r\nqa6/qEPS1gjHi59Z2WSqJCXbTPS9vMHqkD/SnN/3L4B7iMqGgCA7ONE6s3Fa\r\nDsAwDx4xcHq0uqwGWxxFPGnfC95mttFo6aLQyhVyDAP0cOAAJelIC8gZKuz2\r\nV4TLY10dEeKH2zvPxzpDlwYkyxUIBxgTJgggO84yV/sQYEoqFZ3yxQzcI9jl\r\nkeow06dx9VIFixYS7JJYUSiSpMezbXAeCmQMJN6PP5opXvsb47WF0TAdBmgZ\r\nZslxJzCin43iYT2ONiUV3eI3fsfLkd90d9noqfgJmDbimvX76Ovq95dkULbw\r\nyCgie83//k7zBeSYLp9pci91U+cG+D8JoF6/C8eZBeOVot2HznjWcV53++sH\r\niaWa6se0712eZdSB+0aBwe4G7u+3LNtDbiawZ3kHPifVzo1DvMKkZNbaoNy/\r\nJcpYpTiZN8CE8E/IvivhefxmQGYZzohP6C72Ls1b22VixxKdlyuB3Yuje1pV\r\nFu1IhCtpb1aaaJXIcGf/pPkzm5CoHqMRuAojb9tXytKFmgz0xC9MQtWK//ap\r\nEVunzoX5+8Y9oT3qShN7vGOlhGRnQm0SdwIuQFQQSfYdZYPlewoa+EoQkBVc\r\nKyqHr4vhBfjUE9AyA8ncuLARQx+zDFtDiVo=\r\n=RSUY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.8c99782","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.8c99782","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.8c99782_1662115411469_0.5522143578655783","host":"s3://npm-registry-packages"}},"2.6.2-preview.84d32e7":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.84d32e7","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.84d32e7","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"9997d38adde543b849326aeb80695fccc8a28d4f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.84d32e7.tgz","fileCount":18,"integrity":"sha512-OQ5xN8HpPM6xMSQ9vi4AJDKxnmUgTPtzlSL6s2L/VU+L9WJsBG1qlaVg1ieZaC1q3qqq9gfgx/eNkDSVf+CSrg==","signatures":[{"sig":"MEUCIQD07YXxcHkputdfcjmZsaB54RO1cVxeFb3bg9/5YXVtfgIgJaPRklXqeCcsBZQUJ2lemWPSnlXDIck/eH2RruvMyF0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEehSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo15BAAhFuZ6qG4qDRCUVwNiw8dmj5l3gi/fCd3ira3KgFJq1dkUPyI\r\nXX8svDBc1Mpo2W+jC+py/nA8cQnnnBXxv2IAGRNCwNoCfI0fJO1CdwRFTVxb\r\n1ctJn5KgJ+3klQ6hma4fkaJgQfPfRdSFWP159eq0TxsFgB6nher3KSyHM+mI\r\nQ8C3uzIscEdAo5HjSKJqGCgx7KBpfUO5VNyV5VEKlGl9Nqx0ZuyUEwRypSnV\r\n7u2Vsgze24VcRb3WZHdwJJX4zHSOf8+2YlyJFhvHTtXM7wwgsnzsPVPAcQjX\r\nJAwZJZ+j/WCOCp0269c+5/BWI6sF/0hfZ+1e7YQcAMRjL1PvtggGIrpEmxw7\r\nPlxJT0AVoCjn47ZwNb19/lCe318bTCK/PtKYjPGE6ZUf1HX7FuL+n2l5WslN\r\nuOtItzUXIS68t1KcR22ZYRFrJyJxrUB3rJSAQ0OrmXtQhVw5VBaf/S8K9U/z\r\nBSRNPSNZJhtJQZ3zVdzsYuHidcPXXwBAPc94y7pmMlYs2NzkyAV1K4+EHmKw\r\napJwRESl1lH73RK/JQfBFL3fcP/Wb7/SQsM8EuC8gO5dBohb1NUVJiONCitZ\r\nsESpgh0N9l/iOjjLq2is01vW4Hn91zgedm6dS1BymlvtAIqtRg0qDeR8zcHq\r\nLDjpULf4aEQ/LGhKnAPr1Quj4mGuAxB8YdA=\r\n=T7Ey\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.84d32e7","@microsoft/mgt-msal2-provider":"2.6.2-preview.84d32e7","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.84d32e7_1662117970484_0.04793723959401186","host":"s3://npm-registry-packages"}},"2.6.2-preview.7e6e7b1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.7e6e7b1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.7e6e7b1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d4e0274654e89c10983c01fa62ae3c8542df6031","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.7e6e7b1.tgz","fileCount":18,"integrity":"sha512-ZkEaqJ3Pln//tm/fD4EEHn/jfaEtAM9yXJR4BKo0fwt4I9TLlNhyi4xdAL+2GKYPHRi4DNUETWZjPIuTpXaVhA==","signatures":[{"sig":"MEYCIQC/uWvYOmwfwTxAS7cjfIqYIicfPiooWeLnrHlc6+AITgIhAL5o0XfKNZf10o6SbjOFYIqkpIMK/uLtBfdKwv+l+vbB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEfCrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoO9g/9HDlLjasa8i/MJ7uYvyGSr7q71EieOYDKX+gVHzzVg4rMa2TB\r\nAEZ1KoRQWPESV7OzzxZ4XN6ZXve7B0EjDkQRp/JR5EqiHt19VNNCR6TFCzPL\r\nRIqW8HZ63d6r4Miz+r6IgiRrN5yfjn6+g0DUgxSGSxuqss1cmK05MlkHlttS\r\nSnvHbDzQ/Qvv82Cna5qgPyp5E0Eq+WwZ17TlDFb0kddryLniloWAdjFF1NPE\r\nWPs4mltLQbwXPjysKOmfuz78KshKAF6oSLp3BE1OM5IdlOhV4r3cHmbodFcX\r\njok9UGGaXGmAhRV2ZeBPQyfLm3Cq8wUo7Ke4fy6596tm8mN4ryX3xY2JJ+PO\r\n+y7Whfh9LWiOVtFdJqsqur3LeOAxydNF0KNghPDzx0b2MAoho0ca5I/1ee9i\r\n9yXmB6eTvdM3Zvp+ir4repRgl/S3o+oYt3Vdd8KB0uae+ittQ1THpOfWXz4M\r\nhEE7mBxF1BdP4KWEsGwKJhgJyMXpAB/C2xZFMjopeat4Dr3AG17+NWFoJvuT\r\n7tK+GTRJJcaCA2aGVlc5MMBghKB5NQqFjpZGpZvBQcWiZXscfwixIVjuLGqv\r\nKghcv9Zvkubo3THMroECHm/ToNWXT1Y65304oJhBqHdCqnJFB00rwxHrxobT\r\nSGdN21NX5HdDqbruTuH7zBYbr0koBm9pi9Y=\r\n=XN6f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.7e6e7b1","@microsoft/mgt-msal2-provider":"2.6.2-preview.7e6e7b1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.7e6e7b1_1662120106827_0.06118987351436922","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.3bf6159":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.3bf6159","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.3bf6159","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"cd5f1537b8f1f57fb8e75ec29b119f196ed4ce71","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.3bf6159.tgz","fileCount":18,"integrity":"sha512-b0ymMzZ9vk1ltkgwA8OHXJYywhfUaqs+hT6sp2/Gq83zPXgy8Wrje0DyCPgbSSA2wOYsAexMhsLQurL2c14Q0A==","signatures":[{"sig":"MEUCIQC3Bfsh096yA9cal5xyD1O+D2z/gQa8nOBewdTQy+WzxwIgc7WgN5hIwOFwKJHRxE2j89XHADDFsBMLU2APoeQzcNQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1001346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEjiPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrl+A/6A9Ndm2WhwWKfJdfvl8Zj5BoX+uXQkFFy0LFrty1kgyaZpWcE\r\nZzssWjgvRzzBTnJwLaqwp77aHAjF7yFznGHJm+F+/Cfm46VMa07pSU57U/6L\r\nDtvgoVt/EgrrV7jhecJvq5LK6juTwTWhihZ6SDiMl8ba78SbagZkodwJTjxs\r\ngN43ylAa7aaP6diokNtMbz6xS/wGu8CCI8kbd0Qcj6Vrr4cBvpeQZOvmcqNx\r\ncLsTscOuYcwrePKsYmU2Z8QyN5i2DgSiJxFx8G2MFGHmqhuR54hHW5pp4nqv\r\ng7fwU292lXpgatpfhN8pEiksm8NY9AoxNVZANqc5Rsmtm6Sw6ih8by3QxhCM\r\ni5Kzb483cBZBhN24k9erFjfK9eeVw1jUPjQObhe2H8RaFcJF1/Uz9S24WdSu\r\nzkQa4NOT1m1fcpfgdFN0J10evriMZ8wkLGu75XE1jKeaqVEKXneR5SOpQECG\r\n2qcueF80k2fnB3v/CneZJIfD6u+P+ChprIdb2Rpqzao7d3S0OCHYY8UmKdit\r\ngrJMiHv4BWf+GHuBvwAvpa4DqlC86jDhi8C7oQq6XzWGxGVjTlKyFAPtiWz2\r\nq7WxyNqQlvl7lzQyZC8VV5Qg9+ONuvijIDAqo3uZkOG0/qC3vAesOirxQk+Y\r\n5uAUCVjNVEyDsmjlZPstUvA0UMF3scO1Rwg=\r\n=Fs7E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.3bf6159","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.3bf6159","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.3bf6159_1662138511606_0.04789574765894633","host":"s3://npm-registry-packages"}},"2.6.2-preview.652a6cc":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.652a6cc","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.652a6cc","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"01029346b88610f72c38b795b0ca06d1afb6abf1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.652a6cc.tgz","fileCount":18,"integrity":"sha512-ekNRk9KOzeVCXhPCagJqvlwQ/qiAvdc3r5QIggXDgwqIoYSNkrOJmT/9wP9Mc8i2nPLuqMYFlwPxeHC6f1+Eig==","signatures":[{"sig":"MEYCIQC7CKxMb6ISLusxS3W0zvxflZYv0XcINMMtkBbwSnwi3gIhAIX3i/71ToEkXFoCb0eF4fxtwGVFXS6uo0KMPB5un7zO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGIy7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr82w/+O7d+6gOnqXJCjrHPKmBOesU+WzE4cCoTogVHNIdCXPW4Dxlk\r\nBo+0zIkhXRJ3qKQD/ndvsDv1rgSayfZJbP6o5CAlAaRXaRY1a9Z344ALwno8\r\nbNCOTXpCstRFtO/1JNpBEC6CO/ECLi4+ksZ0aYodv9E+n4FXUpgd8X5JvASW\r\nkBnvng86AOYucMfz1+XHprkUOEWMNB0LMS6w1pkHGcXa2xscDvJCubeid8cR\r\nXfyw7OuSoXFBjRjBpg0YRBCckRohY/KuIlWcQzcZyj+YsnB2rkoSaks+1exk\r\nEh/JIO6TqOoIHfmn2OsvMlrdlI1qI5JNmHN58aMjH1by02ckJCS4hmk3dcr8\r\n0Bhf5NdcfGdhoqV/nZf6MuyeG7vlR2tH8VecNG8A4aoibn43XKeo+4Y+hLoK\r\ngpyuz/Fqhj+xzKtuvDUOBEyxdWRjk4TQ/Oih50gv5yW7MSuhbv/TxM3fGAWC\r\nUNTeJKKeR85zcTzTOcsUyASCf/abviV4CKBO1FSkRTeXabtvOhqLSF0PKGfU\r\nKQuo9jfgQ7o75vAyxUFkNQzlbsCvtTO3fgvwt8KszuFtG3LP67HDa5Kq2dpj\r\nawjdMT4QQZcayOHqfDP+OmHhrTFjcDw/cJnQuT0mexvrseQJLktpXRQsKtST\r\nP2uy0i6r6XfBJKw8go7SyatlqOjJKZSnZfk=\r\n=Kr9F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.652a6cc","@microsoft/mgt-msal2-provider":"2.6.2-preview.652a6cc","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.652a6cc_1662553275483_0.1682871374721835","host":"s3://npm-registry-packages"}},"2.6.2-preview.6dca0ba":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.6dca0ba","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.6dca0ba","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"623d375e1c6c6af8c99dd47b2ffd256d0cd5c124","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.6dca0ba.tgz","fileCount":18,"integrity":"sha512-UmbX0K2KKM3dg3CB/vvFw8LS5QMV+JgCcl9Hdru2QBJZDW/HZu+RrKGax8bbYjW88Bj9ntI9FtHt0E7wqycSJw==","signatures":[{"sig":"MEQCIEaYZgla9emEac2xHN5w33iegUZnPlzh1blgi384MdWxAiBUtMx7VXEWaY3HfHqD8t58Xt/+5B8urQL1m7lgPOXF4Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGcubACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOVA//Vlnlavs0nzEoykLOp6lWO0Azuht9DSbb2tQ5oV5Pu1cCa6yM\r\np/L6HPBW6zwV01mqXSl3OnRA3frZIOH9Kkn1Ai4zPsiLQvWtjX6ohTDAC8F+\r\nRaj0DOwamsR0G80jpm44OkBIQu9M+bP+a4qgbhZy0N3C43c4qQzabP9HXptF\r\nYK9pYxtWbtGmCaw6t1uimf56kB5Q8dBa61R6APskrzmJ2bwnLyEipPe9GIEx\r\nyReZxKUMGSVR3xl/l5CBwULJdJDQZwjky2CRQz7B4nlync/BpzTy7qfRd7xO\r\nSBOI/NNBJlvAZwiMVL9Qe4Ufq2QghaGU1sKavqBf95lLfEBVNbzlZvLndiBc\r\nIFOuG5X93s/56m4DV5loQismR7d8gsalTdZ4thdM5cXrp5TRAYa+dDko5iJF\r\nRAk6zyBBP0uRWdT/kJdo6YY5PZab2HJIW9Kpq2qMxf7MTlBWLHUBjg7Yw0FH\r\n44k5OHyV56uVA3oj/kNILzsC0EEVTkAUZ6SKbQu9E9Vc5nPHSRaQyERBvSkz\r\nHkGkX8rdUnpcft5r14IRwDQLz/6nWYA0pSFPYGFCvElH1ihliEhJCdvFR5ag\r\n0TICZgpXiYJR6FoPqJI2FTPETRwZd84dmBB/0tf3UEPsv6Su1K36LBKgqrw+\r\nt2kCH1zL/pe2LV22O1FQd5rkXe+xyqIdqtA=\r\n=buYN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.6dca0ba","@microsoft/mgt-msal2-provider":"2.6.2-preview.6dca0ba","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.6dca0ba_1662634907718_0.8327507172160327","host":"s3://npm-registry-packages"}},"2.6.2-preview.25175be":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.25175be","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.25175be","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"055833626f79ff6d3292f8b33791e943163dc7c8","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.25175be.tgz","fileCount":18,"integrity":"sha512-X8SdhAQE9VAfUaejYYKWNqtqi7+38TbcqSMjUPh7JuqjH8413omWNlp7xop4WufH/I03bKd3sGgDRH4HZuB/Pw==","signatures":[{"sig":"MEUCIQCMV0y7oScadTBidjjRpSQrG4JZ5ZKLkYne59y2EjzIQwIgW1IyL6MQ/qS8hVoc/eA61prDRdvUc/CqXPgaUW581as=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGc+EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhUg/5AcIwivf6Xbgvh8ZwIQwGZhyqyIqj8buy9L0c8IGCG3gPlYuq\r\naHhgt4n7b8FCtxHrif4tD4bLAPtl/p/IiGjsQZWyI/O7Bx2RyKABjiBd8M5s\r\n+r2DCsHky7uskgnG08EXq5eY0zn41jFn7tnWoPJbPF+0Q/lG8VLY+UQwy23P\r\nU8sysRk7ldkOC78T31SWJW0j0HqgrNk3rO1a6JipsWHXpj0MbYYP6dnUfREo\r\nrGfMpEI97SmmA2OU4zBT4Spumi2GCfnk2cWsU8EMhOAm95J4ngoLYtzlnOqb\r\npIuZRv9nw4CME41GCXdqi6Z2oCocvawuxvte5sLj+tnvSHJXX2NrGFsbk8kX\r\n5G8O2inMVFDF804mf2/3c4T/utyYdOZadlX1vae7zw8LY2YYTid/eyt0CdMz\r\ncv9oZtiWp+m0mLKn8guTMgDyLuZDSCf0u98cGKjpLJov7Jaq4xJ6Dh8gsDvd\r\n8lIBHzG4ta4Pf5dC65586cqPTT1j738Xx7+n7S1k8MLW2nN+wlOsks0PH3qm\r\n4ZveC9Et/xyklMamECvWR9EcWAEIqCN3ZHTDoCV9rTHyUCkj4j44XbTs7R0C\r\n2c5G3WbhwqhEtnViyOzzz8AorcTDX/FidRQlIOPJyi8nrAgsrCtsEB6ZvLGl\r\n0J4zzXC+Ge7wJFCnQ6iuotNGUjdU9NWRjQE=\r\n=WEol\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.25175be","@microsoft/mgt-msal2-provider":"2.6.2-preview.25175be","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.25175be_1662635908485_0.5622268776778663","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.a05b7aa":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.a05b7aa","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.a05b7aa","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"174e00597b73eecc52ec86e71a279d4a2f915a4e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.a05b7aa.tgz","fileCount":18,"integrity":"sha512-ohlDFAmkdT4BCOrQcGoAJQNMh917XQoce+12aqV4ZVPqkzgwwf4pefT41CtjTph/oqokte/THbSqznm+YyDd3g==","signatures":[{"sig":"MEQCIHhyNYEZzBDja9LT9G2Imk9iYXCRx5AbDOPcdasDKCZxAiAacDE8Ow2X/TdmMcGdhnJuzMAePg/cvyTACDQD0FH5Ew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1000495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGd0oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpdcw/8DdK3DSpNT5El2WUJEJAJpF5Eg/kMDqMGGp3JzaSMxRkxG65F\r\n5K9ovOyj8eI84Mw4d3d5qovYNwDNO0BKwFL8b5IlKXAVZwoe1F2fz/4FG8Yu\r\nBN9iD8OlUwQcvgi1R+Ug7D5THbLrN4PD/H7Rc3J23ABuvcKnE+BNu/SHmRzV\r\nAK9/TlzQy0Ml4lvCURwqW5tIuAtBY1ogFeU8L5JqbOuOy0nWEG1xsNy7Jx0Y\r\nl8dCRW3pCSRuj7xtoClUO3AkhgQ6l5btxRW4zNeJ6m4xaBAwUOOwidWtIJKd\r\nc8Ijy6FiILXwY60sYS7k419A4UdcATNgf+GwUKaPhd6WJwDr1vn4Kn/C/lH+\r\nEP6L1HrzOJmCNstVBXa5sZUtefkEYWjPnBQYK4nMWivYjgcdhpkVVW7eAO56\r\nUdD2BF2JgH+QyTkJHnTp/7KbjpQTfbxjM5c2pKdTiUh2zt3wLvUbQOJxuHNO\r\nrDLd4cPPs2CKyoEl21Fcr1KgqaE4IHrRBd1S4zFdPhhNNZPTXO++IqLizn4K\r\nezApj0PLhhC+BWemdHuNynqJCbc48cJt818wcBU1cS3GNCeqF/q0zG7D9Fp1\r\nfAT1s9CM00j3nL27fyCqXHmbUquajtP9CZizivVsIeIcTLZO7rZ01kp6oL2k\r\nhOLzeMgSx04v39xtIXLcdh/IH0OLwNHYweM=\r\n=D+Rw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.a05b7aa","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.a05b7aa","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.a05b7aa_1662639400405_0.016625878936984195","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.78ad2b0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.78ad2b0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.78ad2b0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d911afef8bc3792b44c3239c0ef68fb0e9e7860f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.78ad2b0.tgz","fileCount":18,"integrity":"sha512-E3rlUVJenq4/K7BCRpmZ5mYDw1LB+/1TUMpjxvnODPvBfR2jdr9ym6Lk9CT/OHDR3B6mEX9JpQPJmU26g/bjlg==","signatures":[{"sig":"MEQCIHKgdnKA042t/4vpDO0NSTiIad3EevS1cACMImf+6mrwAiAtME6Z2I//0svGB9DJO7ZGvbd2Ld/aIKFDSwS5uyQE8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1003758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGnpUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3UA//fekQNPNvyI7WsEOz6x3u0HPNXJNOUnPPBDV1Lkf0IEJ/poWd\r\ne4RZSw7UgSE9e4SsMeoWoi1TOru3B04wiPXHyYv2E4SDa0FGU9hoOeO1im8f\r\nTN2/2quOkyQ79hI/a0upIeGl9ClYhORKXh2biwpBWBzkBdVogDcVyUMZ3sdO\r\not/hNTBJRDR4MSiMbcFEQRqlAJ3qoied2I26OiL4M5RBDV8X79a1QsRc1bTc\r\nKG6HtH692t+YPu5BlJz7sNNRqse3/cNkUb1z5zLtNk+nCgWFT7d/AjmMx95h\r\nSPncafbLvTuTwNVl1cy+lE/ImiLHRqqBEKrIftOpWEv5fNLPG01FK9s+FBaF\r\nRL5RDNUJ4ZhsT5FckoUBwxOQzlSdAmxtplt2jdTTd4HJVob16AEqCSAI83A7\r\nAXJAhDjO68/RQbNJOHLeQMn5QwtfjamFLIc1CcWrpKQiFmnuLNe5w5olnRX9\r\nJRXsh+xTKFAbXvfwIXfgvwUXvo/waWlvJY6mA83eIBfn5h6O4L8e30ZcJ7We\r\nnI8IJqYJW/nphxxtZuHax823r6BTen2uxP32kQlLZPutsjWONfMN4vB1XW8E\r\nYps+x/oa6zmv+LFJzrQb34hNwnL0s8lsM7MqYmGF9W0iZ5n2mKWU7lfVDO6A\r\nk4UmqPSg2XExU0ZFXmthWXGiWXz6YPQZpJ0=\r\n=5scl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.78ad2b0","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.78ad2b0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.78ad2b0_1662679636563_0.0619708730939561","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.2bfc7a4":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.2bfc7a4","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.2bfc7a4","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b746f71bfe027f79647676c9f023e390ef5608e2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.2bfc7a4.tgz","fileCount":18,"integrity":"sha512-hxEyU33MY0K4kVJFtaJshC/MPdxWvfmc7r65bey5i00T0XSHg+ODBmEZgE2n4ZH4DliuSZ6NNfRjrfr3/a01BA==","signatures":[{"sig":"MEQCID6l7hSg9IeQAHwEuX4I9dy9Kub0KYGaJ7cnf2jJwI8vAiA6wo0gTwhVg9wGKQXCsuhal7+VfOrBoPT8Q4FY0eg00g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1004930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjG2OFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosSA//YQhZisLfeWaqNfkNUvWapnRrd68ODsWyvIP+twZ3Pe4DIJKz\r\nsnMGk/x7wQrz76XVMh5eMH6NOPi0xeDXEm9+BZlvqG7Z5/1rIKNiaUdd2XLd\r\nK8r9uxdRBIxpSBKxrhw5B/lgJyeQo0JnI2arNt+lDaoqq70LVbU9TUjQyNxq\r\nyv5VIPadrVu+m5Z1qhQ+tqitS+x5wH8zO2uIVHQz2bi2rUK7Xo6ZHAi+6BT2\r\n2+LiMXz5nFp2CS5/aAjyx1FFsTCKIn8dFNduaySlaVf+/LmXe8B13fkYYVcz\r\n08gGPcbeQ8E9goMg1SgdcuvQEzYchVs+cYA/TabfcC1+n9kOBeg57XAyFMgM\r\nbtaai4s8HkWspuODS8NnW30A+9N5Or7r9MjdTapllnYky4xswOxTU0v+lKrO\r\nc68MTLEUh15HAZ56VPcnnS9Jcyf98Rzl5ITIDyrPmZRyPj1bggIJJpFk+Inl\r\n67dvJ9cUBkU6ZNznefkCLO0KJu/Cl/GVytMRBrQV239aX1I8jYh1IELcJdPX\r\ndIKmMnnmvGTokuI9u6mAdzaPYq5ecYVZs2RW54OqHcBGr9E1acrnhORR7fBH\r\nDaPVSfJOYG5e4srGZjSTvF8JkNHrM7cUwhmxeZtXaiNxiewAWGZQEU8zG7WV\r\ndiysQto5n4Xr/FAgp6ArnhbVYTm8gPds/z4=\r\n=d3PP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.2bfc7a4","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.2bfc7a4","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.2bfc7a4_1662739332872_0.00748211728286341","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.6de1a26":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.6de1a26","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.6de1a26","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"0a50738023fe53ee9e0cad6eccdac264f46db69e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.6de1a26.tgz","fileCount":18,"integrity":"sha512-8vZ4kH0dBRTbv12tZLck3lzLzbXDnL3Tgexd3hsaXaneAspYJ5WGtKH9fFnAg51r8FZ+Rs5UPBx0RsZlvWK1Gw==","signatures":[{"sig":"MEUCIQDF9hZFN3YrqztW8lVu5KFRjHjfOA2dQUuEKcM/mIy0IAIgaPlpMBfBT8IvRH3qIPoO1miohdzPcpL8qwvIOALniaw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1004930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjG7x1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6OQ/9HfNTPXFfMH+dZC9JAgh+rj0B7aAPrfHz5Ol5KwA/YPNZTItO\r\navVt/WFnw3uAQxZqM465ibqR+Z5dO1mbp64/y5jhNHMqeG5dG04ddTQNm4od\r\nsM4m9nlISjlIxRPkxDN0qSJcjRVwYnwZLIorsW9MtpTIS1uJZp3Wo5dWD4Fv\r\nQ26XPI/QRv4f9t+ED11tDFDY8GVGjVr2tYYuUrIz1mRv2tRh8FgEkIkJfgZS\r\n+/k55vD3NUFKJtyUT03tv5SENDCDRX73t+2360vjLR/9TfAH+dxVkKsnMzt/\r\n0VA/RJXKZ3/szC3r7B3D956dvN+/0ajjcTLW049OmSojIn/rZpNR1sSHNhUV\r\n/5bcGP9PQVAxfpaVyvpNffbKRTMuykMunJPm5DYa9NymG95x4q3Rzg2ahA7C\r\nT459wLFxGkuNduGquhfMZtVe+vHgmNsM7LCuK3BLuHj1K0zAIzwyeULcrsH7\r\nm0iIvciRBjElq6MODPuGyyvXzazGvdiEINdCQp449uLf50Bg4Q5i3PxgKZKI\r\nhkgz5eRASnMEovmtM/A7Dv+b7NVlW0suecTlphDvkgiWNwxgh/cmEqO2h+d+\r\nWBugmi4eamG8WmEyVlVxxeI2A1ndPFxOjk0VEQ26KN9VpBwMhCrBZg3W26ub\r\nU7wU0ghaFFmcPUwKath9H/a939KNteRKklY=\r\n=WKq9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.6de1a26","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.6de1a26","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.6de1a26_1662762101560_0.5409920477507277","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.6628282":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.6628282","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.6628282","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"93ed985cabff0079cc5cdf5e1630ebd387799bd7","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.6628282.tgz","fileCount":18,"integrity":"sha512-nP70wjZLNaob0KWZ9O3whZiohIq8eIECw5E2vA4rPOLlMGueu1O6YRCmquMW0UMp48wIuNZCx/cXf6ACIGFZTA==","signatures":[{"sig":"MEUCICgoHvIFc7N8bCq6JjwSHfIgLcaqDhUwFjTFJg/P6RBoAiEA/JkQ33gcQp9EbJ7Tdum/i37blJ2PeLjXnlwQobA9JB0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1004930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHuMmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoL8g//bqD3XkeYlU4VW0UL9R8W2zfLwNHM3+D8O6rinBb5vBlXLBOe\r\nkiRXOY2XJ7L01Q9Hq20CZHyjlHxh5LKs0YcKV/aT6vd6pXURopsACafV+CcT\r\nIcrQloNrMcPhXxTBacR3LztxHmzl9TM9hJfjyQqn3Ahpq0zD4YNODzgrw3nQ\r\nxa8kVfXOZEgLNb1ZKV2R/BkpDEmBNdO4KV9+9liKeKfU4UZXuIgZj3S2qUjV\r\nI4jNXjk/6l14TGndXK3/g6ISVC/RUeHqOu/Ae1I6+q2q6he3kjJjkih4xQOI\r\nb2U3oxy2ydv9oD2Eh74BSbz05iF0z4HEPQEzgiI+92a/DYfw83044fI+VJtF\r\nOmXrM0NmT7VSBg7dh4WNu9TD3VMUJYbhoL2UU3m9BfusLrKKjAwu0Lu4eLyj\r\nzyvbzp+1c3i0a/vOXv1KexiCtz9478xh3e2vA2+h01zIjwU9Dafhi+edCEEy\r\nfjNH6sCTONlOpZZfIc5qghhDHdyfZgJLTBAKOP76SY1+0PoKfCZHj5nIVJKU\r\npiltReCvVMkwOGosWOzNu5klD5l0H2M0oyvcP8c9nmWFnZf0LkozY9V1QZWf\r\nNfd0h3xBFOiStF+Ujz0Iitqd/h9PtLD/ZstiHn+C/a0EQTn2w7G/XLg+ilkJ\r\ntAKonYbpxPzMuzftjUnXye3DTirLUCKBKP8=\r\n=xfP5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.6628282","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.6628282","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.6628282_1662968614532_0.7069118469230855","host":"s3://npm-registry-packages"}},"2.6.2-preview.b8d6891":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.b8d6891","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.b8d6891","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a08b3431e7d5b22c8bbedabd02201d4aafa687ce","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.b8d6891.tgz","fileCount":18,"integrity":"sha512-9O4rnyK/DeLqbvkQigaMmC9apDIB9LSI+OYX0v31Tvvv0WaqlY+pmbgxxWaIbenz94nOwx024/lT/a7VqPq/5g==","signatures":[{"sig":"MEUCIQC3t77+sIMywHWcaTXxXAm1TWCWdxHu8BpwJmB+jOmWvgIgZuDE00MWalJGUGOYZ4Fwpr3y204rC47dyYXFFWl46gM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIcLiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzKw/+JLj/nCHvMMqohgsYaFCeTXGqmNVja/T6Dc25rlE9FIUZOX6w\r\nPYUaChmuOAfwIWr/COOdcJVzAjI3ok+Mt1u6AMaaFRSsaauhk7jKEcxRuou2\r\nYEASzTnUl08lYMwd1WoMsmx1Tovz4zPSiny9VMCZS0U0LAKXwGkXIIYAJNBU\r\nCVLhxPIqohF1/o1Us2+X3YQTv/LMu8mRqd464BcyJVDRqsKUHewGHSWhOtdE\r\nR89BwC0ZlIQgUVvc93Xs7x+7ZcadCPgok5KTbIS5svX10U72XXRMEmMMl+tB\r\nX5HqLEPa46amctjQBEyEDQAGjk7a//yTnP7wgw+IB0egTd5CgEnPVXbubvfN\r\n/XYqvbQlVCvbQ4DK37lUotqzkuvAwNVfv5SWd2AVYRwbJZhADXaJDMC79DEU\r\nMsxw1zxrHWemteLA8As7x5gFVraXbZQsTL33rCyUM8S8vicQVIfuy7mFjBlL\r\nDTimLEdc+qvdnSL8rdkw0WYB/pGzm7TNfYP+9UTnnmeJCKMpywkBPoHZg8s+\r\nuf4wpvc9mouC7Bi8JI/evRlTuvAeUZTU0ErowVs1+dwjGb2xHqDGvgSqyrhy\r\nA3VH9LMPIbuqgP8Xnfv4bzAFadFTt1qtV008qG2fDfLv5dkJv9wuGBR2hezV\r\nDgqktdxckn024VRjlHAY186Oqvwo29NnCqA=\r\n=GhEF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.b8d6891","@microsoft/mgt-msal2-provider":"2.6.2-preview.b8d6891","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.b8d6891_1663156962584_0.27023120813876145","host":"s3://npm-registry-packages"}},"2.6.2-preview.2b4b09b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.2b4b09b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.2b4b09b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d3700ba3a9a67bc1716b20facf54e83efcaa3793","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.2b4b09b.tgz","fileCount":18,"integrity":"sha512-yz0FP3KMZrKmBfyVjmnBH3p8WvmDDb7VOxnle+AaVUb+LBl0yP4YzcyamhD8MgcPt2cvjmLzeQTXK9BCqQRtXw==","signatures":[{"sig":"MEQCICKPs401YuvRBIiWH+LGibvOOc3nzEQrpzrauqKvOfYyAiAZpkJmFSgNvfUOlIp1gwY4dVWfqjSBroV6AvasVmDcyw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIxitACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGXw//Zlpp0XeyQya49cf7IX3ohuRFgaV/Qr5wKzEpDNzvIqHv0P+Q\r\nngOaQBGwv+wA+WUPzrWI1HdGyi0mTzITD0pQkFVjReJU3EUvggfWGmwAaIlt\r\nclr0lJ/x/JEHg3RyYccwHC5zhQVs6Lodbb8WPv4H5hj0hafTX8/+ntZGwvo2\r\nFqz5w9IUpBnAaKxHBg24HAdNWAcncu7pL+qftz8Wi9E8g0++pdk/qRHhiy7g\r\nRPINQkV8c/cVWpzq6J8yPQA06xIfl884XCE0MzgEaLX7tzTes/DhssyCrOXj\r\npqPZ52tlbmgkosqIYFrYTlJEdZQeOuYwUiMVLDH5h+f0zaaxlvaDdOETA6hB\r\n8Wi6zwGJcu2NVO+dfUdXFC9uNHBiIzC7WwyLousQOGBQBKS3Up5vngq9TjE8\r\nRpnR1nyqSGZV4ERTV5W9tvTvzauj7CysCfxYb4fj0UFvof0Zk0zetBr+FAc3\r\ns/iJ7AiMceve/3Hgasiu/RwsRvRH/KJ3b08TtIXF+daGIu9Ni5anvzQWGrtK\r\nZl+bCn4/C6XEjfgGJ6tTvTq3j560kfwyTJWY058KiPzeM8zgV6eWEFhvwFur\r\nOgFT07+GtERDb22YR/Y+/8kVItBxrvozV1xaeJelFPek7EfMzUUEUfIuxwy7\r\ndf4tA/xBw1uMWB/aHl590Oj/7a+E9z0Zehg=\r\n=xxiu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.2b4b09b","@microsoft/mgt-msal2-provider":"2.6.2-preview.2b4b09b","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.2b4b09b_1663244461030_0.7632619012945552","host":"s3://npm-registry-packages"}},"3.0.0-next.merge.cdd49dc":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.merge.cdd49dc","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.merge.cdd49dc","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8b4c0e5540bf9ef90721a78a0e148dc3d4f6b13a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.merge.cdd49dc.tgz","fileCount":18,"integrity":"sha512-t9EdgvLO4T4rvhRxS5EVPRXFjcM9snr39RchdUgt5RENoJBOL2Gk9SNWHPP9DWn1p5YyMwn80zKhmiTlztw+fA==","signatures":[{"sig":"MEUCIQDLgvwftXaaF1BMZLLib15wJOqwT4ZFAV0jZOg0/dLPGQIgUkk9jaaqrgz7ef+a9ymkKwfwZlywdNlesyPmego54+M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI1xsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXzg/7Bg0NHea9FJAgdyVjbffZxwP9rs7xy/QvP+Wy21XMFmwst0Tl\r\naE7FqR/CB2Zr3slALW42YT5OB5KlyD4WYixmiM/wcTmO0asBxij3cI4b3qtO\r\n+hKbgp8BVlib6Xuo77/cgXj5NnfAPMqshAllJ8RzkAu/WSzHFHNQg1xj9zM3\r\nVAQ3aCJybevwsU2vkxFQ7ZfjtGEYqEV35AuoMGk10RYCsDcsCLpKY7+UqIKD\r\nxNKO9TcFiDmBAQmpPORkxnQRdlYYKHR7JH4D4b1Bdma2zjTzrm8Re2tzRyKs\r\nfSJX//TgBmVM9KEM+enI1ac8sawP+7xoCxiFaFqsztz5Wwa95xRxbCQIV6ST\r\nEk+JplFFIpTcF022hp5sPDLCtC5CHlW7HXcLH1Lxb8gztR9KFyHOkXriYdtQ\r\nsG/1qKgP4PvfDyzyUfu/qHwB92LLgv8bTvVVge+VaORNqRVcNTfmxeF4o2wd\r\nYdqLM/4jjtrK+NvR0WhNnvvX+hVEX4vI1Hd1K56EkfAGswEFBg9JWHdWv+8v\r\no4xAJ3m9lmhjbf1i3Hlquh3LwfLrVW1I9CIDanyA9X43UbBNShzn/ZEz+Zd9\r\nOB6pF4e1J+4qL2TcQGpthZzCybz3C+W/Y/r5h29dHqggL0Z73i+FIr8Afj2B\r\nGMPhoKT0izkc8Xllllv2nZaFyH4p0MZxAjk=\r\n=FDXs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.merge.cdd49dc","@microsoft/mgt-msal2-provider":"3.0.0-next.merge.cdd49dc","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.merge.cdd49dc_1663261804404_0.9754149877265221","host":"s3://npm-registry-packages"}},"2.6.2-preview.240f756":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.240f756","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.240f756","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"bc18e1e07039855b39b549df14b333d22e51007f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.240f756.tgz","fileCount":18,"integrity":"sha512-6uWNmsTLPu4FnXXmvtFuDrWPbEAKjRHwQbkjr5p9RT8qAsUTVBJchyNhBcRezau0Ljw7MWlngMpx1P4fV3dAJA==","signatures":[{"sig":"MEQCIEkup+2y7TUR1o2tcx0vZ3j/KAvXqCX5AWz5CVmuI0xwAiBJWImDSkpQKODsm2gEE2J8QuOcf2OcNwOonhkj3SxqMQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI44OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5zA//bnwowu+jDLJELqG2sWneVuhGsZrdC0CU47MucIyBYaWIl5ON\r\n6NoCXB3REHwWRbmM37Q/aw6Zo8CBYIqgKp3Ct/zfkWg0B/3j9SouJfmDEA51\r\nTkgQ3RCdyJ/NS5X2ZBv/MaQfs4dcsyx5/mNeo7XgPqBxn+afRllMNT2RsFyi\r\n5ow6mOceNSINwoAxzU9XNbwxL+vkzUu8gJd3ul5JJ82v5UqQ/uzh9aRM2urW\r\nNlui7wkPjX14u5mTDNXBWBP+dquncgtHv4xtg6n1WjBF7KXokG/V+JuedeKX\r\ntCnpFkqG0vNbLDcCBpuesdghfwBBJP+5XL17gMzg27DJxaoIbghDBL0NG8qh\r\nDVGyqQSVivQkdkKXvSTo10nZ8wEN5ksYWq5r/nLZYsXpho5Icwow2oWTOzOi\r\nAsnL/LdwkBmcSM7k6o7OwwAOTJNbRV2FoTRwSMTuv2v48HERS+CPrZXHgwiA\r\n2J9XJom5Pu33IeoK1ZUxbHlhlAJM8Wb2xkzlq6J01urSm5/bNTFi8kE92QqD\r\n0l+3HACSgq8kAwyWGVxw3qUScJlp9x920u1maQRGsvHlR9d7aCV05zdD3TXU\r\nuCPrePi4Zxod3HmV/j5qVMdeht69wG+zmisDFOGkMh8nnQgFUnJEQRS9ebKI\r\nDenydy0I6+y5JIXpHO3Zwjqr+zfyo0S5Ky8=\r\n=BJtz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.240f756","@microsoft/mgt-msal2-provider":"2.6.2-preview.240f756","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.240f756_1663274509860_0.80782760654317","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.731bba4":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.731bba4","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.731bba4","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ff6d708f499880f243ffb9b8c9954f6732cbf1df","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.731bba4.tgz","fileCount":18,"integrity":"sha512-9lj6OvKjsYpY87ScoKEYszJTlBGMvnhHGA/4q5o9FxrcI1pBumFFtlXtQyH33s3jYoy6+Rqox2Ldv65lx4nlOg==","signatures":[{"sig":"MEQCIFO/uGRgRiajAOEwjCyOCSVPL61+IWdBhLXM8hOVfJ7SAiBXtQowb2He2toEB39JNfrPRp3LMPGEMctpWpVpdM37HQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI46nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpqmw/+NwQaY4iLgPEx3bEVgjccqzMPOXesylNKVOvCjT6TULYJtnK9\r\nfQJKxaXPPuqRTV7cKwISEYNuCQPk5EBnN309E5rUhWUbg3gm5nbAFUg6Kbbn\r\np4NJIfzemM/opw/v8uQyZ83Clcqoq+PB20ZM09GWYi1xgnpvbCuuLK8zseAW\r\ngh9QYVa3vwe0Xq3IeyGOHJmCyEQ3ILBcIiZW65lGdLqh0NPJQMCFBDcauBo4\r\nStdFxMkf8fzSnYqr0r9k4OVDej/MVHzReB8oJnoNYkJKbxwYlnG0vSeuaca9\r\nCReMikYPgrIVPP7vhx6wIQ5YAfdQbvbUb4aQKwe/cDHwS4Gpibd+ihN+jXjA\r\nn8/Ix6Zx9rajTB62nt/KILYkrHcLoYd6sUiicL3gNXCLrGzRaRj7s0o57fbr\r\nHC48psohgewPXAPzB94jc7SuQ6l8evgeXPpg0X9sTDw4E+NoifHqqfjlzLbI\r\n3VUPP5R5mhi+2VAjr43lM14r9nrXZYJxbLLu8C5hqOEOwXsk3VWPNdoVYUZF\r\nA2ZCXrRLuKBaJzuQIhqT0KrKm8ShOhdnXFI7C2OCgmdMRPC+5/46PmGUUXsM\r\nVasXb7p5geqk8rLWjml3XtlXM9I0AWyxksJdijeaO3af4A5VGknUCH976nWk\r\n/LAbgIz8t+l2QUFIZ+++ot/twHV6nt0uWq8=\r\n=pzaz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.731bba4","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.731bba4","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.731bba4_1663274663231_0.6254612619968671","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-samples.bfd19e8":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-samples.bfd19e8","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-samples.bfd19e8","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"5b80251eb0f40f06d0e9bf0fb6c1eead78f943da","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-samples.bfd19e8.tgz","fileCount":18,"integrity":"sha512-Hf0x+b1WB8q1z3fpFvxTUwJz5VBDj3CNssQ95rnEMy/eP9j5hmcy2JfxmofTDDS1AB8B3sQoXAX9gJnGko2JhA==","signatures":[{"sig":"MEUCIQCsfJAzsIfjYKUkG3qQdvsAs7EOiHGGZR3RSKJEkF8ZMAIgdPm401ZE7hNXJyGvzwgyeiRi6MaqwWX2Dooftytz7Iw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":191568,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI71VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrD3w//UaHR3EBR0NoGHOBgAPzEA1kpsN0CwWgFMu9jD4FtqY/DMqB2\r\nzu3URxeQHj1znPcNsd0gHIH/2aoKpXAxTaOZj3N8d1sjniPaolN9fGEJ8Flx\r\nCJYsLB2QwXlCfhVdzlDCqvXulUvCdE7lte0r6PE8vPNYnnxys3QxzX+z/8VL\r\nMRlhtwtJvLdGC5/NDAVHN3wsyRDzUYMXqQI+6uclnPNF3ALjfNz/kndXe/6S\r\nA2NZWPsWLQaRrlhOgtiUQysyQ9WJDbHHupTLZRNQVBWN3vcVojNA4BYTtpv2\r\nJzefimZ9KgsACRx+j35+6/Y8NzTNsKKpVWXRoo1XrNsFixDKIj0tN227HAFs\r\nuR0Ot1Gq+rQdRYRUp3H/1wGXEy4Th7g4QcNIpIoGb2DEtg8WLj8JJ94dj0UL\r\no+nWgjjJrVDiEENXu/dVTCg7Vhjyel4PRqSgG7yUXMjTsIfa7aFY7GaIGp2t\r\nVJj1XuW5d0anDI/rb0M7aJl54RNkHg2SAQnrohuCDzJi77jgKOOqCWwQCp/G\r\nL/QMSbRYd8oHJOcwHmCJvkifo2Qark3hWju2ybjVwQd8wivf6zpaTbKlgDi6\r\nG2pybyribozWDEc+fIISgDyRsEjv7mBCojO4gx247jWS9I0m2xXrCB566+OE\r\nmKeTcts/F73jmSDr1fCvq9nU3jK8llR6Was=\r\n=JMfz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-samples.bfd19e8","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-samples.bfd19e8","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-samples.bfd19e8_1663286613545_0.49820784506928795","host":"s3://npm-registry-packages"}},"2.6.2-preview.6b44779":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.6b44779","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.6b44779","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6dd02634fcf1d39548edf7e3cf590294722d33ac","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.6b44779.tgz","fileCount":18,"integrity":"sha512-ehdv4mIN/xTMuaZiSBo9OhSH4vfgyh4c9RPTQ3ueHo6FECXLsq7ANMqHqtEBqRflUVMjNV2Wxzo6jtW1OLnQgQ==","signatures":[{"sig":"MEUCIEyj0bM+UdKN4bn630FS+NQaXUGAFfl6QM2+s7FaujJmAiEA84L6Na0GHDS1sc1Awt63bplKegY6teSGcz7IVH34nBE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKnTAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSYhAAmzOQRqirBII6ace1PA9sV5APkRIHnkmwrmzl9emFv1ynz3Q8\r\n7021/zKvO7hRshKx60QEwwPx9HjVc72xST6cgQwtyOvkhOMpQFWuLMOf21zQ\r\nCc4Y98JbRlNgNFAvAUIcxuH8/j9bQaaiwrsrVSNPn9cpC/+JFHoUD5QvwE4u\r\nHzNbcEfrKr+AuT7AcGzv/A/UfuxIEYp+LUmsESu6bXzwlNPsvvAamoZqaiUq\r\noUZCtOOxV1zXbx7uD515CVANET4f+xqx0hpJNU2nbEzpg31C/pfAdw327fH5\r\npAo/+nJLuzriUhx6bimkgaRA/qfgmG6yAfNQQWiw/JzDqLkA260urzUKKpme\r\nKGb+tVDVzQBloFfy2jJh38t1TRiD191gb372SsdjzkotweTHS41lCELzMIBp\r\nPhShMZuCNrG8VahmJZ7RghNOnB9rNymMcObIDYjgLrtV6RulmIFiIq2Z1gST\r\ndauZ415W098mC9KuoDeFSd7P/fTO7cEI+MJXZP5ca19AWzQeccqGpHvN0zCA\r\nsB5QVVLyN/6pWFHfar9EyctpL/n6trSXXu9rdpOTH9M0+bA8bY+NT7dsBmmH\r\nCqt9ZRpCa9IxHueSIXIVpO2fzRhkI6Z99E7SE2V/edKd8wwte5OZZr4cwHNg\r\nCPLI2HPuTex5b1CaPuO0Sn+EWr7KqvBxelI=\r\n=J2VA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.6b44779","@microsoft/mgt-msal2-provider":"2.6.2-preview.6b44779","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.6b44779_1663726784697_0.6084377486277033","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-samples.29dc0f9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-samples.29dc0f9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-samples.29dc0f9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7763b054f5c5f99072a17125142ebca6861b5b13","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-samples.29dc0f9.tgz","fileCount":18,"integrity":"sha512-11IdVFDZX2+4JJYNS/CDskfahr11a82vhfoLAyeS2Tg9tQ+T1iNvZ9VSHBn+zNGGcqXDcUNh1m7Bim3J1XzBTA==","signatures":[{"sig":"MEUCIQD6qIIIe9QrEDvtcn+a5OO1/OSCWInNtNUYC4aZknHr8wIgG7QGW6uAJd/+YRu/2GZzbGqVgEKvDbuONHcqxHsRhxY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK7D1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq74A//f3em7MQbU5PWO89frJrfFj/LlIK8D7ZF6b5Q9PgEe4vJCE+u\r\nNg80LigE8u4PNLvu5DcQRfiC16Ub41NE8y+GUxCykowHKUwrJl34D1A7y+yx\r\nVhq0BZVCy3s2WFAEqs5TsBhfm2opG2XvnGyiBjgMEosEpsi++X3iQqSUlz/3\r\nEq+fuJu/sK2ZrUMfnNb52ImAx8aZDTckoAXFnXnAHO8vRGTtCVcLte2H4Y7G\r\n9QZOXIGoumRTGDbv+mvF44FJc9Ek9TWnSpm0DmN4qgXl5o7IFCCMGB04DLd5\r\nY8rQQruWyxmlPevnU8KzvRQSUOpgsA5E4Ev3eeqPoqRAAPrKjQVIvUQyZWTz\r\nl7Vj5NMgy0H+qAAtjoLtelCodxO2cWTq+OJfXtJIUYEbiGXA05/fUO82zYOQ\r\nms8s7c/Vt370c256nyswDkjefatWo3su28f0x9S86KaKlsysu8+/xyN/FjN4\r\ngTfuycRjn0yj7Z6V2UDs8eueSMV27C0stu+HTtiokqTIzFDwmJPrbBtgYJrm\r\nyXqrQv7JqJA3DY4WdSmO7/PWGWCpIkJ8C+D4Ib9bLS/Lkljlhivipifw5Yee\r\naxZuNPXVvpVFduZBGBX+cbHi66OPdpSVkdSOQGyIttvPFvsYwyA6aBXvjde8\r\nlodC00QJ4oBLiU9JMlRBpj96aE7CsjHsPkE=\r\n=bPZp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-samples.29dc0f9","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-samples.29dc0f9","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-samples.29dc0f9_1663807732796_0.5156394230842654","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.38d8b01":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.38d8b01","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.38d8b01","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"43c680d96fc62379bedf9af4266f679ef90caece","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.38d8b01.tgz","fileCount":18,"integrity":"sha512-COXFaNgXHuNpYZtVdnrK0zb+G/C/7RFczdYs8Y23rmEq58ExPrU2tsh6a5El+jnYtxg+uqiCffvavx+xHeO3pw==","signatures":[{"sig":"MEUCIEL0CiqylhJ8ym3mFb4MGoembV5h+jUUgrg5jfC/ZvzFAiEA9S/YHayAcPkgyt1DX2GQk1jdj7inkdsql25aPBJ9PJ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":191211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjK7I+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfFhAAgWu5//Inlu7IshM0QWT+FEIy95jvzVp5u2DWcdR4cyQC1rvs\r\nq3xL7aewjpYE13ZsRkViKLaxDiymNV2ZWJG0sgBYlP2IFWfqh37DVZFrAd4u\r\n5bKHF8s1PvFrgvqRuuL07E7inxYJ3+SDHj6C+FVN6my/1UDi/DzhgKvMi4na\r\nwmB4CmXzEIXWmAQ32xMBmgQvu4tWLNxXuSl5M4B7rmYl59mNVhk48TqHQtUq\r\nZXmTsiQQqD+B9WpXDHgH/mMnETjRj+Rb1CxOM6h1kpAxBR25GoD9fGzZSj25\r\nhshK2kW7xo7FMoGJi/JnzawqPo4bs5c9jO0bZWVuxyTi9EL9vtQqraRq69gE\r\n9nVcHMKwQ1finKa+GCX20514YNJ/4aEZZuWgoIojRrvdQy5jk3Z1B7LJlQHW\r\nnbD2vjj++7KLjV6dvfpNTLV53KvyWdAA2ptad9zqNWJmVXRZlAL93tnrnuFB\r\nUpLJEPc8wMQcT46Wr8XG8mgiZFkuuF3i3sRfARb2J2f8+R77Uo0p21JUsmGj\r\nFMXCMHj32S9NlXw5VM+ezug6LAejVyKSGj6O27wqlBjKJU19kLCjG6d6xC44\r\np074rMlTvzCv6+yuGFu2E8BT9POC0Gd3qWTXIKCam7LmLWgTzsvU2Zkr9eXi\r\nwCOzQS5vftFcj48jNOfoGFzE2qfbspAKX+k=\r\n=wtIO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.38d8b01","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.38d8b01","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.38d8b01_1663808061947_0.6106386336893725","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-samples.e987922":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-samples.e987922","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-samples.e987922","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8090c1f64efd80ae3dc573c62fb4f505ca10885c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-samples.e987922.tgz","fileCount":18,"integrity":"sha512-QzwOL0F69qJI1h7lZqJERSC8UAQpp6PxcVuGUaSXXiW+oigFhgGS8OY4DCKlB2CtchIhbeLaWcNPVkfGF5Egnw==","signatures":[{"sig":"MEYCIQCaCDz46vC5ylDyJFg2f0fETE0P5yMBaJ+pjuancMXtnQIhAP7qVOGgodCRv42Dqb3Y3NEikC9d5ZNgxggXhemautFh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLI1BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq65A/+KvjhKA34HNiUABpFq7IAWZLu6vacOY349/Gp9UI2hzsHbjAs\r\nxzSwR8kSm5ClXGv/rj1wryAVS1Lau2ja6fNUBJbvXTUo7K0HQq8l4jmVxnLs\r\nVKhhKqlOEdkfqbek7XXDwtPFTtY2Fl76W9p5AELguGlNmJrpHvX9PNdHO8BB\r\nMB5jqNgli7MQrcF5OVSX3HwctYa8gOQEdG6uoQ5D4jnMZnpSmX/t+zg8JnXb\r\n6vxm8+G/aRehMlCBlrl+7ndikBNtppZHBYUfOFHbG9tPX9c7Jr1F5m/Y8bJf\r\nYFQMYvbqsi89DeuA4B0B84X4DqV/2QkHrnG+8gtxt8UqRudlsB/reONmzpKB\r\n2Ub7OAuUaFYYTjVz3jAG9eQQNSjvDQ1OibdKOpfHlR8xMrlZ/jAdtTzuzOWm\r\nIpgvWLOqMTQrOgQ6aGsTXp+XrrSCRTLzHm+AfnPC58KqzbU/VeJv4DvZe3ff\r\n2ZTDcDSxG9YSY6JWj8F/REmVdiYcXrcli4IhI65iCLIt9FHwtgap79aOknnL\r\naomNLFeBWiOGUWb+O9PBE+SBzWvfNwhERQgkjGu8jKI+9lHQ/E70aPdp3PXH\r\nRbTIy/IDRX8ZzufbWiM2Q00TxgF9kPk2kwaIAfnRJ8diLGnSlXIl6jsKQsGR\r\nyPUvf3AAheSPQdVREYCyldWcwhk5/RAm2Oc=\r\n=F5NG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-samples.e987922","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-samples.e987922","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-samples.e987922_1663864128867_0.038855773031226004","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-samples.6363b76":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-samples.6363b76","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-samples.6363b76","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"29b7acda2033b42912e78e30f2f04ed08d83dcfd","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-samples.6363b76.tgz","fileCount":18,"integrity":"sha512-Cg4kvf84eaieeVdoqiGozovq3mBZmGn1DIKTcUZfVMrXEY06Ru4AiKmjFUMaTKpuUkB0f/wq9fQq3VSXj6R/Xg==","signatures":[{"sig":"MEYCIQCmAZ9qJEEwUtjjZ9X4K2SFm3XPWBpsCxZwH2ztlmNJHgIhALqo75pf32lSRrdkO3KKLCSMruEOEQSMsP2pyTz/mR2Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190685,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLJACACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSjw//UtRE91YBSqHza4mb7ltOWkkEr1C0cLMHrP0ef0MnolFK7XbD\r\nE/qC8hoFSqg4FCqrLn3wdf9EJEg6JH/TMtetq1CbpPpQwhris439kSHa4GHA\r\nOJWH2ngPgYhJDcVS9GTzczWRf1i4KeMtZ+Qp/f3pAaa8v6yhJT0lk2voo/Ni\r\nPm89kJZzDT7Jsid0+xo9kOwc49Pf4k8OR2NiIJMrTQgJ+KpVx7D4p6Cbjztw\r\n3sl6C58J74+GKNtcfGl+HEP+I3/AS0zEqk5L7dRaZoFz7jN+5K4S2JFrccBg\r\nfeYzdIPEDUsUqXhgQlXv5bJMfi7rF4wduLahUOOlElhWiZBoMY2XQnPAfIdV\r\ntvpPqAOTx+q2eHBHCoygR27AYIF1ljfxUAa/v77y87BeshF+RdvWds/SH8Ep\r\nPv/SMQK8QrYxmOn8IE9ONOYygOkUxt8km2yqWYEa1Rgmmn42GrW1cdxays/O\r\nx5z6d48QbVXL9BTbdtYPNNF+pkEt8DACge2VsF0h7xglzyGdidr7AsS6zeat\r\nNccNz6XSDDsnPkZS9IOVnAhNv8YY6JcUthxZd4/RUgXBzJffs14Q6kBKDiz/\r\nYvpnA6I83o8X5FF1iNQMczHe9caRQpGKI3VsRHhOFH/1gUr0pJq6t/QbOGgp\r\nIUtT+QjcEGPBmtcQIakSSw7zy9FLUNCxM58=\r\n=3LIa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-samples.6363b76","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-samples.6363b76","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-samples.6363b76_1663864834739_0.47173252420599443","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.244b27c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.244b27c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.244b27c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7d0bbc3e3f44162b04fd6afc7d1b157b736a4c28","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.244b27c.tgz","fileCount":18,"integrity":"sha512-/Qpaq93R5fxK+P/UNtlvA5gseoXSayp5ccXvGK9IAxgIEv3w7psMVE9DsQOp1ZQsCpbRejpkhaYJ40DIwU271w==","signatures":[{"sig":"MEQCIATEZJ3Z2ZwSVgZHnqyP2RkC63KID9cutQepTcGqTjQrAiBUTBKCBNxw9TrJTbwUQxUow1mlm/3UfKuoMpqOGULMPA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLJU4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVjg//erAn1JpbylnDDk02KGNX1iPsN7y7DDfLXhhwgpq46jUuM8j/\r\ni5XEG4b9w1RQSyJsGnbQC+jur4K4cKTjDV3vGdoA5ribW4q00KMK8e2xgc4K\r\nOygRA5otOoy18vXJdL/bTamaIa8AqHJrLwICmRlSNOmGgcy0d+NIzEI4V4UJ\r\nrJKhWSqSBc7lie73mA6f2EodAlJJUzYZaWZNoa3wHUJdESBJwzT0W8AhYiTv\r\nh3CBg+P469dx8ciNBM6iCMz/6TqFvVvWT9e/JIkZYG6358aeYWGpr0/GovVs\r\nV62oJedSVM7uUeHXECfTUVb+148hjoFuzKrYLsqyX0b2ENew3N9PINa21vd2\r\nQ26VEEcwEQIMBkfogO/pdu1gQsVC7bV0Jz3BWNKhbVPJvjOZR9YahwKNKUm6\r\n1aDmM4ffO/UQXwlQmvDpMGeHs4i08v5QtXd2EWkOoJVf1iZ0gDrpX5qSgdDK\r\n092g4WvVbpFY/VP+W8F+ZFZC9WxBJddfyPmjRUMdDeLj6h2KNH2FXSqtgfxy\r\n5UUbznnNi+PrjSgFiGaXUUBfBjrn6XR3DUIaX0MFoCovXyyepD1eUZPr+ZZA\r\naqim1MlAXm2SaVB2DwuLWTOMQ6iAnyCSWfdshQUtnnCuzKb4u69pa4oXho7+\r\nHkBul3oAVwJohv/E73Vdq+uVnhrkv0Qfpu8=\r\n=JPeO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.244b27c","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.244b27c","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.244b27c_1663866168112_0.1884197376080543","host":"s3://npm-registry-packages"}},"2.6.2-preview.37b4cf2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.37b4cf2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.37b4cf2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"72d6b33f72eafc4d2fe4889869d9f0944f4a9692","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.37b4cf2.tgz","fileCount":18,"integrity":"sha512-E/NMkXY5UO2pqiQtIFnSbB3D/Mn3wtCbirehXbtuy0Q7MJXSHU/KDy10szA0Y6PWCkXzQWmE2DjERemQ094gWg==","signatures":[{"sig":"MEUCIBbnv7H1rLnXdTcpoM+ozfYwSGFR4+c5my7+KQCSDc1nAiEAijtjy3LzNMYhAbpVCzoRnwWq0w9DS0jlEQqd6Z/edio=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMra3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoulQ/8DBr3WLFiZmudRetsB0bgPrLsT95UghKgoIxZW8wZWDQjaZsV\r\nzAVo3u97sNcBRI1f3gwEj6BfP7FouX/zC8LWLXsO8i4Ha+Gjbjn/BhKrd04B\r\noKqLIYkIyAsqhmQ+n5CieLgryKChxAqXx7QDwbBzH/WZp34FwGKte8b3G66j\r\nhetwZvmUADp8it+87abhmEc61CXkResF3RRNfMn5HJYByTANochSQBVodZkQ\r\nuCCoHVtVMkcDMAZVWsUsgSnle7FzqUyrz0ML1dC7v4VYwUQpEAYkfXU9+PHV\r\nwwvP318xMYtQHr9+N8ED559VOphHtzGYyaQM83HBsmMQ4DEz7cvliqO/qeaE\r\nnncQa8dpzuLx7woFQ6BK2YDFOS0dHWz9xkzuljl8cMZk2GDYOL4hsgX7G6d8\r\nGHSsvTA/txR6k+U0/bIj5sYglYjIUP8kxPoy0OQdJA/KZJd9k6RBxufa/j1X\r\n56vcueNPD03PStxiVIbmTM8gojn/wnQJ686tMrZVVfOIeNgbycA855gCc6Id\r\nTbQHm7a9KlgWd+SLET3+3GKHe890cdFvbGXHlaYsgn8jcBLkZqDRdFZWv0Ab\r\nTNZaQtKsh5pkFasA2CJDkV14Ina2Eq7OaJO0TvEeBPF2Y7UNF8t21o9XzWxf\r\nJ+RnVLlMPgip21BXHGaibVw1RNQiWeLX7U0=\r\n=NyaS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.37b4cf2","@microsoft/mgt-msal2-provider":"2.6.2-preview.37b4cf2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.37b4cf2_1664267959782_0.8594353289862415","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.21549f8":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.21549f8","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.21549f8","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8ba82383e3bd0d3ea0ebb6f673a8189b6abcc845","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.21549f8.tgz","fileCount":18,"integrity":"sha512-00uqfycRTC7x6D8GQXWXWQuDyjGqcpVP31cM7au55HYGWz81/J63KyHPSvXm7wQHqsR5IT2q0nNbA+hK20UOZQ==","signatures":[{"sig":"MEQCIEhj2+dJrSQatx35uGlwXCNtFa50bvIEonLT7CzNsK4xAiBv4wsWPsidoGN1hnnsIyUrixNOf7WbSxC3Gz+hGinK3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPWuWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDPA/6An9bc10dzxPMxrgi++oEGNjQWQJePldzW65+DsKD9oqj7aSX\r\nu1WNtazbaibq+QXpiXGqIudj20ugmUHp0XgrStPB/qR0yR2O1HQ940Eb+MHH\r\nQZfvCDHeVvRr5rwOZ4KzFgSkS+sZ3aoyIl66icHus9CMqfSBAy8PdL3rBdHD\r\nEpphgxCjnY8RO/cLTMBj3CwJdY6VAAbB6U5NXbuEU/NBu188SPEhCA2ZyYuG\r\nFXj/v5GA7QqfAKdSblz7g/wOIp/FljZ/1xrXwB8rMw6S+MKo+jo4Y2SbOmCh\r\nZ+nYunC2Cl2K1IpMb1IswrbyBOZPsrLk1jkHWz3zeXOJrOmpFLtk2HXrOGYL\r\nP30hFTjXlxu2CwhuWjtQEVVc3wMe9zowsp8N3P6s7CzXWVshOLBkZWf6/OTb\r\nD/K+uxuhKH43JX1yvFxEemAWnnudaWSSDNClZULLWf0MVqmIh+8W4JBGjN8v\r\nfXVXWZ+vtv5llmrZvXYDZW+6CKrrtAT9iaS8JPmmdIuvbgk19KU5GKDgYNaI\r\nC+K/ZTmPIualUyukZaHhEofytl1Tm2GxmnH1+69+KsKNiEKmfI6P4tZSuzV+\r\nXHD9YOQj67WQ2rnzUGehlOwyii/o4SjQ7RuJ6e2WwOhWVji/6A60wAPc9WdO\r\nfLVXH2RIEtrYkTnK7OBugNnr0o73zLvtjfQ=\r\n=7in6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.21549f8","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.21549f8","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.21549f8_1664969622364_0.8100532563582346","host":"s3://npm-registry-packages"}},"2.6.2-preview.3ebaa98":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.3ebaa98","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.3ebaa98","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4f0f15c30fb30c47687d9c59fc02fb7026ced69b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.3ebaa98.tgz","fileCount":18,"integrity":"sha512-5DKnzia169dGyrTiNLpMDW+ply8ovd1ICnYBF5HyXjswb4hquSolJ0esKnFrjpeVy2/WdimGsVKAFppgXT2Uvw==","signatures":[{"sig":"MEUCIB2dGt5lKEC0DbV//BFoARhUB/HyGcfl7t9IEYi3iE2JAiEAzum1mRe3X18Igdsl1vsU0mf/p6iCCRNnw5P27Sfgwhs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRUQ4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4Hg//T7LVG/RKkgF0xS0BrAyoPr76s3g5yxzz5L/yAoNL3+a2ADKo\r\nZrUlgLl1vQtEwhT+b9qQtQTiMW0u5WH3f7IR8b6t1H9POsCUjo1gBYaF37VZ\r\nG7HiesNywQxy7kKzJYC4FHd0utJbhZJNEPFElnimnztVEJQsnXH1tEnRnhX4\r\nruHNPuYlFKR/XqRVcSh3jQElWFSEBRbFmlnyLm4cBX2yjZ0yn1134a+N6xfR\r\nGTtuD6ywrPJJNdTzyyDFnQ3SExI0z6rrnYh+MAKGFavrSCrFsb1BfT6yd4iS\r\nzsfql/8K7ld+RSrXQpIc3kA3ZjWv9haYgJr7h/gubcz7624Y20RCLxDq/M6c\r\n+a9WAOmfpyhvIs3g7qJAiH2PWLm5Xn1HfVAx+Yiv0GyKKT3W+k4qS3cv0GYB\r\nZ5BchpRMy1a0zj7eovgMH92GUuCS/ucfVZKkHgynNKNMNe2X23ULEK68LBfb\r\nIQpAgvHH53S/N00fdkkUHYKV7DIME3fS64x9lAydU7GjekKG4nWmdn/Iq5Mq\r\nQDUYZJK4LZfDkKDvAhWhjB5h+HiGY2pbbS82wD5WKw+K/NN1aeOvnXROdLBn\r\nPqQUH00fKLjZG/HT4KBhn2hlguZdgLQ+k3Qx6bCwWo2RxbD+j1T/Os+ApZHa\r\nR4HcfULFGgbhmGB8hXBFwsTwo3rUvYT4654=\r\n=UOYD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.3ebaa98","@microsoft/mgt-msal2-provider":"2.6.2-preview.3ebaa98","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.3ebaa98_1665483831912_0.826303459416678","host":"s3://npm-registry-packages"}},"2.6.2-preview.4164940":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.4164940","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.4164940","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8a2086895189078efb1b6e92cec934ec61cc5905","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.4164940.tgz","fileCount":18,"integrity":"sha512-cdKeu/2v4QUNrHMqfZ+bHo9hcfmN4PKd96qs8f7HVQP9BM1k4i+k8TDGpZ6oMZLrBJIIlUFzhqzqyKkTRhcB5g==","signatures":[{"sig":"MEUCIQD+8FxD39/BxwWXB78qAIl/5ZkQ+Y4A5YGd2cv0NpVZcgIgZbwIHwgg8eGclePwYDT8IviMhOcJOmYKdrK6a0JXexY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRUcxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmOxAAn6DtckFm7MlVMRN6XfQ5ax9Mo8qCMED+xjeWKDxp/3Fqg7bm\r\nS9JcwNtMDPbq7+wZT+Tf2yz5mqO89shc52g7V1/fgYNy2zkJ4EYr44QJqyCD\r\n1pNdGsT+dnqRBcVwk/flrWDKsT4U4Ka9G+rh6kgz9tDo4dMF46hPfS4Mj2bl\r\nx08ErCTfoMzNaFdxgQikB1Hg6i1kKAJj6i3MRKI6GRSdFoMVFEnVzh2CyNp2\r\nCgjJFpl9BqyYzCDRNuxb3iA82u5mGaOwkrnZsltBTCqftQPbyAsgcnhvg+00\r\nmDl/XM2NUHJmY1PqNI6cHARFxpjvD7D0AXAMKXZ6b7drYsvgxoME3Wdh3PsK\r\ncGP+uAegdHCXCoQShhVy9ba19lfhKnoNxnJzgxPAgocJr80c5WdM6dTqCyur\r\n6t3+h2tdP7E5Q08CNsinksBL4z6Ylp6sJWlqtuNqiub+RafDH45Yv2TDQNru\r\nK3OymDBeSTVf0XGA/ZXN78L6GH2FAyjAoClkBc5QsIsRH4vjOC9w2CfDatk/\r\ns1KDW/Kaj6cHIR4dQATGUwOmc1tfYKRVhux+4Vk+I6ixVi6uhe4YAIkaqqpM\r\nPA2IWdTBv102h3KvGBj4PmeMN6QH48wJAFsfoCfz1bPoXa9ZpVnSLLWCVOrD\r\nZ4+fgSo2d/M1ucfVfQsWM+kIc5A8d21K0qA=\r\n=V8cl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.4164940","@microsoft/mgt-msal2-provider":"2.6.2-preview.4164940","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.4164940_1665484593707_0.9551900985904243","host":"s3://npm-registry-packages"}},"2.6.2-preview.73dc57e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2-preview.73dc57e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2-preview.73dc57e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"638c04d268e93c9c19ac30126878166da8f67f64","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2-preview.73dc57e.tgz","fileCount":18,"integrity":"sha512-4PecliLj74ddiltb4mQhLSPQQt1P33CBQSu3U5qZ73HIZFpdwvuN2eEA6pWjSaiKTe9r1GJO8+ubQJ4uCK6Rtw==","signatures":[{"sig":"MEUCIQDEsX4pAdpfeXzB04vGpYh4eO08U21R+tShsbt7JVzyVgIgCrPKkb6M2ppoCSPifdjD8YpqLnSlu55G28h5lGC1mMw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSB2nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoblA//Z2CaMte0pI4zw06O51c6xkSMtg0AIG4PahMm3TSkQQFsBEv2\r\nSiCbTvqRGTrnZRW7l8EKvntbzZ7kjlGKf53xQmNWG9H6AzE4CZgsgH9rb1bR\r\nKqNvNxYI8roBeGvzQ+AdstiZFP74oOfQmeHlCddJei5sVIO+Erm8HQKt8vJ/\r\nvWZh/e+54wQGMa5eufLkuHL/KHNO7zWbUUSBoNfRWS9pN9OA7Rs1/BqFguTU\r\nB30UeYXNYP12C8bATHdyQRXYAnSdE76L1L1swDvZEQgym7UZGVfhp3x4BKB9\r\nQo8jsWi5rKYZqHeRUZBBDsuNtid4McMyhIjm5l66dX4wKCsNV3WJpEhmEWmq\r\nddj7VpU6Jfx0lP2Y0D2gcJS86EdmeSOoD7PPeKVRc71LtxgznmXudv8DlkzN\r\nc67yCgElYsk+bbVKcuh8ycy7Fw0slc5fxaMMHcah1oaaVgl3dvevU7GdU36w\r\nTQ3RgpBpceArG2oO2QewZR9bukAa7xt8n5YwJlicQuMNIHPgWqN47TuI5pKU\r\n/naoF/7Nwi9rvEshqqRerdamjxReJrocKFdWylSkB/mpx8DddZT3wrP8fS7Z\r\nguqQ5mQLMQTpsNwZqmgNphEisaimwM7U1m7sc+ZNPaPNaL6Ye7ilW2KQFl7N\r\nMBGyJyFqIwB+u7V1yIL04fJuvR9brIIDeM4=\r\n=Bl1y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2-preview.73dc57e","@microsoft/mgt-msal2-provider":"2.6.2-preview.73dc57e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2-preview.73dc57e_1665670567611_0.3480290278299636","host":"s3://npm-registry-packages"}},"2.6.3-preview.592c5fe":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.3-preview.592c5fe","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.3-preview.592c5fe","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"29e50b461f37debced9c665e85d9fe3e70bffe67","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.3-preview.592c5fe.tgz","fileCount":18,"integrity":"sha512-liu5QSzYSCoLBMJYhFiHFerWqL6VkX0K7WV6DmFcalK6LuT9LZGxMbqseoE9U7SnFftuDfg8YB3RwhivPQ+IzA==","signatures":[{"sig":"MEYCIQD2Tkg1YbOnKIUpe3mkegJzPLKUXwdNLxybIPaz/hQ1LgIhAMPQJD2ubR64t4/llxu8fa9+kLHwc+p1wTvLrVs8thD7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSbkyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjEBAAmNlEru/tOoIeEm5bK2XMcG2ozIMZ7NVrDBJ6oVqv7+VtrNhj\r\ncE4QxqXQppUDKGVRiS5gm+LHsqPbTRHgq49ft+7MW+Drg2fCBDwQ7RxPUJAE\r\nLFfpNg8M3DzDdTpxL/JSNVvVjfp4/u5ZkePBKduTA4bhov7GPxjAhYDN2jPU\r\nSsImanOHq3RDJUzDFGTIbEpjoRuUxcXCry0JLSv39pHoPURzOfH515CTpVKr\r\nQdyFT1NqMFTUFCdUWEdW38oWicM+uZmfRH4hAe6aIz+R6Dwf/f10EqMeUxym\r\nuxT7PFswhE85aS4nONpBer5s7n1GfJWI/EJk4bZ9k72sSGSMBcsVN6dd/4zL\r\n95QbFcKEk+7VybS2gnj4agstTs7mIkI9KsaqsU7gMveiBL2HTu3Lo0YSZtTH\r\nACUzsS0TeQ+uSSbmGgZvvzJu4E3DCcebJcMFiYTluloH06q2hEUwMmva5r4G\r\nQgXOCmf7+aJezBXclwPCu3NNvzV5uHKqTmXrcEQNyiY3QErLPPwVmaq6hJkJ\r\nzsArMESvCRB6Pan036LNIPSu1hU4dp730DIIcq2hA9++2KxWNu19CmKWNob+\r\na+Nyp/lUEgNHOge6dCUOMXud4MWqTNmUBvI6Xk/vmeJxMAlMFCQuK61Rike5\r\nRRQbeKBgd1oe5zci36JW5NviaPO28W8W+tM=\r\n=wvJ4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.3-preview.592c5fe","@microsoft/mgt-msal2-provider":"2.6.3-preview.592c5fe","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.3-preview.592c5fe_1665775922304_0.7258102252896721","host":"s3://npm-registry-packages"}},"2.6.2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"842493dc18ca6bcd34e6d763b1a3886813496034","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.2.tgz","fileCount":18,"integrity":"sha512-XgoFmGyvr3GWsVvGDEqJhxRSuZ2rCoX2EK72tRgBdLhlwZbO+ImNxTLEIqYpmVNvx51CJmetIuwZDztpxe+9WQ==","signatures":[{"sig":"MEYCIQDvds8Le57MaOd2BVd/2L8O1RU3WIbEI958ebpqnHXUGwIhAI1rYaFXL6zKOhzmFqeI0Cev47GKijz83RJRum+YhV+j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSdJ+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbNw/+O7Mq3SxknzMrqI9pWz6/BHFL52MYiIox9rstJR2yG2fveQy8\r\nCE82v9UPyMMM9C2pXnAzK0FhgaDQkdcHt48ey0rSaJQjBtk5j24gK32J9o77\r\nOYbbVawHeVHhhCMDlf6xSeDToGu7w4mi9AIp9vAFJOIaqvd6QmkXGCqtv7O6\r\nTNZ2RqQH6YU9Wy17nrcaBWKIlQxMLA4K7mRp44RqFY7KvCKO7TK1Y+9Uwh8u\r\n9toAYw3rjZVzUxEims1bwDtceRo09pl4sA3NLWZaMlPqv1MyWL2Eq9jHknZ9\r\n6OAH9cV20/5Gw9c0CG6y1f+N4MVei4mKnhSJhaDIYpbSVmmIHfqygdqgrVh4\r\nEaj7wXmoc1nE2OZD47hbPp7Zl9pr7lrNWwfkSiq0MZWEQMiHbZWDFdkG0cUB\r\noeWA6HAlKbtsvcK1LAbaROER/lHaAPreilezED002Bkw//6FujNUzsQYhcPf\r\nSS9qvmBcuCM18LK+v1XPxp6zSqS+CLl47yd227bd3m5Y58JdCi740QOA/qIs\r\n/z/UUETIUJAd4EJv1HGvge1xKuiJ0cGa0iLs9m/QDuvQLgf6v3Sq3b1y1C+Z\r\ni0E6/3+2CiyeT/EP97MgstlmrdNPvQdRCZKZmS7cs2wlc0tcm2JQLGA+LRW7\r\nfP/pJeXwdfgJYE7mqbasWo363g4Tv1u+pPg=\r\n=WPFF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.2","@microsoft/mgt-msal2-provider":"2.6.2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.2_1665782397803_0.1889092018067029","host":"s3://npm-registry-packages"}},"2.6.3-preview.20bd6cf":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.3-preview.20bd6cf","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.3-preview.20bd6cf","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"29cbe699ab5596fd1236a30eb95bb75f3f4ce2f3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.3-preview.20bd6cf.tgz","fileCount":18,"integrity":"sha512-BkCbAl32f+sNUV8Q0RRm//UHkiii57j1CuhR/XkL9UGykTs9P6jUHZdnK+mZQe/hBnQ+DMJJpL8P6Jeh/Ly3uw==","signatures":[{"sig":"MEUCIQDQRdqe/1br5ZpdeaFFzkpyIPp0hEf6orreptxEMb61pgIgP52RX3JsHO1iaUD2aOmi0ZjGdRZNTWyPGlEsNOvd72I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTXshACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpclRAAlRi0QCwQgb9m9QZngz/2fnB2udhkwIzbi7GHfa30hdFO9L/k\r\nUyxKD/tvidfBnk+7wW2oZoZqhB8JN6OgmieQcKQ9WOd0cwUUUDX9R79Ruo0c\r\nXiHGgmRftDBngYI2a9sw69c3xy+s2vBvNykVyVNQiJBD8hBYat7zy5KaeG/D\r\nzOrZYuVeuqGjEUwuh3XjJ91gf1YbGMFXnBr0kMCEoifnAetNSzTa5K70vcQk\r\nL/gUEXKIXXvHMWkS6QzMocD1rid2YIpvFDf+xzTKB0jon5czt/rA/zWga7YP\r\n8G+F5rUmPWG3jYbYv+XHAvn5VTUFoZEDMIU8+WrVRhQnIP6QD23jFHxDpe6k\r\nWM1kk1LXIiIsWA7nTVUlawJDwa+bj1FEqy8NMEnvkLcdShSSsALOBjtdZ7BB\r\nOsH42PnSv94jUsSihGJXzykcR+3+npaYwwFD+/eTCoWYRGZlfBAvrpnCk7d/\r\nahK2j6BWyCV0hZGOriGgE+UvGZ7dxttJmcDP9hHWBUNJwWy+KtcYqIw38Dmg\r\nUFBkqRjG9JX34gl/vx6OV6LT7tqK6CjxPvwuS0JiQU7WowEbJ3A+y4+z8ok7\r\nfWx+ob/L9+YsIj+4xR/qS7mHqVpOcykJHLLrHOqk4xEo20ZBEKIZ8j0fU9tf\r\nqgTDoRlDp5Z0unQrRchSZgCLjKTpykhdXS8=\r\n=1TPp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.3-preview.20bd6cf","@microsoft/mgt-msal2-provider":"2.6.3-preview.20bd6cf","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.3-preview.20bd6cf_1666022177053_0.2742065994986118","host":"s3://npm-registry-packages"}},"2.6.3-preview.cd06fe2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.3-preview.cd06fe2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.3-preview.cd06fe2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7aa35481272dae95bb9ea7a41a2106cd60a91ace","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.3-preview.cd06fe2.tgz","fileCount":18,"integrity":"sha512-hIg+/NST63AzecvEw6yHBDWi+UyTrnISPLOVACL+ztj1/dmaVagmgIybvAPTJ/FnZWyi0oAtmP95TFsKQZsKvg==","signatures":[{"sig":"MEYCIQDX1SiyKkrgDFYLp+ww3Im2k037Ot3c3MVOsN5EKjdDVgIhAJcgFkcPLWElojcoAka2nAUftOOrGkWU3Ykd9c1heW9a","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTsF3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/aQ/+L8wPQn4NTL2y3Nyy+8PUCez0kOnBlggvKqNRRKZXlfimgMIN\r\nM/RN78V5jcCUcIkxqtMtj9oXdSfC6R1Zwlnz8G+ib80M0A48H2DFUAGHO+jj\r\n+5OAPPILQ5rfeprfxC7/Vif3nDXdT1NhVaU6MsueEfhMv0A7dWlKFr9PSEfC\r\nENP7h3XY55TQdiEvlBWWC2jl9aCBLPkyRn9dpjL5LcLJpzhmSnPxWEPnefV6\r\nuBPFAT7Hjehr9w0OYo6vcXaL9E18PXMKC6V/7q1RaeyUrjBmOW2A5vYG1k/7\r\nDyhTLFJqKay5kpb5jTIto23RWz7WshHg8vuLm8RNtvlylyOuHM8uU9LDhgpA\r\nHQZaIQlMIU4fq8F6jslT5fzIRBR/k0OsUT3R2YR/11XYAcaEJzpIz45hXaQl\r\nBiuHFR+uJQzYHpXSpnVKY0uSMBpxpCwm+fmBR/pB32IuwKt2vigK+AmvbKHD\r\nnWCY/O4kMbH5fHrSQpvNecSBLpefth7s+O/Peuqu5cOT00oIdLJJlpT7pfeN\r\nrCZAIQN6LvBB7y4N1VVwU8v2jnbLjnenot9BWWRJO34auw2/NXtduZ9PsCPE\r\nvgFWA6zW/z3rL28SSGlyv+67FB51QZZhlUu/M+vSwWBiVf/gWEOmZM92SwHh\r\nXJW2y4Rw81e00v2xG4gMmM9/LEDpzkxD4VE=\r\n=LMHi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.3-preview.cd06fe2","@microsoft/mgt-msal2-provider":"2.6.3-preview.cd06fe2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.3-preview.cd06fe2_1666105719703_0.1085799137556076","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.412c250":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.412c250","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.412c250","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"29e60ff1caee890bc9390115dac33ad9d79c8c2f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.412c250.tgz","fileCount":18,"integrity":"sha512-1CZizRF+guxZTHmrNVcX7JzBn1mKwqlt2lnbcLDH6cl1Y33BwF75xMHRBAn+lCHHvE3mCuxuCfExhE669lBrig==","signatures":[{"sig":"MEUCIQCrYJwZv3q8O1vOxPkj6BAAAzUwo1L59bwF/NKEoI+rcQIgH3WVvpcTGjqAmGvJAcGPdE4hDCjnFOomkRPedaebUpc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTzM5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLxBAAgZNOA+SgSXaBx98ecsaEnuegJN4AsvJLJnfC09CRCaLILW99\r\nR9XKZyVF4P8XFcoLp8JkzS3tZcHcE6ZqS7/f/PgEnCxkkniLaNh906LflUE0\r\nS2MIH/roG3JmHXXiFv0/tHasPT4px3Kj5zsjXqHH88LLxyRT8is4csL7x2my\r\nOtqjnqCVPE7nOKQpzzMxkfb4akVPmh6bCXlQ/rHqnhvWFopnqJjlr8BpaOUp\r\nhjxOJ3WiuDdtuM144S6YC0pAuXwLh7rVvQQOJGtCNn5JRggr6J39NOB2QfDH\r\nd9P1QLUiuVldoFwehMwQIpq1La9Z5qwgy39h+UJTDmEiTt6CAYI1nqgm0AcQ\r\nrGSUKmsv/F2JPyoAOmqFfWMcR06OKnAgL0HYnj3+yodQxvGik2beb7BppsNR\r\nxHOMhaG7i728mPW6Q7110Omo+UyArbJjgLa82ofuxDQ8namKorM3iEfjwilT\r\nG4FmkHsOGR6t7NXnzMetrGNVtunjc+XYwVnsLJe5yQFwRdwacAG+Y1vBvX4f\r\n5r1QFwPP3OZw+N2LQJDbhNmKfOv4oWtIvbb88ve5bqKqMlxq5Ar0+9LhUAe/\r\nka38bnYHEbN3oKIF+V6TiVqK9E8lo9RFJ6xqns2qzRWkRciH0fCU8GjimEtv\r\nsftG2wTEhTo0wR3gWQAHKyTWhoTERjfq+g0=\r\n=29VP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.412c250","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.412c250","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.412c250_1666134841433_0.8873048137504875","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.71a05b0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.71a05b0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.71a05b0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e423911b7bdb7cde04785027ff310c853130ffad","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.71a05b0.tgz","fileCount":18,"integrity":"sha512-AdL+nCt4wHN8/ETIpARu/RBay3fudopCz3JA57KPCnBhLKSNySoL7QNtbPX4mqBky1SWYHH1SZcK7JXcK5s4ZA==","signatures":[{"sig":"MEUCIQCuzce7N3YKv2oPv6coC1b0L09qss611K2D1OQ2SzYvPwIgWkV/+ReEUjYOxjPdZwXCy6Pc9i5eVeaB4FGj2QVsTv4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUWYxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrn6A/+L3NpV8GtNJH5OeuKjvUZhqwIr0520ilP+BzcJTc+XXGGJe/L\r\nekdf96mdqwkVEFDaB2VxEq/OKnKeucPMnebQey2uYt95wBdJ4C6wUnfvLiDs\r\n/RCIitp/mUfaypLOgmHK1YBoCh+dSTlSJkkMIWp4/uJDGCLZdFZLiR7xkc4l\r\nCk/V1dVOzV2xPyyei0GcYVIuHOmTYOCut6zJ1X9o26gbuj7X4RNYbz4PNdtA\r\n9sfMcMcwj0Xvyy23dObaHY/Hd+0fBgEzh0oV2/nuHTwl4dUmxzrqwgYsgjts\r\nz1OSTE19bagfZ/UK2BrIoPVpqASAe5UTcV7UVR3meqT7VHiKYX4os4Jepi14\r\nK0Ho7Hou4/lpRAYipKFTgUQv1ACM8uUgv1VOSv/D2NeJTYMp6lLuYT1j/PXx\r\ncVfnDc07a8K8wYm7CAB5rSu3glmtd+7E4j9qqfHYKkczNAjP3Qs1JUX3aEUR\r\nJQHlLhRFpUJ58zggKgGrw8CKZeoDjyKoJnYQj5tdoG03z4Pf0vTtAKGwkHfp\r\n01lOp+3LuWHs8zjNo8vYeqC0nkFQgjTP4fxMDPxB3F/HHBF6rwFtJno+8ub5\r\nK0D+3+gBSQ1y9YaGYGt8cwMGSND4qgiUDND2yVwVyNnJcNYI+az+XLGeleeX\r\n2G9VUZunTYGg3wb93NjHimhhdybkTmll560=\r\n=CNA0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.71a05b0","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.71a05b0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.71a05b0_1666278960778_0.5075386482417856","host":"s3://npm-registry-packages"}},"2.6.3-preview.41de8c4":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.3-preview.41de8c4","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.3-preview.41de8c4","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4e1d583a2c3b357f0938d76c171c2fbdd2d73f2f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.3-preview.41de8c4.tgz","fileCount":18,"integrity":"sha512-3xPjPKiwE0KS5t6zPRnqNCisBMQfmx/lvOoYLZ/RlBlDK2+zaPN+ONmPp21+awzTkMwLH+O2UmZ9YMBGjLeAxQ==","signatures":[{"sig":"MEQCIAic8yAhMJ8svweC+XR/c0ZNXeLewtuuXSy3CGH3SXvEAiBsO1CBho6IwWOAinkWUYkVeZMyg/45JaDin7pQ3xB01g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUrykACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAKg/9ERTW/6Ti0gbERZDErYbtqgg/4WFGBIDSUYe5s+2jFqVJSAQG\r\n+CiQyU/mss6GIeoLFT84NJ0RG5hOmeg7nvoNWiIV5LVQ0bQfNG4NTcEUoNHu\r\nt5GYKVTuT9jt5X+Y9QB2gjnhJQIqOTX0uip6h7LVUXCBJexcd6lkVmcaixW9\r\nLJK3z8H4DP31QolDZYWYlJ9bX+EqB5qRMTnolcBfffR4NTgOGC2XXIV43pto\r\nV26wILNWcNS4R8m75fGCwNLwCk48sIA/VH/alEVaISl++4xok3+prjr4N6F6\r\n5i745pUsLBJZby/ZxTbJ6Zqzk6SjpyDYpZd2gPDvYqDqyqfk6noqih8bM72I\r\nVvEvlT9xGRhK9S0hRKJxajKnB8Rq7eGSjyGqIUSyvw4Jyj4XYJkUsSBTXdaw\r\n9JiY38IHWIYqGS7RHms5fRbZVYPXDr05kMykAKVvF05eF3weLs4cEwZHDPHi\r\nTiCADyznzEasFqNt3SBetq7J9kOv8A7ACCGgiRiSL+x0YxKLG8cEyTBIoUCZ\r\nAvbpAtFEkb8+y8j7HBq2julQ2rVSoH3KHG6aqrviF4CqJUNFR27SKvAacSK0\r\nm35ex6VCGOSGtp4XLSk42UaZQXPvqYYyYVZIKsRPl362Odf4f4ytyTuS4km6\r\nFVyf9qa5Yju6E9Z7aDPv1YFE5+7zIlrk5EE=\r\n=X6iP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.3-preview.41de8c4","@microsoft/mgt-msal2-provider":"2.6.3-preview.41de8c4","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.3-preview.41de8c4_1666366628160_0.45664352999016233","host":"s3://npm-registry-packages"}},"2.6.3-preview.7bd958e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.3-preview.7bd958e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.3-preview.7bd958e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"94f5768bef7d842d409ba23b66996aa932b45899","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.3-preview.7bd958e.tgz","fileCount":18,"integrity":"sha512-46QyC+63Hn9xi6cFg18DccTEYy7au4O6cxzeW7K5Dl1+BfPv85O21h3GYvP8nN/yZ7noZIdIIH8JBh+M+0VpoQ==","signatures":[{"sig":"MEUCIHqs0m7fOpVsUvpWIed0BnXxF7l+VM+vdtM+ks50hxC9AiEAiEY8XYgUbosE2sMz88v1r57eua8ELBvR0z7ao2I4SCI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUsDzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmdA//ZWTJyd+7yq8p+93Kd9Nn11ObzPuDTkyFqSkFf5rVYnnyLfYi\r\nWN4xUygVamN0ul60PGbeD/rfDXQxm7dTLJgaQYhf/00FA81X1A2Z6IXtvJ2r\r\nZclQIBWJ5tK/1nqmikddbJJzrQoV7NKsbBKi7OgBnZYnnZyK23bx0aEiaxTQ\r\nQ8ILxBvbiPpvSIYErzECEWFiZUJeP50SkxoXZ1yETLalLp3QmxWT3KzzbKVO\r\nO9IhEiCXvle96d0LuXxOvIppnZ3oiNR+KBbysP9v6ve+Dvg2gMlH/El+Zn69\r\n3nZSIGevCGmayECGXRI/IkUrmPft+pUYQ0OSsp404X4jop71FMH9S2y8R95a\r\nQGFStdGyYaYl2mM1lmXf7awjhJU/schhTW4yrYuuZrwCfet7wFIdQvijrjNS\r\npHaBchlhj8DdJOrpvVv2Vvd3Dz3A33DUW1johYdoKkC/NUCkLQDLuZtSG0eM\r\nYYS3xnU+4gfuqBKXNgXal+WUmC97LAV4i6w8A3pv8/bAAQrmmYQ2srnWyzMA\r\n+M4xiFaUOtxkUjlyLacuxyXXKPKJCVKbVqK/gkgTsCxOdWvn2vwsdzO1yrI6\r\nsJ+BsJIffOX9cu7zcnm4qosBMsTwH7nI8y4vkc/u4cF0OuXcR7g0l2QRf93r\r\nYqmtcq12CeXgoK/gS4NBm8n2PurBhkf2jAM=\r\n=PE/1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.3-preview.7bd958e","@microsoft/mgt-msal2-provider":"2.6.3-preview.7bd958e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.3-preview.7bd958e_1666367731314_0.6382471332818029","host":"s3://npm-registry-packages"}},"3.0.0-next.node16-support.f415340":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.node16-support.f415340","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.node16-support.f415340","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a3115f3daaa54dfb554fab2fd1b7e71f0a6857d6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.node16-support.f415340.tgz","fileCount":18,"integrity":"sha512-dCl954xkdsrEGnNusZR3ScCA+rgjLUZ2xxBMNpB+f3IFJuHlqmsuu3Be+iLfZW6RjpC9OEoHRyHe3inQygA7iA==","signatures":[{"sig":"MEYCIQCu5z4s/dXRwDxgy/JKxKt621HZXpMDwoUO0cL4rWH99wIhAMFOYBGoxqXr4btoT243Xi9ipYzHVCsqwrf0PHFvUMGF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUxPSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotCRAAg0kwRu1UAK2rU2q3UaSe7+kZ8T0gkDBxX/yU4nzFC9Hemo3v\r\nRT5+51pVj0uRPJbTz0Rzb0R+HNcIKJRTzvtMyq5X0btkQpM2O00UdA45blwO\r\nWj5EmCpcLBaWGgqUSqOhcpl/jG1qhyuAC/4C+EncEVQo0aAtoVWufpS+hE7m\r\ntuekSFmIcSZdscMLeKaKWofcyGzlIHml29f5RoqXVErwdDVGF9e1vInPe+js\r\n/qaYz6L+cjHCPLemjQ1o2i+YvFsyUwejw5hh8CQ2fJj2U7T9N0eyQa4E/tMu\r\ns++O+8XBp2BvtruggPXwzHUq0YvQc9hVjgSNt+alQ8i4nQaF4uaXUmWRxjHM\r\ni3VBXRu/wDNREXOd4KvOsOhBUrZYaU2ePhbYsj0FCUrbAUPgqKUTzDz40rF3\r\nG1OwZ7UfjwPHEZsBBNloh3v974eCz0RjOimGo+FsyJQ2OXxO8GoiNVOic3J8\r\njtXfeEMA/kb9GNFBeqL1KMy8a4E5G85xNAq6H3ZjAX8FE1huGDgvWFGjTYWI\r\nb1jLlRuY6iQ6msEfV9+SBIbw7kSLgS29hVPczU/4KHv3iIvXf0sUs0ZZCFLM\r\noi2CzJLZTwajEPW2FdYmVh7xTfLF5qu1U2Zqb0XCuSdCSNn+nmGPn7VfjYf3\r\ndWZkSLwq9aCYs8+dAQHHZSJrbDs6+5b8+HU=\r\n=6sn+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.node16-support.f415340","@microsoft/mgt-msal2-provider":"3.0.0-next.node16-support.f415340","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.node16-support.f415340_1666388946355_0.14210231481651858","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.8b6e9e0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.8b6e9e0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.8b6e9e0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"872e5a22835e163045227f67eb287dcf1b11d882","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.8b6e9e0.tgz","fileCount":18,"integrity":"sha512-hmuFveBR6I/O+GSXkxc3YecJcLpNnoJ+YXG12BVHH2ceZmb+5xHYHfSLshru4CFbLev5PM0QxklQx2zOMQPaMQ==","signatures":[{"sig":"MEQCIG/DEHZFw5MlGTAFPsuB3Glk9Pjs0b2Z2dA/vLRk3caZAiANbmWxAez5qSO1MqkHHu2s8LMaRG5YJ3+qX5NhihjNIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWCqpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMuA/+JWWaVHklrvi3Em2xv3eUzdzsDEys52zmC+j0opS29/+8h4n1\r\nyjmB7sQF+2wrvgBAYFtttVfIzJSZe2QSHX2uSy4iMTl2C+eum+9DkgTiMqX0\r\n1/MAi7zW0jJAFD1Tj1Njs4rw8v0mdvvtgwVF5Uesa8no9UrtFjPnEDRRYjF7\r\n/rVYfGE2xbJCJpQ1tVeLrfAH+idJ8CvuFh+5f7nJLEbcI/9piADVWS5LDAQ1\r\nOK/Ba8j8lLxLj8YjcRMVUBG8JACJFfcv9q1kBU4Zj4yQTVNXNwcNAcKHMMEE\r\n3L4j3jJ89N2uVBicwuHWEx7vvkbAElCVMDdkH9UujQrRLSBZWxDeWlUxvUXy\r\nxpbQZ2Z26x6xpH7CXVODiIyNpZoBpKqQFoONiCgSfqzUZvLU5g3OIhvpz2A2\r\nC2xxM+UbCtVUX9vH0f0qF5I/BFq3HQ7bq5Q4es2BHobzUGD+ZzQVMxFS91vz\r\n1kNm7Rfes12838YXlQxvaByjv3DBZMq+mRK/4CwxcAJ8oPL9EuWeOeg8uKxB\r\nc1BJvRSefjkLfFRbpi+VT+iTtL+50mwLGZ1JADwdjjjOKffFEcorwq88rwaE\r\nTBUEfF5usNnyQ2DVbeDniH9jgRFWMCrhBVJd899eUiodcalumkkKXUjyEtps\r\nLnvNuhCymVt+Scv7pDR/8Sc9OzPpoBpGMDw=\r\n=L5p/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.8b6e9e0","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.8b6e9e0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.8b6e9e0_1666722473263_0.0042328941690832345","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration.43194e0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration.43194e0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration.43194e0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"50fed16cdd3a555be7e99e10485156d7cf5ca2c2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration.43194e0.tgz","fileCount":18,"integrity":"sha512-vzKu+C/WSZMfCYEt2dmNNDOWR7fplSdDlobiPA7f33pwP92neNnqA0ai8H8b+BuZd0aUQvc/lpqPUttjkR9BCA==","signatures":[{"sig":"MEQCIAZ4ctsFfJeVGtSjr5PjHrxWTmIRxw+otILakpsyu1NuAiB28Hi9janKtE/HqAnVHA8eEt8glwb/mzvYx/OBpjOd1Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWFpsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNrg/+L7dTlkZUkVvuDQG8ekL8+ZDubQLXTnu+VqG6diO48jiRJyMA\r\nlNLTF5wIU7vl88J/3kBL1ifYgw1Qgjtnm8qveOOB9prgOzXg/XBoZnGSKpBY\r\n1BDRFDLW8q1rK41Os3c3c4ccDLw4UpLr7JIO7A5n0LP/vn41EMV19azy+Oy4\r\nkib+YOpbjIXIyXvEnd98PWkgSL4CJwbM91kaOe1RC6WJjpOSfOcgEKuxL9Pk\r\ntL41qftYN3f9XenJrqDzubtJFeriCo+aEi6kf8v2M9rkzNT3VmodYz8zIzhh\r\nWDjfYFrJa42n+IO/8bclQyLjL2bXAkbbZvGMZz2VtHtKZ7u9lubWFPnuC/yo\r\nStIu1qTAPx0en9CwL4hGaQqNfWgcT1k15DniFCa9Qd2S62NppkbWm+YsT5e+\r\nZPMqDIon19oJIKZss3ccUt4H34uMuXv5RySGseLofIXBqDkwP4CzUjgjRweA\r\n0oj2pp79pquvtoB8oPOCjShFDgFT3h1wAk2Y5djnPwkOhP2EagnNoklxB3hx\r\nyvSGJT0OQddpacGpHJ0QjU1cHTr9fsP7nbekgIHmbovdFDcx23U2YyLcv5MX\r\n2rT5pMCxaaLgjBMpzPXH5kPjqRyQzL6zr3mf3lzR8uIAjdrWFDcObgjCoAdf\r\n5l2i8LqFLh/ZTwUBCKj/QnvS6Gt2pITxi3U=\r\n=CNOu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration.43194e0","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration.43194e0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration.43194e0_1666734700134_0.968877871598347","host":"s3://npm-registry-packages"}},"2.6.3-preview.d93bde7":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.3-preview.d93bde7","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.3-preview.d93bde7","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"28d3853d00f347c8db6670e0fb7437d5a236a5dc","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.3-preview.d93bde7.tgz","fileCount":18,"integrity":"sha512-8eBUA40Rk5FDEaUBpL3BELmE9SI1FjJBmBqgxqyLztbyWUQa3qJ3wbKUoqrt3i3uTOM9maFAv0b6OwzlAGNd+w==","signatures":[{"sig":"MEYCIQCU+CW2CHWPFcAUwFSAFBirBCyib8AuMuM2FAFNZU9WZAIhAMIL0SFzf+WBujh8UrvXrswQxz2q4DbKanaKhEqg1Gdq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWGBKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnWA/+Ou2Ph23RY6q/Ac/SlCbS5c70jh3WNGxuQxGAfVgOwC34QH87\r\nktN/ROH6+IdoY7QkP0heayFP4mHrPtngABD+6+jAyyAHSjz8nr2yLK9fBxjc\r\nyPplMeg2RyuPFPqKYPLZd1hvI7h3iIhAgI/wr5bC8nl9ceEaCA3bYi3rvV7y\r\nbNxmTzeU4HApb3sOuN0STGsBK+LKST7ZklsoGUJ8mXAcSD590KKtbggX9hhP\r\nAbTJt7tTGI/B+yXGhXz/ZQdfxL++RPYHOCPCRAqvdzvIXkRKUCEHZK5Y+ZtX\r\nOxM8//St4BD/xxBU9mNSrOJPvPKvw/iWuK5cRzwnpexIthCSZAQVyk/EXE+L\r\neGaZHQpA3M09K1K4TUKBEPV9VE/7QsNmUThlsgfUmo/vaNoiqyyn0Uz9x0Qc\r\nMmX5wFfERJrl4zYTA8TLPpjzOF7Bp5UILWhndoCJ23dtl7VDfHZBBVjcpZJb\r\nLIidpxA3XpxAqfrmNW7T4YmkZHzMijJvwLl4AqngjU4FGfAhaEW0sVHQN5pO\r\nkrC2e4C3mExC0li83xcrt2c6fUssZhdw7nTC5l8XirhjMBEQlJ3TistDJyO9\r\n9VaIGgFmItxzxa2u3NMEAItrDiKj9TRrvvQSrLvDj6sT9eeDHC4AhJNDby+d\r\n/HRijmoG7ssdEMwbn8tbgcACXiGTZBNWdT4=\r\n=vcKs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.3-preview.d93bde7","@microsoft/mgt-msal2-provider":"2.6.3-preview.d93bde7","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.3-preview.d93bde7_1666736201836_0.47085633231010715","host":"s3://npm-registry-packages"}},"2.6.3-preview.9a98e07":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.3-preview.9a98e07","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.3-preview.9a98e07","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"706dbcee74966bc24ed87e71076d3da8a2c0b3a1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.3-preview.9a98e07.tgz","fileCount":18,"integrity":"sha512-AyR47aFK1ibECHicLv/b8qpGlWJZo/k876attZu1vawvQi/fgZmEMDXrJ6bj9vJfj3z2ksmpTvefMGD3GYUPCQ==","signatures":[{"sig":"MEUCIQD7c/EgKcrOqm43bL61dyVCS8Mw+ocPpelw0utbTrFC6wIgcpmd7AtOsMPjLrdfht2ulgBr+bArv1ITIiPh+MFh7qM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWGMsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrdiw//coleUsmEGaT6Si5kufxqrPAjAK4zlXuOsMtyseeb9YPDiAev\r\n/ywzPvTIBCkxQ0cSr8tdHSQEoBN6OZ+qXotZC0ZZIcJgPiEoGOungirz2YnU\r\nD4qohsff+ELjhCSWMherJlpV64zSIcrQynSecOu6UpO0ylBNB30GFGsAdtV5\r\nqA91CwXToIIozVXkC1RXtFLSI8LNGDwDgN298n6YhQ0GIen8AVa6sYzOPymw\r\nzqn8S+70CTyEqXF/ZkP0rA2c4cz+yTG2Fy1svITuwaqtwmb4EMijeVrqm6va\r\neO6R2Qc/3cziLJsTnl8Ftk8MLJz9s6W1SfJFdQajeMt5VDxbVHXcuOVUiUyD\r\nB/PXvNEw3oaU4IZu34iWY+Ndw4b/d5xZ/CW3MXa6brfesJrfiqUW/OKYlY0H\r\nX8V8XZhiUZaYK7F07/PuPcR7am9WxetrBAjQQz2owkKqorPZj7u4VRY/KweO\r\nwxOKxERsSrJazZsdPJie/OXIm0NfdGErjHt12XEXmUpehz5TvlUEcv5KNvtu\r\nJ5EpJRaMuPBNwm4v3R6D1B4xTXKlnM3mDsiT927YGm/P47QD4lYFaKirZkLD\r\nliexrc4RsGHtLHHmEEhpGLw6NV7CYgBW9a1sDDdxnbtsaR2HTgpi+vdXmA+D\r\n3WcSktsJhQmlMgMtuMTrKseuh9vM5mE1Wfw=\r\n=Nm0Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.3-preview.9a98e07","@microsoft/mgt-msal2-provider":"2.6.3-preview.9a98e07","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.3-preview.9a98e07_1666736940781_0.8956798616303054","host":"s3://npm-registry-packages"}},"2.6.3-preview.adcc63c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.6.3-preview.adcc63c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.6.3-preview.adcc63c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a34ddd059d3d97cc608121e18883eaa76ae3cdcb","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.6.3-preview.adcc63c.tgz","fileCount":18,"integrity":"sha512-PDHDXfo3IC8BnKYik+dDLl53OSMSOGd2OwTxB0h9umc+3mRHuvtbx+KG0mjQsEHfrHP1EHxuecJISrcsSrnyCQ==","signatures":[{"sig":"MEYCIQCvt2TZ4L8anbYbZ82JEQI/hbDiDhgkBscM1AuDYkMn5gIhAJELDR8I+BuMI8IAqpVJVbfBnRr+g3O5jH6GMveBjvkd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWcI9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3FA/6AtMOVsLTq0f0AK++LMWH5R9TIBsBk794JCGXp54aHZ2f465H\r\n1iLb1F5T8GcXi28zFvOcBnH72C7VvMBNY8Ek0SO9zhhtusYpI7vPU+BgpyOD\r\nKgBg21hYwo5jkpYj1m0bT4FGY3Bz+wGyPVyMHuI6p3SJoRWpKAhAXiFQ1FKh\r\nrFmFjnHUx9e699oV3/cmEmgPZZpWGuHP4oEOtO5axzgRJ3VYsUaQEHMrxwZz\r\nc9lWx41+Q5RxdwjJAAta744JykW01zYDl5nqCj3GEUJCJXQ+oBCX3UpfPdIR\r\nWal1ulxS4zXrONPuof86/ATDyHfHryW0lTL6g2grs/e2e95gQmwMjVsu3yyV\r\nQ6qcLDG6niEKErVgsMk8vs+ypeB8rn6qwLckYtiqy6F/QoMBvQebV9lYIOmU\r\nk8MU2JwAxWn2XKB/O8Ta7EHYL0KixypKtsHK7xxWzBO0csUlXIwDb7E2Hg7W\r\n+r8z01YhWonzOSWNCowkIIN5pOF5qLLHQo7zC+u3JAvdyA2Do4AuIxlt4+Jn\r\nbSWkeIr6My5jH2GOIqWFIaXxWSSaCbINoAxmtAk1hHYwZtoQiYqzzuGkXXxT\r\nDQiglXXco79PFvGFWMglZMC9Bnq1DA6twVkp7SlcqB+7srTuFhVjUeYwsCFm\r\ndgmeXCxpRfB9YhsPSbzICsUmb6HR47F+8MY=\r\n=G7Xt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.6.3-preview.adcc63c","@microsoft/mgt-msal2-provider":"2.6.3-preview.adcc63c","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.6.3-preview.adcc63c_1666826813408_0.6964496683564434","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.a573bdf":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.a573bdf","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.a573bdf","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d3a58fcb8a2efb912f0a46e4beb71e799d59cc9e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.a573bdf.tgz","fileCount":17,"integrity":"sha512-RfeCucJgjWSmHbcJgsg6wM3++oS/dfjH3qcja5E/V4ybr3Go5Hwk/yL90l9cBm0NzevubbIqxLXw6e5OmsgLmQ==","signatures":[{"sig":"MEUCIGaNm6cjCkW7wyjzL9eolQv28uGSoE/YoSx1R3UtaJ7yAiEAxSSQq/B+MexxdEOk+Srz8I7qessCqqN6AzxenjhVu8A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92702,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWcJuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrjlw/+KGAYtY+d+UiyZliv/Sar/17e1SWXrOB5AHMGNYonkJlgsMJe\r\nfjQspneq/X3X3p7tp6DF16Z/RhWFF+T2VrDg5bZ66Nw78+z/zPTrSgcBP0YC\r\nuEKWow+g3Fuks+k124IkZv4thJApCC7AuZsXfOcQdroxSxekTEdZ40mc6R7w\r\nL6avNYoeLX9efsdk6XdQtgspU1vVMa3teCvf1YMKGyJj7gzNqYs0Ot3HFmS0\r\nb/aoSGmynOO7ocOtZYp0SlpJ3QwvERysbace3WYpF6XAp46wFV4YZVMoS0ao\r\ndhdsWiY66xTjTfALIC/hDrKgXrq/HlYCdFQudSbGaKVIEZmowgKC9I9iZoNC\r\n2fCRQCgGVfmXl4tLS1GpsMTIxGV9QkbffWwCW/4RvEYyfzDMzAzlu+pogUiz\r\nW8JDaW0GqY0P1YC0oUAzLZ2/EVazjZV31gEj+W6GamrtbMVWMBJJ73mL8AAk\r\n99e+WtskodO2WEf4lNUE7ttj1t6hbmaE7ddmHkEazoqfRb9X9fgG/Eovw2Zm\r\nqaK62UASH2UwmN04WE4LI6EhZm/MoO1729Tv/2v2q3xt4y2jBj0rQQ6RqAP7\r\nf5FLb3kmHGJsLtcVMYn69RP0zzeadEKHXI9+SHD3B6VYovQ5tJvY0vXEi5IJ\r\nijtodHPl5s9GGfdCNqTLvJ0KkgMeoI1kO6A=\r\n=NSZX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"a573bdf940fc154e6cbdc7e7b392298e05f14ab8","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.15.0","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.17.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.a573bdf","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.a573bdf","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.a573bdf_1666826862420_0.6658256282811779","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.89e938e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.89e938e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.89e938e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"14c7ff04ba272f747e52f4a956fc6c17b54a961b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.89e938e.tgz","fileCount":18,"integrity":"sha512-JC42aNwNZ6WC8gNB+kCQ55tT1uYRtvrGZPmZj5psUWPih6NUFLu/0KMIrqcLMG1kpLZNtU3Ug+UE5wYxADFwKw==","signatures":[{"sig":"MEUCIQCogDVXiG155sdlrFnB5YucEVpxxCD9NMbIXBMVbVDcrwIgK1HghUMKOt31HVW83ZwtJ/XBZuX9q5Zm+9lVkTtM5F4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWwYeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOpg/9G2lIXm7KNZXRM4EWcwbUq6SMrYmd9Nwk0dO0aerdyhysp4eL\r\nkQwIqz0C35jvk6GAvH/XDIDn/Nm7yFQ45W1TTwi4u90BsylIwl7vo/ZPf5Hn\r\nlVzIu/sMxQIIGfx04DW6MEfkOdVVlPLxGfwyFMy7Vce8ddOO+TbG307meHTS\r\nwlS/ZoIaXlvtt0tJYmaGcyVNFbI/zq7zneYAwXYBb1sfxPgDtcnoOH0c4MC5\r\nNqPljMu0Bi0h5DROodMm1abZlPaKHpHVJNfpwFeORpeooX9BwHz1/UVRDm5b\r\ndtSFUDK6PkTfdAn/h9wLkI68rbEcN/8U/2A5hBRLs6HIuq5jQPWsBpyKzqmG\r\nZBkY1MbKq2MuRklYwQMwjLZeATUJtaYkPUKpcBv1dP2FZO7Qll4I1guAQ5Il\r\nSAVxSk7dSu+RN6VZW6HnjYHkPZPhbH7bIB0DXOB6bkZJ0+rEd8jUxd/31SvO\r\n8EyEPRFddFXgrcor1Rse5/2ghWBSQ8yQkR6LfD508Lfnx9oYF76X4Msc4FHs\r\nqd42b4jPwGR23D/Og859DiLRUUsmX1sqX1zFfGCbXGDvKIK0fkLl7U1dVeR6\r\nICZRU/maifxRWn+Lxy+jQeRcz424p5/OmO8+RpMoVA6G09fGEDKnrUfSUi+T\r\n1UaqWwf83izqBIFo75Aj7jSzwVrK0/ZTpUk=\r\n=HZul\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.89e938e","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.89e938e","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.89e938e_1666909726630_0.30192777556304895","host":"s3://npm-registry-packages"}},"2.7.1-preview.1b0bf78":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.1b0bf78","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.1b0bf78","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e3811fc19b1e03b9c1a844ff175c11010d3c8587","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.1b0bf78.tgz","fileCount":18,"integrity":"sha512-9AFaHcgTH1n0FvjSbnLDbJm/1XEMFNM0pC+ykRKmViCDhsD877yF0giqUGdZHk25z/mG38C/oxdQPTZM9w9y1A==","signatures":[{"sig":"MEUCIA6CnYo3OZyjz7b9F8WZAOQPCGoWP4gIKdHCGge+EPwSAiEA/ZYw+npw/De48CnDwYrRWnxIs0UStZsCKWc7cK3HQ+M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWwsTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrt+w/9HUHlC0S0GFyNM0iGR+7h3HGXvR5BvX+GynACvJ5N7thjzE53\r\n9ScMtqF3FkRsuXCO9N43UGd1RlmBQ/0f1ABfqGn1iiKCW2mRb15ut+/NL1by\r\nmlbTpIE3t6h3Zznz2AJyaNXvf8GdOZW79QsqGjweclmVu95CuPkm6TeMcdyg\r\nmY9PjfaxWPVzyMfCq9duVQKTt658PVXnnJDqD53nFpioLZkctJRJDDNEc+SB\r\nmFv/iylz8ljhP+L3awCAV4rKm8+cbNWXZYgSWBOFgnwBtUp6Bhb4IU+Bf3QE\r\ngyzkc1wkn2l2EhMGSe6IALJtPA/9fX0ccPVluGdUe9rEno7LPjCKvafHlNxU\r\nzfZ7aBdD29CUTzC3OoElfkm0negREuuGJbp1gPxypQ62jF1NhhlcGWwp6Gdp\r\n5wn7+WmDkPyzGj//zj4JHeC5G/ZKYhM+Niq/aQcJB7cIudT0Yh9g98JaI70v\r\nEV//73RZjUNMuz11U0nlDqE3eXudnK/rZxD3u1rwPviIMN5ZI8OsCtcrtt2h\r\nKFEiQfim0+0OYL/cbW6bVO5NAzNvcnoC0s5Ue21Wjjq1I6U+QjxhQeNQCK6E\r\nhBRJpoQBz9QP07R/x/mYtaIEPRqvYlIl9mpbUEijOwjSfglsNUSxuld5Qure\r\nivhLcx26IXdKi+FkvFzpnETcVGYuNDn6WrQ=\r\n=+lSd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.1b0bf78","@microsoft/mgt-msal2-provider":"2.7.1-preview.1b0bf78","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.1b0bf78_1666910995627_0.28896706773453307","host":"s3://npm-registry-packages"}},"2.7.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7dd0b6de5824ee71bfa21684969e31aa897d299f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.0.tgz","fileCount":18,"integrity":"sha512-6G+arGn9MfzCtyXOa8JAcCYrcX5iUXlh6kO52Tilxi2lpJ2bkZpUGs93D498Fk5i7GzGkYzXaArFi6FuBWQF5Q==","signatures":[{"sig":"MEYCIQD3moK7Y/o0tdy+YUKMOw21Wo21/LcG3Bx3tQ/wbiFDKAIhAKFOq7pnh/aJ9J/BqACXWLdCyq3a93hulKPGVgBb2hce","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXBe9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwHQ//fOTnqtpgXigicwwFDuq4/7O/uqwua9UsjF7zxavhCx6ZTRII\r\nI8KzRNXjPR3ekOG25eK0Xi8zc17rKDAJ4dyxIzZT71Ql8eWaiVzQdCTUQLxr\r\n/72jzGgCesEV4lsO2yx5+P0D+zZ25bvgv0I1SWKMvEhxiZbt0aC43kJA3GxU\r\nB8F3NFAZxNzPOl9FQQ7RsTZo3DKc15oukYM+lE1iRYwOVVQeHFcKVadfEzI8\r\nORJgMeLsgYLqpqipq2gEbP+74mgETaSKaG1tN+zaccCelFh5k/+o9nZ8b32v\r\nKQiNGqz3xugr9MpYqYtkvfCG2mk+QsJLYSVBV2wbBPArKiVt9kaJghJXU8tC\r\nVgZFpFrLB9JGdru4aMTogQNYZz1Q+ulhg6dNHe+7tfRjz1lSjKAImZ3/PECU\r\ntjqx2+qVmi3T455kjX6u0MsC2HistF4DjzUIHNN1KOG1Ud2kToMI9IHLT1xp\r\ngoY8rg/huDwACMV+dgm+UQ/WjZQItJqdmO/IpTAqPUK6s3rkcZrHYzCgQTvH\r\nJ+nqjSWVPupScAMOBGu3cL9Yr/N9+DqifqjkXjhaz+RVLqUkAy0s2T1Re+/J\r\n+G+ClpK33Q77MAJtaCpn66g2Bir3+QRk43K7JcHQNf6WO+5ftml5J4nP+T1T\r\nMxZTaxe1wSXIq+vyO0vX2+J7odYkgxPbl9g=\r\n=fP6L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.0","@microsoft/mgt-msal2-provider":"2.7.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.0_1666979773768_0.4112137475019384","host":"s3://npm-registry-packages"}},"2.7.1-next.fix-people-picker-flyout-a11y.b72c3c1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-next.fix-people-picker-flyout-a11y.b72c3c1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-next.fix-people-picker-flyout-a11y.b72c3c1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e5b219622b6ba77d6ebcc3c276316598014a2fd2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-next.fix-people-picker-flyout-a11y.b72c3c1.tgz","fileCount":18,"integrity":"sha512-sxDNaFa01Abl+LUVND5yeMvIFfHXFZCbon8NdspvxwqoJeu0jMP47vfTl0ydV2RaOMOgbrwjanLnmARpnyub1Q==","signatures":[{"sig":"MEUCICszfHH65f1IUmewMT9r6fJtk7Rgg9XFz5YbE0A3qUlQAiEA6LXSb6T2B1ZGEbBsc2IPvgxa2R272whVfwxOdAkSD+Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjX/wcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWzQ//UbJZ7w3XgvCgzReZxVzrvAmraMag6uVWzIEeWQ2/iyP7h4iy\r\n+9Ed7+dw2AKgbwm7jS9QDrIZdmbxF+iyNLWiyjmJQOqv7GBRO5xm8Pvlm/Vj\r\nFtmcbeAFCB9qQdKWOfuzjWy4wmRbLxQEgS+Mf60pMjBECbbqT48CHyDya97u\r\nWL49jcCDm+o82vpgeM+WfMv+81v7qkaNzyAe8XTaZ64NP/KxLipyMNIE558x\r\nkoa8IGb9tv0yAV3UFwrBLcSqBWr5WVxgPx8XW0X/lHsMOEmO9O+tPwhC/u9l\r\nniyKaXmEaCp0Q5diJ6rGPpYg+wlnkJPrARTPyHK4A6i45tFEQw5iegjP2vVt\r\n1p+PhC9kKbC8W11FNNuXYssCLauJ7V/lSljtdBCEBaRUXkXTZ9Epj494rDw5\r\nnCD+v1y2l5wmgOrd3ht6gthw/aNepgv/54AufF91P2/msfbME4vLrelBO1Jw\r\nkpx21nAi2yOse6L7WWCxiO8VtUzWz/74MbHMOlGbDMOYCPA5lkzBBexbnJPI\r\nb48BFLXGD8DNHRwtJ6zvTTnlmlogs7ZM+WXwcT7SSWDXenfkd9QLuI2xcluu\r\nHXU9Z90MRr8LRCvr+jUbXJ347DPQW40XIPritmG6QWltVudPwd26pMbjehbV\r\nBq2L6W0tAa+BFOzCfU6Zut5u8Ej4tNJcRXI=\r\n=1FSQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-next.fix-people-picker-flyout-a11y.b72c3c1","@microsoft/mgt-msal2-provider":"2.7.1-next.fix-people-picker-flyout-a11y.b72c3c1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-next.fix-people-picker-flyout-a11y.b72c3c1_1667234844616_0.3737210548758738","host":"s3://npm-registry-packages"}},"2.7.1-preview.3b1dfba":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.3b1dfba","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.3b1dfba","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"bd019b08075744e214ecbcc484a4294132ea8211","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.3b1dfba.tgz","fileCount":18,"integrity":"sha512-0lUmj9ITJUhxWT0+gq/l913rr3X7HbXqi9J8oeE0xeZBEnPk1YwwaO8TEJXBlfgfaWm6iKtyDh2p2GDvhsNvyA==","signatures":[{"sig":"MEUCIQC6eAXc1HJVLazEKE31zpTS2OUyyDDi/UAf2W06taZI7wIgUKu5vwXNMJvDColNOqezqaaXdFiq/b+BUbkHX+GmFgA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYSy8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAUQ/+ISvfrQmyvfhCx+nluwRJ2R6vd+FZxw/B+YIi2h03OsV19wzT\r\n+9Pkd+mjMRYeC1dBtVZRLZXsIKsTk7coGC0BxXq8f4lLU52bGozf/kjKtqJF\r\nlLUfMG2JaSjOSipQ/aamzFh3NHUHNCxm6YqyVbILB+YJV+5d2vGwDXEnQuKR\r\nBJAkwBnkgkIooeerJu4bNoUVLOg6q1v5kTsoa1W6/HxOsD8l79dxZHjAxpKb\r\nQeqTEJw5B1PLLZEgZPyUfyvnMyAZ5CTSBxd1+dCt7Y56DuKKuL8gagIFRFLt\r\nYYCxfM/cjh64EyiqPUa9avNuWj21eXhqZ/4wNAhhMM7pDMB40Sfjb3bEhLf4\r\nSR/Rwzqev5go/sxDEqi3NGqWv8Pdt6oIwqV868njW6A4RtQUfrbNLQTvLH6j\r\n0o131L9b2PmCckQBbVa4EfyutkV/QLWhrkqhdQ+QGCMb66FAOcr4VldU0CfE\r\nLccEXcaV+NDHD3HbLn+QRcjZi4oQ+QH/gelhCbElrp1Maw2nNEqhC2sYQ/i/\r\nUHTvTBprDoSxpkjmhju6JJhAZdXDpj8V00sFiqx0VE8WGGaujcE56+rvN0sN\r\no5vnSto4GTQ6b7nfVM7gmgVrU/mSNVwxAz2zmzOkDvIxX5jGlw1VnUbgKJ2H\r\nDFLNqlug9R76bqVsKvRBLD5dR3pWYr0DOyM=\r\n=qlbp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.3b1dfba","@microsoft/mgt-msal2-provider":"2.7.1-preview.3b1dfba","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.3b1dfba_1667312828331_0.5029042292587724","host":"s3://npm-registry-packages"}},"2.7.1-next.fix-people-picker-flyout-a11y.0210f09":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-next.fix-people-picker-flyout-a11y.0210f09","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-next.fix-people-picker-flyout-a11y.0210f09","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4cbb322e1058edf51346239c53d4f6ac75581808","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-next.fix-people-picker-flyout-a11y.0210f09.tgz","fileCount":18,"integrity":"sha512-2vHohbW50U6JYbpiXLxbwDBXdQRE8hIgVkOVDGmrO4yfLconF2If28f6zMTeCywygB6hBkq2/V03n5mTO+hjdA==","signatures":[{"sig":"MEQCIBUSGZ1EQf+8tKiRxUa7Wh2nNF/NXgEWojMydlbNoHeoAiA0+QGWQ1FuIxQ9B/gh++yE1uUlq2GA1936ovJkBcDAQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYVmeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYTBAAk99390Otg9zkGE8XvvIzYONbrIKXG4knRSBsYdegOAgIRfQe\r\ngRjnOXvwSKJqKtywwnPkhP2kiwFj65cjMCWjmLK2EsnJ/Ja8Ag1VVuuC9/8n\r\nWyWrz+JLFA/zxqw9JdMAU3SzMfGksiY6vz3tqHqtiuVSd+QHoy6Lz8WDRqAa\r\n/vQpa3EpKESCHkVa7mhhs+K2jt/zOVQ/hD8+hJ2hUKyQcQCGDKzd4amp2MvM\r\nsdfFhwu9NDjMGFqUijocBpx6JyJ5iR0ouH/ULOLtGNjea5vAOonpNRxvL3SM\r\nvEHdlD/1dsUwzBQnQlzQjHGsSNDHn2tZokHTUPiTid0OQ2/us8gHte8T81Bf\r\nYud4uBaQCKkQU6GNt+6Eh47e9RsWMmgeuzKWK5GCEcKsK/1BsHjUc323zEjM\r\nLFdYkkV0wfzafY5hGimUqMNfE7ESh9kaCWcunY6zuZv4nBsr7ff4AZWsM+7c\r\ndrIdjntfWSCytrzppM30vvwnq4KQWntpC4/GaUAlaT/HKBqONQLGn9YxglRq\r\nR2zObjqQp4++Eou1IcNHXsMO50l0QnmAPOJxOKJZP6T8Wwu1Z0vboM/ij6LL\r\nAmvwHg4j7PTFrxLaD7nBC8w5kWwbP6CbHpi0M55eXWD97zNlgDJo60Oprl2j\r\nC7d6UpIm1JvcdaWEnLEPzuN05ESZW3Txp0k=\r\n=ZTqm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-next.fix-people-picker-flyout-a11y.0210f09","@microsoft/mgt-msal2-provider":"2.7.1-next.fix-people-picker-flyout-a11y.0210f09","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-next.fix-people-picker-flyout-a11y.0210f09_1667324318637_0.3174110516826132","host":"s3://npm-registry-packages"}},"2.7.1-preview.37d1add":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.37d1add","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.37d1add","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e9fd24b7f9ff9a30036dda85b99e7efd4655aba6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.37d1add.tgz","fileCount":18,"integrity":"sha512-7O3ApQh3DVjJYymKgrP3dJbEL+nCxX8ock8Li8x9eHGWlqqMF0r5n1bqjG285mOBItiSl8Mo/BMphXTNAnhgWg==","signatures":[{"sig":"MEUCIApM5xi4Jwz5JZzgpw/fCrYfLg5+dvgCeFdoJL/Rcxv4AiEAuYz/+2j5p3DBHutESvOTHhC2GmDGkDB6Su1no8jFfuU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYZVKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8pw/8DQrkMl+ARI62rj4InKzzVO9VlzqtBq7G+jwB1o9csrD99IUY\r\n/AHMtIPcBXJ1Gw8hLKvNUyNqoV46P0lBBPV1dv8tHmFhGV+4bOPAGBOVMUJy\r\nHxeSZsrgmeq91iXOY6uvWsGI8d09ZK9HiJHnw+LBVS8zJGVfEJbWtnFmNtku\r\nRW42QoKBl7xRWv7FtHVoi70AFd07GMzWZk8X4Ucq3H2fVuCywyuvCSoxBvHJ\r\nWSHXCd+CdYw/yA6l0+6EvkcSlHdjxZkN9QrCf5GnbnPv6AjgNko6EISE55H3\r\nJgsWKoUrKoRsNy4nNm/I/OdlhOBci+HsYD9oifu2DvqLPVPjq6FysE6Zy2BC\r\nMi2IlS37LyPscgF2fGcN0HkHJinqgH8bV4G9S6VJSSpytCKiEUOlwQ+b2sXT\r\nPnC5/UZlnUR4X15BUA1IWGc3pDNfCFKYR+n1KpBkSKE1Q1TMVeWgycJOxM7y\r\nhoopOeFxYCdSqJYkS2B7F6EqkXuOK2Yf6P7ywikUB7kJDCSe0PHR5c8mcKRn\r\nVWD75AsyuSYN0oXM010+KXE2/b90QK5IFgM3SLuQUTs8KgyPqrLOs05z/LXW\r\n9nAQ3AsilOHWmbpOpEJDQzPbznSrPqr6wtSCw+AgVlpYkHt/IN5udqvXbJlk\r\nMMKf4T2VBwwLxhSaAErF+0qjryNGF5MMI50=\r\n=18Hq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.37d1add","@microsoft/mgt-msal2-provider":"2.7.1-preview.37d1add","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.37d1add_1667339593836_0.4145903866036067","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.537a9a2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.537a9a2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.537a9a2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"de88944e5cc9453215a83cae946f446e60e8a824","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.537a9a2.tgz","fileCount":18,"integrity":"sha512-O209tUrsT+Gx/kpjchZ151tky1lcL40g9CYm4S9sh+DFRCoAcbWTgwlQfcXzO0YHgGSfD1OJmwtOV2VqH/A8Og==","signatures":[{"sig":"MEQCIHZ5PKeYTOyCO8JurRD/96/McTNUxbubwtYcbqZLqgwaAiAj6AFLEPq+AiazeV+nOveEe9SpvS4hl2xjbxgyvRoxJw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYZcPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmob5Q//QC2oLw61pBOhLtOAkanzfHZEatSppjDu7FTXyPRPmt7OHXLc\r\nLpvtJwVsIvSrFfOonJwjU/kg8vBLBkgRzL4BmyRc1vCZohs9hsGtcoKTHEeG\r\njeu++/oN1bwlR0pk0u2vIYBCJldmntoEMjl+7RLGEpaLBCy7/r1xf24VljiK\r\n66ygKv9Yg1uKb2bPDqOJ5u21sjva9M+Ao/lRySojCbc0lEivgT9rXh+boRaq\r\nBayyHyw9KFZaAgV1gNdFAEL6hpNunNhMP3XKgwgsNKIeXNm61N2t4MKfTh+P\r\n0Dn73i43yzR7gP1ebYn6zXgmsumTITqYwkLTCy06lOv9c2I7w4gjWpgAhRPH\r\nXehR5l7TQWW1cA1zGXsvVmqhRS3GPxRVjf6/VBW1J72es364ZmnHbWS4qiWp\r\n+EwT4CvFpgxYuG46S7R4y1pqTSiPNTrPADzWN8lp0OF1WI1bpZYb9eizctSL\r\n/o4GJuC1Sv6G9eokQfg02cyMVhvB5JD4uQD/88annVAZaYGr9+uDzktdiQ/y\r\n/+5iwfTRaFrnD655vAIcjJvyGK0uMMyEWDIzf18lrc6AvKOE2mvdJUq9gy0H\r\nqPO9G4TL7Crwy3RkBQeaS91Q+rBdn7euC5Nog5Dlug0oRbqsx1WQXAF/t/EO\r\npr52raOZ7WMbtRb0xpW7jHdcmd/gHGsM338=\r\n=r3YW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.537a9a2","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.537a9a2","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.537a9a2_1667340047334_0.29873318104551494","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.0dde7ba":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.0dde7ba","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.0dde7ba","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d49db201b6ffdbabe53d684698bb795f1c3411d7","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.0dde7ba.tgz","fileCount":18,"integrity":"sha512-J41vOnVdHfKC3rr5BsXkeVwTabOptH2qUTDPVTGUipjJLp+l9NIWw+do/WQmGhgOzLjtemw/7+HLPRMt50ZGmg==","signatures":[{"sig":"MEUCIQCXHoNnwXj+usDdkCOT2yeT983O4wRixs68EqP8ij9KfQIgCgcQlEAGQ6qYiHD+6yQPQDRdKYzq+dBSa+++SHlYskw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYqGvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqINBAAiSb+DFypgOunicO6wbJHx77TmXYZRUNDmGUCFeqwE776hFSa\r\njSlaTgsDCrQxOXgUUbzSrhrAKHGy7uDLXiw+Z8A+RuEfz3ugB7ba7XLa6+Kc\r\n6VtQPw/ZWGwlSRaFtNnbBpP1Uj9Au+xM/300jkZepRWboMp3NyZGm6G1KTgF\r\nN9+tzJbZC9E0GNjkufIRtMeU7qAOBA1fetxyySFLgMQFSxq2JuzfO3IeNENc\r\nwFsITSyqYTB+O1n7F7n+iKqPJakcuWuGafu9mMHLL8gh5U8LPEE/H+Y82gXb\r\nciAoJ1puWcoe+Ltdq75xsiLoxakiuSKOIrAB5ISeZHC8rGF+IOouOVhxBSny\r\n6jqxYv4JbQoxDsatq12mMGjH9HiCM9w/gLwUyjjzSiW8nXHKjOklNACaMV4a\r\neA+kuQ20U924pjJ11delf7x4Hw5vJ0h+WNU+ttXBDG1VGY+fJ6GBqdORlb6h\r\nNrDeIDKYZd5TzTxK+0ejAoRK903HZQnpG7VUbjHdP6jwMoK3UQLBQpxnLBc2\r\npto9oSHk+AqjRGVDeUAQIncBBFDpFXkJNDo+lvBjiSZzGQUsZzBPDywUNESa\r\ndYefjSvTMg1Mh8rRqjkXO1re2BWzwE2AEHr4xEJDkzeAhehnSdrHIMwbcTc5\r\n8ZjCPk15oFnf5eqElIMml4G0WZS9UfPRs7Y=\r\n=HNCx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.0dde7ba","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.0dde7ba","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.0dde7ba_1667408303540_0.5061047363734046","host":"s3://npm-registry-packages"}},"2.7.1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f5ede05fc6169ad13e86c15c55d2829ea2597de4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1.tgz","fileCount":18,"integrity":"sha512-6yCHXJ4jQgYTunxBpau9BtR57gL3nSayPLh0nE63kH1pv4H2BuexGbnb1YPVB+6kYcAddiWoHQvqYMK+gw4kWQ==","signatures":[{"sig":"MEUCIQCCwFbrm+DjmGwrk9DtZrOzNfXEe88pgRIhPVK7G4CvngIgGfQ58dTZde3XgGfUH5yANyEpPm/I7wf4c6J/NlNO/Nk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYrmcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobXA//ZWTn3GKL1qoL9KqfPMZN/5bauyVM9T3oxvgICPQQjFalGvDL\r\n43XohpczXSdzx3Pgw+6mfAcOC8VF+HGauOqAaQ8JHNoNcB6/d50e2v0nvAXV\r\nnDY2JWfdVZgnsVf/8wKHq98eRNTaD1h4xQWDQwp2le1NNjg6zzMP2a2QL3B4\r\nSdTLRlesYu9YVJ/xcxCIJNnNsQ6Y2PpLWc+rlp8PNOFg/slC1kqLrvQ39wPS\r\nXToRlhML1qldLSsL6Pwz/AX0Ow4N20flrGamJaXo2FkNtwV9qDJ11nq4uB7r\r\nw7CPIeUxNZ9Blqdn/Wox/U9UdAuMMA9BDk2ahYzOPpeYdjx4ex/eYcUiNLPd\r\nflMJTLNSiveJy9pXKXA9wuqjNvtfibWaAsqz6ivmMWHzI3nL2fguB1o24OPo\r\nHTDOy7CFgtJlVUGeQZwjsx0ciNSeCTSny1rCGocIEaTMOjrBGDLCTIuM6IfU\r\nMRDyuO75PD71V9HStQyTV4tfsF/kEDNu59OxrnD1hKi4LyMW8E6iNOvIYvyq\r\n97oTGcVeKdzmetsjl9ZK6WKErGNmplmxEEYbEoafhhOVaZoCa2qcgThyld1R\r\n23Zuh8D/mAbfz1J/FX7szx5BgCEFe03t/XpW2SBgZhxOegggTEano2Tm+Ia0\r\nVfE2LrrdAFAmZMu1+jAbJm91/YToR1rELwg=\r\n=RVoM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1","@microsoft/mgt-msal2-provider":"2.7.1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1_1667414427843_0.8076823537805908","host":"s3://npm-registry-packages"}},"3.0.0-next.fix-msal2-provider.89cb1c3":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fix-msal2-provider.89cb1c3","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fix-msal2-provider.89cb1c3","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ce2c87ba8f084ce80ecacf2256fd5613e084b5b4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fix-msal2-provider.89cb1c3.tgz","fileCount":17,"integrity":"sha512-BzaUoelbyGjdMFZ26a5vDWm9PFeBv13ZtMQjZ3BuSYTKtpCdOC0uSNkK/ILzQbHO8BAXndPVXh9GhYvjt93mQg==","signatures":[{"sig":"MEUCIGAyxGQdC++ybXI5FC7jpqsZslOxYKctb95V/nmsAU+/AiEAyMABtYgawV+c06y6nI6d9QQ0mNfdx0zuUwq6usyFNG8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92732,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYwR9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2ixAAg7cq7SR8XQtTK8JXJO6zgCEadx1cnZbnwQEy3vaLhR6jsWIF\r\nfdEJwD0ekiM0q6/hW9zZU0Vv+SCkogiz82hXm3XDYF3XR6VWmt9NfzmpVh2L\r\ncqtLMCcwi7WdZcK3brgpXptavSUEtzW4TJuOTH+NhcQB2wlnXDucL2DNoue9\r\n3RnRcsKmf86wad0CnwyVYnoe3UgN4R5VB+RcfW7YV32OiiD3RXx1ihbQlCbm\r\nFHeW4Xu+Bgqq+WR5uHYfwc81MpITOLx3RRB6Wl5c6BIj8hJ5RlHFd3Ptkfyd\r\nbf6RnSBFbp9VBOLg0nIlSNJX5xGMuQA+TQB/cT3UL6pe1+f5udtzuM0XGc8K\r\nViRvx1nbdQ6y/TofrUUcJV/pRrjTBnWpBXcb6bSAoUYHXe2dJPCCjIDq8wIA\r\n/UZ7MlYPNSbZXzLWh6YhX0on0QG100lMBScvtaZdbi5IPXQIr1MQNF6Gb2wu\r\nUJmouHGRceChw3rqmuFzpzTHw3AOxaRrMjoXypxoL59qVlbltEwcxEErvdtl\r\nLrxzPAJ+mTLPd7VUszrIg5H90MqJXbmotJEs7Cc0/otRY9fsnZ1DsOwRVGRS\r\n18qo2/33p4PykwnGs1A8pLK/kP4a2hZ5cXPPme6/rfZ46Orr0GNwK9T+S9z8\r\ngEfLwBtaP852IcC8Z5i7pwQSpZX0gNAcFf0=\r\n=DSgV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"89cb1c30a6169836d1ea62f4a671b382ff9ae399","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.15.0","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.17.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fix-msal2-provider.89cb1c3","@microsoft/mgt-msal2-provider":"3.0.0-next.fix-msal2-provider.89cb1c3","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fix-msal2-provider.89cb1c3_1667433596814_0.06773805535000954","host":"s3://npm-registry-packages"}},"2.7.1-preview.728e578":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.728e578","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.728e578","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"21466e4bfc4858b24763efffa88119f29d155281","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.728e578.tgz","fileCount":18,"integrity":"sha512-eECYTZNAVrq8JMOGSQjVrBPpYDLMCcNHt8YfNtp+qopYBsd5fwwa2Zb/J++XFShtWoBpyGB6oEmsWIGL4uvqaQ==","signatures":[{"sig":"MEUCIG7H3y/t3+f4zOMJ6wjkAIABTWEsCIdWXTJFAgehNNT+AiEAyo5aw3b7qiEuXCmZZVy5B5pgbfRS3UMfHlKXaZQGav8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY+YxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSyg//VNl/dD6JMR37rUCooEBVK9MVapiyvAWwgeW92nDJ1cg4w+/W\r\nOZSXcdCw55jrs3fgN5IYgrS7XS2bFg4uoWSKMGSFhZ/NFfB9W0dITn4NVyrt\r\n2UguacMTJcvxorXhTXvJsCsBdDGXyNW8/BBcThPZN1rh2XAZ5By7TaVpjOxi\r\nXKqa/97DJnWnRm8Z7Oc/CGJ9Sr0igS1j0mZxtSkWox/kMS2FTzVkxkzij0WN\r\nQ0ieeKjm/suUJB9tezs6MvjJg5lJKHdC/QiAYlkLlxXm2afxcFNBuBCNj8F0\r\n2NaRPlOoQOustjkMZQ2RAq9EpOafUMdbJ6SEQkTmDKL2YSNRRihoidk5x0Er\r\nJkxB9pI7KtcDI+6o+oVex3r1H1bV+igCv+n50RuhDziYOVMj9I8ieP9wYCS9\r\n5/83PLtzivVwx6SBPNbzsxiz3bBjSHBF/VFw/9EbKSem9cjpPkCdkuFJLlNc\r\npdNiT1aJgiVNzUJNvkT+zh1Pen/eqitpGmH6zwzt3sfJEfy6qLGbrooeZi4d\r\nrdgShpBFTrt11qb9KO5eR2mQJHHGhmpUeq0mlcDq6O05lnwLAZ0MeVBcBoWl\r\n0lLObdWVspuGYSh3EJDtweuheoSX6zLLdTi6CzJSCoMF66vMz4ggTVL8dwKV\r\nIC08vYEtxHk/U/+D05b6nq0etxPBr28thSA=\r\n=iMJs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.16","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"12.22.12","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.728e578","@microsoft/mgt-msal2-provider":"2.7.1-preview.728e578","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.728e578_1667491377024_0.6529783543663508","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.dd41eb1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.dd41eb1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.dd41eb1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"3f53b9303e081c6b2496dd959c4aa548fed1688c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.dd41eb1.tgz","fileCount":17,"integrity":"sha512-zdFcGUWDuxOo6LzjdgCuIDHYnJavs6IQ5heMXOUUQ7usVIQ/y1eUiylo3Hse0egZDMTOWpsOBF47GJk4W37ydg==","signatures":[{"sig":"MEYCIQCQBivc0ZIILFFLdjBLKjFxWpS9Cw3k5n5c6PDUU+YsmAIhALle9JF3jnk+qVcitKBI0Etb+1+Tgd42V2Nzpjcuc3WJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92702,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZUA6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpr/w/8DK39d8h6LJljh3wx4nlzWAujFX2YJimdYpslybK+r+Yonx9O\r\nFuMqfp+0fQOxxlMOV8U/uSqmLtkKZOHCSP6iPbaHqyXK+HPrjXcBL1ioWxRQ\r\nTbXN47/rf2vZjPqbCQUjh3fE8oU5LKoFZaO+Bsvorzz4p3lVgbZ51KQ+haZv\r\nze+FQ02IkCjWNV0flUkHoWWkTk+RFLUHUGOCKMrUnBITKEmY9iTE7Eytoujj\r\nyk+l+6IDUAHNpcJeRJNbnGvsRrxnx5Hib4DrxKWvHfdk3rrGmmVJrjBhuER+\r\n9pwdyziZE4sPnuHhKkmh2zmaZUisvK3CSKg6WF74PBqAbaPMvVqLy2xe5dJX\r\n8YmksR0fO8g/Vju4yxxVDSUmtxJiQT20L1XOsdKYFR81cl/f45UW8lJmOLgm\r\n7866+2zcMJ2f9BsOP8WT7PBxGe0bCegxxn+2rd35bv3aFILTln2+dsKbW76g\r\ncEIr6TrORVccXr0IJuWTeX1yP3j9EnkGYQ4eu8xm6L3JfEGQxf+itQ5rz8Sv\r\n/v9B3wooFltV96BpItlYTErhpfMlSYwdZ1Y7O/pJ19vr4is664chKRsEudC+\r\nOnuEmexPpvxQ+SqS9sdZ5wVMEkb+sc7Zj4qLIt8stdy3K0WFrYM3Q59djeJW\r\nuWvvWnU+3iBCfJjR1PgNlZPkXps6QTFLrgQ=\r\n=c3Mq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"dd41eb1e0425695599952733d6564006c463d775","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.2","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.18.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.dd41eb1","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.dd41eb1","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.dd41eb1_1667579961805_0.03335150792049113","host":"s3://npm-registry-packages"}},"2.7.1-preview.ce9da92":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.ce9da92","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.ce9da92","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"aa12abc9599d5db550390f8d052bc610f73e4ece","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.ce9da92.tgz","fileCount":18,"integrity":"sha512-OhWmwAjKukrpmyiDxdG9FvUyHpVfW7dhJ/DyAuLBnZxG+WNpTFBlAWmMWrkeARHXDhUVy7tzxmFH59Ux31UepA==","signatures":[{"sig":"MEUCIQD5lhADlAtU5dliN2W6Kvga5d0aRvxN7wpc7uw4QLAw8gIgetvJz5+hpD6U3trR93Zav0iOG8mVXqh2BoRbUfZQGC8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbByDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiZg//SoGjOM68H1Tqy+YyeAZoidWipEG171+9l0kQsoB3mvKMbNWF\r\nQMkGjbLUUE1bL6DMR5Y7azCaOyP6VcHpNeFPklhkA7IxYpnJ+ADPcOgiWtuL\r\ncaDzRAMv0JyZp8fFSW4WEcA8+JQ/fQPNTEKeCIvSnTnnNNWuKB5PbSKC3hPs\r\nQN5si3hdp40oNvTNotdaS+xCtDFYBpEOrFwB+llPWHjBu5unysaTw4ZRtJZD\r\ni2nj150UXnzkdKIMimJgiXh4jfFTFkZMQrJupD/wqX+VlW/2cc/LKDJgf6aa\r\n3lkGL5iwXLanCDFG+5m5zqK4T1YhmEnAKKhmfXhKfISYR+8ZQ3FZcqIs9Ron\r\n66js/df2ddraIj7JqPx3jqNF8R5bBN923bvL3YT1cngqfwZBVTnngHbmvbVF\r\nEB9cmI556JIi+ZIN2chyD9fl+Rj6yMMWwCj72vHfI2CXQPD5JdIOJBOiwDah\r\nPYgUeTOFLYPyoW3mMG71xZiuTgQEM5kSojYPumWtoR7k077+8uCLunGWk8jT\r\nzW/QBys1SZayQLIYMg7wDgIET0Ek7zojsxwihYIVCOcM2INoykFa7tcw7ief\r\noDHsyOcKoLAoyQOp+AkyOGfdPFCiG6mtycYTiV7K3RsGuxzqDec76sch6z6m\r\nC4iEh0FG/RMuQi3k97913Bxk/WLa851O8UA=\r\n=FO/E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.20.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.ce9da92","@microsoft/mgt-msal2-provider":"2.7.1-preview.ce9da92","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.ce9da92_1668029570794_0.6030885400875785","host":"s3://npm-registry-packages"}},"2.7.1-preview.4e59158":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.4e59158","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.4e59158","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"71712b087d74f0edbbf1097205ec8603e40381af","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.4e59158.tgz","fileCount":18,"integrity":"sha512-opDUJ3mqgXN0ssqXx1kKQJQwN+BuaIky8/aKg0OOjj3AL4MxsWaYCSDnVw7QHX4hFfQMFWI+B7sG2ZDdnFXnKw==","signatures":[{"sig":"MEUCIF29uVjAkkEL1+DN1sSs3PEjXzNtIMdU17KSpSqb8/JYAiEA4Ua0lPQLe9Otxo4Hh7esEbuPURsJkNV92ltQ+5Rtq8g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbYElACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbCA//SkrwVR2l2ibt8c5EbJekWXeemFz3xeiibtwWZ9VSHyK6Q/fk\r\ntSSCV5r6pBSvvVW10Kq7c1GSmx8cAUd2GUXZg6Yys2BF+DoMd0pro2VGEDhm\r\nJiFC7vBHwdIK8gMXwHXy5FeGt7Wrsq+nNwJ7g07HRVlIsdcVROZf6zjibWwa\r\nx6UNCeh7iN2ZBWJoMGrqQJxtXyYxfnkaafjkzlMVPwAQuQVnCGiMvIPr/8Sy\r\n2jLU/1lEqlN2fVVxB59/SAQZfiU5u+on/CoWwCtboEGPeKGNwBMP7oAf13Vn\r\ncuuS94SbefV6/Y8cYIR6DN19hkoNBU0nueODBxC7S0ams6GwexDgN25PeoPR\r\nlISmCZyvKIqkHq/smuKvO+0HdH841UTEuX2YDQVb7qNtNoVo5MqwH9vYf0kq\r\nuv+It8TuN/RmKh+pXWwE0w9eyMp5nYcjUpr05wj+MZXYtoZoZ9AAw26P/CGU\r\nB5XrLYWDcFfVS1KoiG3lX7he1H8dMfsdgU8UHlYjvzMV4PyT+FfFZcAuX8vZ\r\n4Wwj5SbvSGwlU8ZipbBKX62Dl2VlZWmTaC+d9U7x+bWOVpwsWJjV5W0kRevl\r\nnnHDkO+q4OipOg5tS4HIr2Wm13FyEzyXOcezcyxeK3N0orugtWClj5fQU+dL\r\n9GrimNcP2urcYNvPxi2Bbw9qeDilbIaQn1Q=\r\n=8Ale\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.20.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.4e59158","@microsoft/mgt-msal2-provider":"2.7.1-preview.4e59158","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.4e59158_1668120869226_0.030601211196344957","host":"s3://npm-registry-packages"}},"2.7.1-preview.041c71e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.041c71e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.041c71e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"917f1dcac540db76fd345723bd316046a1e306d1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.041c71e.tgz","fileCount":18,"integrity":"sha512-+VJiAYUMrBOZwXW7k+Yz08mqoOPavTQbVYfE0+bg83r4B9UlBrxM41IYsH5CN0m7lCGnIUlScHy8NNxqNSrd1w==","signatures":[{"sig":"MEUCIQCfIFCvhqPaXPm/5jQK1HHJ7wEg6oFa9xwHOurMw7/mcgIgGayVvXSlwqk1S7p8E/ycOCv5ANd8jUiOhVa4DPFxJYU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcfvvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUAw//RzoEW2EQuWkDVvihwqLjKv4wLMVAEkkK7SYxpp7KNw46AqXz\r\nLoMZiN8AGL4Wrt8lI/UOr6OoVYwJtoXBnYPAiW6wf9UXC3e2TAu6VE2lrYIF\r\nhJkXdeMOa5H9rWDAcYjzoXnnrVxYzTY2WBaklK0+oLkIjPfYJPtwNQ7MAC31\r\nP/4D9HRA9QMYWtMuGXPfzSPySrSepGIgEqQO00IoYABv/Q5v1NUKqgRtgJC5\r\ntKz+sqhPNmCMwkYPMq0OuWAEkZlE0XvGm5RNLFNJ5FlLUdHpb0ir5l0Zq1k3\r\nUkZi/VQ7V/VL0OtnSWz1X0BUchUFVkOtx+5XF6tAIWlh85CqWFk1dbCTX3gD\r\n6cOLlhY0GtMfZI6ZSzHoBo78p/TOQVQLZqs/WDPAznZTIY52ipCYO+Czpzi7\r\nOwPWtN0VNoEUGTp6l8Lo2Q4AlCjIOKqRqCUpXvjc8wkMRDRUUa/IWeTb5rDt\r\n8QF4xdfAZfLLQRMRQThBPtPk84Ds0Ny5995tyaPDFUOIkOfLGF39oiS6jNDk\r\ns7b8UANBNm1y5hR/3NijpmXO+T+f8BvlvHMP1sPb6C/pUBbIwu2wnDHA7tQy\r\nYeKDbkfRC1sDqDYqlQhL52I/Ii3FaiKUQdLTrxC8bvSWqsDKKMvAGb6Esfnt\r\nLSCwFasDvQki2MY2mmWx0kzVT04cE/wfQqw=\r\n=9eCQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.20.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.041c71e","@microsoft/mgt-msal2-provider":"2.7.1-preview.041c71e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.041c71e_1668414447264_0.8143551162717009","host":"s3://npm-registry-packages"}},"2.7.1-preview.a5e3807":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.a5e3807","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.a5e3807","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"81023fe28bb73fe2fc83315922f9a4fa0232c1e8","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.a5e3807.tgz","fileCount":18,"integrity":"sha512-1YHua9Y59gK7imqIagBJWYUB3HkU7xn+mAXz2TU5soycVOdor2K7eI8Y3b3b9D7CcHWJNj55zUeAhuHOQ5tW4w==","signatures":[{"sig":"MEUCIQDTsq65lWDi9Uce34M1tvDjjUA5K4+6lBfivN5jHbBZ0wIgVeooSKYqsw9GerCAk/IJFm4fjMxdo70BysWAVLTNV4I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcrltACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrv5g//TrnNgQwZpntmEX7A5CNM/uwjdvvx8hipsGr/NmPfHGmB2PeH\r\nyZ7vYpAk1WpBPTI2G41x4jBHmCZOd3FFnaQMruKqhyXCcLPUvYP+vjLjsZFN\r\n2dq8xdQrTZkXcGfBn3oyczkZkz09Ybub6jJ1E83AFrSun+HJgpDJt9ynvbuh\r\npKVZKvdquXpeYqU7tjB8BdyMuJpXc+gsNMV9SRbCuryc4WNtFIodwUGqlBow\r\nV2J8PuEz/hMyW39WMGn9959j7R0P7JOqlhkG7Q6yKVALI8vNnWfWNybD7XN7\r\nc5aCyPM1qSQzpWcjSV8k+KsXzh8LRNDO6rs98rH8gQ4VY9wrc9EBxpFuRktW\r\nSpmAibLZGh4lEFDLBZUDsUAK3AiaJRpWoOFP+ZWj5S8JZk5Rxq38ApToiloi\r\ncvGcKA0PHIDhk5hqUkpaO48QLMyw195b8GbARB6Qe4GGn9WMjg9zm788L87V\r\nuXvWovWRs0OphaO+abvmWGDbmjHp0N2BRcU/Wbcxfq6PlMNISXeCwy1XNcXx\r\nIrtpwcsP1A2i+bCctrGjKJcZ7r0moCEfi3M7IKB2hAJJQJ0aSYzxlna/7rSx\r\nBbdjbep2SoPK8SdJVNhc1q1hXoRgXhrJpZ9SOWu97BJrJ7OiWLhvjjnUzumf\r\nWhXWNnKxvAr0nP/FIjg/XmB93CznK+KwKPY=\r\n=JI++\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.20.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.a5e3807","@microsoft/mgt-msal2-provider":"2.7.1-preview.a5e3807","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.a5e3807_1668462957165_0.7754402783932954","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.47b4840":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.47b4840","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.47b4840","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6a9512877247cfaeba07c7d46f3ab923e8b024e3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.47b4840.tgz","fileCount":17,"integrity":"sha512-n8cNE7PDM9/rh2y2u4GwxsIq7ITDsYhMeJq4upWsK7EFV6gxdUTFHPadLyDibSK3A/8ujRRAXOLcxyC45bNtMw==","signatures":[{"sig":"MEUCIQCZwSMNO2wfPkXbrCc9jW0XVkA1Ty+FQHAXZWV9Zw5ccAIgU8QybH5ehftC+goi1re7M0sYiMzaxJeGJDKUAnIQ76Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdRd7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1ug//ROQPOhTFFJudaofyOX/I7JKjwYZIkzf1iI6EVe87LbW8PmL2\r\nrvysu9iH0xfYq67LsIYB4FOtcgCJuR6cOrZ9+hYDqSC+jyYX1QjoAuPbzOU3\r\nEII9BZJFmGddwB+9eemElLPrUl4Q8B9/k4Q02MclBnaWp9fdtd+0WuurhFL6\r\n4nyEgK+CBmTYyTfOZrmEJQpkKRhvHeL7eqdA3EyvNC7nUN7XyDHj5AmKmB8Y\r\nwzlAMq1D2CzHCUCOL/JObEurEso9T1hvgWEBuvOC0SPjdSh0nwQNTwAFSyij\r\nc4UDp+3440AhA1majQvJswoCWpa+qGeCmaAMxJ5dT41sDWKPCLJrrqLXy031\r\nJxK6SE8wKSXUGaHZl+vUcCt2Pf5bQ2rtxxQqVYfd3hNnICEQyudH9JlvTzFQ\r\nW/Y6qlb0f1ntwSZrFI9xzKhmcB4CfQ97HTs+aYGeWq6dAAzJVRgleUYi3sJt\r\n7fPpI8kznejf3u9Rr5QnxSGHpfMOy2qYA07O6rLaeidyJf1i+RfRaT4YLtdI\r\nr85rIGvfPuI7dUkhiKqToA8Y91eeYGIx3X+v6ZGxjCLSDw/JijCJ4Tvihs3f\r\n237VyyUjC1TFKf0Ivaa+kIOAAbT7NnStDdus6Bf6y/Z32lvcgwNSkL6xL648\r\n52FS2wQlILBXgrmk4/3gIj+JiWSRanXwpCc=\r\n=TIlu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"47b4840f66528302cdf1a491e4e784a2fbe1c343","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.2","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.18.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.47b4840","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.47b4840","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.47b4840_1668618107263_0.6074767280610742","host":"s3://npm-registry-packages"}},"2.7.1-preview.4ac80bb":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.4ac80bb","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.4ac80bb","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"0fe6fdb75978070e04c98abb82e7aee89dadd68c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.4ac80bb.tgz","fileCount":18,"integrity":"sha512-gfVGpKyr9FBF3MFxnQ6ZjQ4JVf9oIE0zwAuyBtBluzGLfCzHpAiB8JEMEgH9OfQkJ5AHbjfaVIX24g/lFwg9xA==","signatures":[{"sig":"MEYCIQC0kZ5jPHE/qy8VmQLugg6hyM3nn8l6eaEJ8TDVVu6PNgIhAI3OHj62iXWowTmUmpu76mCwjD0j8jll+BU6WMwlff0U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdmRjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJZQ//RQnwrocilODMSQpteUHIJlEQYzHrmCQkCYSEAvXME63LLgv8\r\nzYQ3g3mX8laRq8CkSdTnpo91x9ZnWKDN7zC3uRWmC02yHXeqPSjj3vpff9ui\r\nBWtWUZdwYiU7d03ljpxnsX+qiR0RRol7/jNBLvhmKKjULLyklpNUs5ZMz2Px\r\n3xwqvfE2FE5I1J9BV0vDyIqDoWez0vhZL9xDSPPSH/YQzKRtj9w1OGBq9+vV\r\nYtssf81mUep64Ji1I0qm7P5eNWEV+CcPbwG+5faTFFxPKJAbx7+DvVm+Emd9\r\nX4RSvQCgmI4XsYXUPGHJy3iZsqpzm8ojZL1ClG3u2igJGt0JzWdNuYObqltm\r\npm9ernBPAWi1xoIyyicOkfCeHpyyVruiuMioZLotDiYasqSoART7jmcBHrRJ\r\nApHeYdofaraempjLJGR1S8p+fnz4XWi3SqZ0a2dXxQF6Vn1pY+bmfVanEvco\r\n40DQbikEEpZfLK49hys6U0Dz4TBu8kWVnpeZkAbEUVWwhCnA3SwII5cGdhHo\r\nSsIJgAlWQDibZtXdgIQkx9PvRBjgijd0rRNkPxpqluYlyFZNk3OYhd2WAMgA\r\nsCLz8p6lJ/p0th8iPdQSERhLRjFvbgBFW2vbtAHDPKR+RzMkijqD6grWMk3b\r\n7mue3HIKTlAhTNuxZkVpa22eDDSXMp6mgao=\r\n=gvXy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.20.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.4ac80bb","@microsoft/mgt-msal2-provider":"2.7.1-preview.4ac80bb","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.4ac80bb_1668703330850_0.7020239171309717","host":"s3://npm-registry-packages"}},"2.7.1-preview.1b67cf6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.1b67cf6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.1b67cf6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"0b5a1194c4faa987190f13af4125e9a32abae738","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.1b67cf6.tgz","fileCount":18,"integrity":"sha512-oVz7fENJiDeY0JP7CiNI86M3DS4uB3uElbiH5fud+/qQ4Lw56BegbrcROBeGAAR5Durg2EW2ShRStal0y1BDjQ==","signatures":[{"sig":"MEYCIQCyJW5C5T4L5qRNPm2R7hexdgZte3CilVJCdWbEIBKs9QIhAJx1itJMbVJNw2yqC5plJgn/ICjbsv7bHcK2ksYPrwbT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjex3QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLRA//TqMvlI90UmzOodXSC9+7tJDf+1v6xgS2SsH9eLPAFQIiof4X\r\nLTiLMvm0PrH/UHyrM6r4G8bidB1BTNLYAG55shb0K/eC9K+nSsLFiU+DAsEU\r\nz8F0JBzXQvVLhVfOamBT+pypbiRuiInNH+y8qelk3JAIP/YI4wLD3YVzS/HM\r\nKh+RHEBgDC/OGdRm/jXk+KtlKKYJtKHt+XCk8GpCD+2nszvSCBOc1EEyZazr\r\nh7h9G6swOQm9ybtHLyHy/k4va84REQb2Z9WYZ+ZMNMAp+Im1sNci/qt+yB1N\r\nFHya4evywWcFA8QVFMzVb+sWrMMb+mFvDLWbBWODKb/BDSDLFeh9dfBdfmyQ\r\npG+DRO0PJh7+r9FJEpEL+bA1bAO0ryQo5/9aHswhfyX9AAaNW7axchlLLX/R\r\ncWwocPWnnpAZkJ/rXMeJG4xwSCFrP4TAOOYJMej3dsWDX1UQRW2FJGktBJrH\r\nn6N1+vJqB/mj8bX+dQlDqocY81u4pwrs7Fuw1AsJGsB5Je+EE+d58/sAM8Hj\r\n76gz6Ch57aQ+Zb1ziS0YgFoTwDbn1DBf4mWzBUdbPDFvXNVeuzyEN2h9Zx5r\r\ntI7nIi0hGzw0JEdIq/AJjKRdEIrgoEcMcQf93V6EPpxZ1wRFQLBwH5Og43Cr\r\nUM673316/SjAoAVEE/OGOOx5/Os7ecCQGos=\r\n=sd1Y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.20.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.1b67cf6","@microsoft/mgt-msal2-provider":"2.7.1-preview.1b67cf6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.1b67cf6_1669012944454_0.5630176728671692","host":"s3://npm-registry-packages"}},"2.7.1-preview.22b204a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.22b204a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.22b204a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"37577c6de33a362feb88395a1eec7db530a47df4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.22b204a.tgz","fileCount":18,"integrity":"sha512-IIOHcjb92mjBu6kAiyvq/oL1nVnYi+qOhaXqqCvO1zUsMW7ySiiJ4eY7fe5d2B/Y9q7LucJT38xYKnekgTZnvg==","signatures":[{"sig":"MEUCIQC6whfUqt6ZY1qgS2XBP2d22+BYcuTYuqh+osBjeVCHtQIgQrY5DCqNVa2PIvKWC48meHgUsvPKX9ruWvD4iR+xrVw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfk4yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRdA//XSfUJj4tm44NbarvUylb7uwJv6SHmQ+30dmvEQGBRVNrQf2U\r\nP3sl3GVJSu3QCzt9AwQdgdianJIDRSHitLU+AAhy7Qcf/CrrFTumEtZj4o5d\r\nGHOQIbS8hA+m56hiubBH4MqGRKkYmxsDHaqcC/l6V+Rpc2XSHIPAzyaJQ2Dn\r\nheIYCvvSrvQUFH2cBxFQ+13WTa/1ZE4vrpggAWKoYM+8YPVJ+CX0pC3ec2mU\r\noQfKh2klK7/2ZxyXQnHdWoB3kJ2qy2Utt8CV52ns9VLtFha2Ez5tWzA3S7+C\r\nus0nA3xS9xzUhJENlKOU779T2CqSn3d3MlCrXsEJa7UGInZ4ZOCJ7SLaOiHM\r\nnddrup0ynYm86okSJ0rPMNQBO72eoYUNB7M2Ihqs8PQUR2T6gT/sla5YeYsu\r\nVjXyoWHRqJO4UAudm1rsiX244O5CTgEPmCGkmRUVKYWUKKjXJBlcpZCjQOZO\r\nCIlo961RivgQHwRSx8r7VAvUwW9uWfL5zitKWOKvTU0y7Tnlps7s1BRlJeRi\r\nOyMqGtwvari5G47xoJrbHWhidWewjMXX5UDmkqZHLFMD5oPswZullBxH3YG/\r\nTk5TphO4Vo/KydKlwbrrjowfnQkLaVKIe6quH6G0bDMknj1WRz4JjqseYwJ3\r\nXy7laRPFlfUNy7965FwlwCDuLL/FYwLsGyE=\r\n=gSxC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.20.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.22b204a","@microsoft/mgt-msal2-provider":"2.7.1-preview.22b204a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.22b204a_1669221938538_0.5359590971385688","host":"s3://npm-registry-packages"}},"3.0.0-next.wip.b8de53b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wip.b8de53b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wip.b8de53b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d5b30fb1d31964b4071dffb0cb3b2b7adcc4d99e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wip.b8de53b.tgz","fileCount":17,"integrity":"sha512-lHJODEW+9PrDMFwdwLp5bGmVYIeLOxLbqHFMPPNlQWh069FGBxtJGpN/GO1G9DByGec9XQH0ijhaqQ5SJaJhHA==","signatures":[{"sig":"MEQCIBXoyGUFQZKWvIuoXu8GLukzOF/ensgpM8dSXGkQZaTyAiAIiNNCvCGqRRfzjKgn/E1nut+TnMAQ2C2L2msS8W0m/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhUKCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouchAAkveepb0o0CwtmFPclTqTbjEqudeAy08QyYWb7wDhUuxUeD+O\r\nvQVBRhQKE/8tTrVmV6XkR10W6ehURzJZWfLSYfzQ9ri48CBCb8oLhe8TlF+p\r\nqg9BSj90IX3RqTu8Z1iBvJvBFQN4xqDVmx78GhE749dE07Z3VErEsDAq7taC\r\nsuFqpb1g5YLxbmFKfP8yVMgNnC7mgp0VLgCidl9MAlzcynFRwb+TNrHC8KCl\r\nSVBE7sa6KeseCyKv6CnM5NVHmIEn+lDmP4BUlc1UdKl+pHJf+pqjDGD/PxsB\r\nehDkb02080e0Qv7i6riYPl269tEsRVyr7V4tJqZxoO5kXYrYEO78GbJcuzwW\r\nd8bN8OsQF8arWkGcVpnKvJCeusVd8OVe0kSIM+fbEQruxHjW5LRUeIGW50FQ\r\nz1oKzi8i7BLofmHKPdJy1jzm+oP/sBG3pKW4SixzcZzwPo+onun1V2QKHD5Q\r\n33SH37qyMa1Yv1qjKH6jdAM4Nd9WBIvgXqIHvyM8VNCpnUCWhEeeFjFdbIXe\r\nzYvA2OEQl6RxjkJmpQ0rBjoEtO/gB21qJ8yJDOShW2DgzMMpaDZq7f7pDHPc\r\nW0I6y/kijDJDijjyrL7e/BdU/acEDfNTRKry/JMJHuCWpaYz5bFdciyXthK/\r\nItHbovOZ3YdW5aajrJHEEAHbnUlemGo5cdM=\r\n=mBLy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"b8de53b506a1e8f996a6732396985038ed6f7590","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.2","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.18.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wip.b8de53b","@microsoft/mgt-msal2-provider":"3.0.0-next.wip.b8de53b","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wip.b8de53b_1669677698706_0.3066034352047009","host":"s3://npm-registry-packages"}},"2.7.1-preview.39774a0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.39774a0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.39774a0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"0acf2a98816d2ad1d5ae3852520b35ff1562b56d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.39774a0.tgz","fileCount":18,"integrity":"sha512-y/mQCGxFnePlzgfAVLPibcoibrlnqnqYOPP3lNRjifOc+Ti+GChOhsDqzsfthBp81JCmQ3eEyaTlQSHp0BoEPA==","signatures":[{"sig":"MEQCIGWYkNFP8IspyoLZznh5uDI39kcOTv9RU999yfKAjXylAiAGyxzAPuriIKTGuzET2q8eSwiMQwoE/Cs0/iIfgp/JWg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjha1YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoi6xAAhhEghzfUUiHSRY9T8/Jr387X7y3mT6xeLjhb8cUlidfzUa2n\r\npIbGgNXH+o04qBBEqKkSnyayPGJDlhjPselFOE1a6erOW5SJDYhV9uigPDyN\r\n3CUVDVjmuNDo5WsLbu29EB71ZybRU64HW1BL+4o8KVvJ/rVYEP+d2dz/muQd\r\nYcmJT3Xk32GJ+cJzDhf4Xqcm802QCYQUcmOb4KCEgV6Bi/WDlwJCy7PHA8VE\r\nZE3m4LB/GkJNn7ic9jqdbeESvH6sZnUiZLEv7MmkxGB3x3etglUiY8XGsG8t\r\n7GkxtaBDcOElop4gCn3aYKqIXVZpl3YDX1s5v+8JodIRuQ5dSrimVlq4KG1s\r\nDEBn/hqf/25IyHYbehnWEDOJADALnpXS13ksRqCUuz1pz9zf8TjUWkFKA9rM\r\n1+rfCXhBqJSX9SgkBgy18/G+ggAisQ6ndqmwMbvSiHxRridNs+svjQBigNRY\r\nWFkv8C9GZ1B0BwoZd6wOav6bb7eGwohHkMztbElYxeAY1/nNFkcwXveg8gMg\r\n5l1xGALAHwqzl1XIFe1gLo8CUzxCjVlzohR9Sz/zS3LXcl3gv2AC+3QN+SpB\r\nDeGBjyTfWlARoV9qtM/oRQQZ7yA5axiRMIg/heaZ8xRvXxjYI2qTCX1q3cc5\r\nZM14wS6ErAyl2gThkjsbQRJVvq9yhWMkPsA=\r\n=X2Bz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.39774a0","@microsoft/mgt-msal2-provider":"2.7.1-preview.39774a0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.39774a0_1669705048556_0.3786461002834929","host":"s3://npm-registry-packages"}},"3.0.0-next.wip.09a2115":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wip.09a2115","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wip.09a2115","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"c0670be90a21bf988a047e760f779ab3370786d8","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wip.09a2115.tgz","fileCount":17,"integrity":"sha512-O+lVvH4C/uZnLKSB3syo3fxfbX/fJIbqgB5D+va1zGjwq9Ezpvx/wGuaCc16LJxclSv+xP1yA7ts+rHca2q6Sg==","signatures":[{"sig":"MEUCIQDdbGbXxtE8a/fJN5dRGvEUXGfbJxOSVg3XxbZn5K5MigIgXT+9EtYZHyuYxvF1+QbaBTbe2uXkAVUNHuEff8Ud4z0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhidfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSUhAAjHqmAD8t/v/v5zhZyGh5XBOZVuumqb6w24N9VchGbwjcqs5o\r\ng/q2kuRc6ofiiSG14U7Iw5TtQgd4amQVWo1WVNipGfoIwRUs3ziwPzCRWMhq\r\nWiGLcm6oM/Ko3Qg2T8322ZTGIJgX0t+Ac3Uy79ap0YPiDUadhaQN3HDQLS66\r\nrFO41831IEKmkyTxr1hxKEcWx29jsfIxSI9JZ3U61auBXThXT6OXDl+PT6bS\r\noLnp3qKnSx5PwPRuB0BHz6OC/7gvovDI9YcFM3sziiuVKJToJjz0scaoTDX8\r\noHwbMFICrmFKoE9vXdSPWBF0p1SRSG9WT5rr8RuRfeKkpm75Rw7TMImi99Dm\r\nZi9kQ1Fgjnv+t/YGFXPIheBStAAIurIfSV/58kd1on0S9oG/apBADVdXnNDZ\r\nN2IwsSDp02AJA90dA+u/46mG+EO3FTmY0Wrayp1n7Ktod47aePsQXvkSBE8T\r\nKROwrfNztPJ0urSbgVrADzFmpA+3tZxY8HKMUTzgZ+4Mgs/5RaWCIms9Nv3i\r\nMSxJj5WPxq7walZdmAbZZkDXNSXfwtZi2AT6/6YVDnlbVMB0HL9b1VxrL0Tt\r\nOJdse9t2NMhdpGCWk5t7WBHnpvJCxsgwkX6GLVww+pdcZGnlfjci+ShTQ4b5\r\nfBoz0+6j+ddYYdB2xYWh0zJKoGF/H6xeIOQ=\r\n=ncFh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"09a21153dd5df92256e9849892e556f7fad24619","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.2","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.18.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wip.09a2115","@microsoft/mgt-msal2-provider":"3.0.0-next.wip.09a2115","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wip.09a2115_1669736287610_0.7013610875370486","host":"s3://npm-registry-packages"}},"2.7.1-preview.ab34e64":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.ab34e64","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.ab34e64","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7d5724dfdc9a68c135b5817fb45cb2c1519c8fb0","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.ab34e64.tgz","fileCount":18,"integrity":"sha512-eSaozb4P3+vWGHwyD/2DxnN1J5k7P3XV6iBrVwmPlcQWMp/qFURqugwIZIntmWJG/oUdF3k54mFOC0mQ9+8xkA==","signatures":[{"sig":"MEUCIQDviJd2vQCzlQNEU3nzYJgutSZlkSMX7UsVuvtDhgfFFwIgJvgMzp8Khn0YWJMRHZdVMXgdFRw9RZh0pxQ/Bym63Yc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhkCCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoK9Q//cuIxeK/g8+AphUSDRMuSfMJmhNP7bS9aXNeV4kk9FicZTj3W\r\n7A+mz71oL8rzKDgKgjdZBccT8GZmK4RwgTiUjPGUgYbGZAaH2bzrmFXvaxG/\r\n/8Pz4sK58/lbzRFIi8CeGmfnkaxLv80t2hDfdoQayaRdMi81oy0VhO/dv5C/\r\nHGxLwq7UukibVh0yTKoFj9fnJxyH0/9/Fbpc4QZe82c7eOl4jzicDchT0pJJ\r\n1IeQqh7CbOltO7WQcEnJ390o963gdFmVhicKxgVfdfQvWpQtG1i11rMrtEQq\r\nc+TwLI0ZtLe9BfwQROMyywCGq4HQ2xvLf5jGzsQSawvemKoor4UyIP/ZvgQ7\r\nvyN6GpTE0zOd+MMfyQsRTsXuUTUImApk+maShP5Ce6IC3LB+Cb2ZpVGwyesP\r\nQpZ0Dpu893d2p18TuQFrBZ+82Kz4cXFUzJWmc+aqXvjFasHAYkYi843kIguP\r\nT+/bAi5z0TcA4NDpLOhvBRVUB87/ZYOV54SWUU2yLQUvIOxCZS85kO4I9m4K\r\nipfRmL7Gi7tkR9ne3HyBQ1GsDOo2jNvRfUlCSVmglU8/WUlk/HHhWdmD2s97\r\nCHjcyXXKUveLyPRpdhMhqtvnoFThACyNSDI6x2kL7ct2aL8ikjM+H94oxZBF\r\njYHkj8xS26xEvUYXTMuhpeAaQzzYhWoQ5R0=\r\n=WTFA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.ab34e64","@microsoft/mgt-msal2-provider":"2.7.1-preview.ab34e64","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.ab34e64_1669742722035_0.8638596771244536","host":"s3://npm-registry-packages"}},"2.7.1-preview.ae3c0b1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.ae3c0b1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.ae3c0b1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"edc30a61a7e7e6d3e38df59e5f3c946bccd4231f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.ae3c0b1.tgz","fileCount":18,"integrity":"sha512-UbEUUagFlynPSSyXqUpgHL2jVNg6gATFQtSPbiR+bgli85InUc6g0SgrnDNx2dhD/jtLT+RK0aciaAEsWXYRYw==","signatures":[{"sig":"MEUCIESOGX1nPsTnYWH7cfjYkbxwNFEwKnxyGo4ox23HurJAAiEAnxXBe5FLIAzjzf+Tt+yB9UH84e5R+DpEYdaxORcAb7o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjh5qMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOcA/+KSzvDYGfuM4VPZzZHia7jYk9/YJ3Vw3HJFN1t3Tn4YqDDBrF\r\nBi/7dpwDRVY221xl/D51R8Bnp7L6EJd1aPxL6btGRpNO1hj72rxpohmECoTZ\r\nWDJGIxvfUlP5qV+jjLxg+ToozCZh9R4jLCT0M5KotsNRPy1jezKA6fInwhFw\r\nyEAJAfwMOAl9qscJq4gtGpgZJ4COVa74mNWtflQgMamkSts1Go/Gg4vLW3LL\r\nS8OjLMjOtuRjKUkQt1/r31ScUAF/CyLafhDJSW+iAIVOHi7UeNcHX8KQDXz4\r\nCmMxYSXoBxD3AnY32XfMzbndFb5urPx+53gDYlmBGqeDiROYjr2aP51MfvU6\r\n19qVAIflTwj8YFKy8gtercqMgqEhWwj4zcXjd0jS9z02HB3MN9kU4xXBQlab\r\nyqJNwIuFV2misr1qR+FEUzfJ9xgGjlalQ2QMau6wS3k+Xk7BStgAkUuuocf3\r\nHMpqH50ZAm2HL0PP+2mNnGjVm0RxBdDs2A8yVSaoAzwXjbbnBBwWTQ/MMWO6\r\nY3gcWbkKgmrymvD0w11VWYLf70gDhWc4Ur6Ex7floTSzGl+xGIOHlMX3PGs6\r\n3/e8cBf8m+IKuwkm6JcP1DmdgeorzOnT+zDpyRpcrAugamad6ZRE/sfSU2n3\r\n5BJzAUfGfJsuovXJUN65x1oKsXHozehq/84=\r\n=dp/O\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.ae3c0b1","@microsoft/mgt-msal2-provider":"2.7.1-preview.ae3c0b1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.ae3c0b1_1669831307960_0.8368535239858133","host":"s3://npm-registry-packages"}},"2.7.1-preview.f9e2145":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.7.1-preview.f9e2145","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.7.1-preview.f9e2145","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ce9d01c2b11c9bdbe22c2e69488b76462ed85deb","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.7.1-preview.f9e2145.tgz","fileCount":18,"integrity":"sha512-W+gQVHGU3PZxFbdTexFieDQIOT2ODk7e1E9hlpnTIFQcwO/zcwFSo3neENfLX6+BYmnRkoqmbilYZk6DJDZ/EQ==","signatures":[{"sig":"MEQCIC5B22hfElcYMzR21RTVURkAdnCblbX5647bOu6G5JprAiBRAth6uSE9GhSGIE/Lqi8+sqaB/YZ35b2QMv+iKSkuCA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiOPOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqysBAAhDvN7A6UgncDszH8HPnC4N9npOciueZNhZTZFGyB57mzJydF\r\nKWj27gNBQo7LiTOgZoFFw66M48hZp4oJicHetrTqRb2cjcSj/UPP5hhKRkCM\r\nCGSomoIhTjjYOl1NXsARpgCeF9J/ZZEF32XQOEB8oStUMOx1EL4MUAVYCCRP\r\nqTyLasyxAxhh2Vb0WDa9zCvHzeJsK+n/iXuDYfie+jiOrFc6HMGCBNRW7Cvi\r\nH1ry0S/LH9c03DDnBG+a5qeFbYHRbNWX+Ib2WTQakgyQlk1jBgIWAGA1RbHE\r\n8qlcOFS1N8yC7LEsR5WikGVAnMGJckJzxyqsGE4EJJ3lsHgsQk+ZxBIfO/2m\r\nfrGNTpeZhU72hpQ5LX60D0qPYlmF7R/Rf9CRSbIZ/vC7WcKMilLJI0T+8/0w\r\n8/eNZSz3AZfwBKvdYp2FDGMF4fG+cte80v8vPlsikhvgS7u+Zz4LNZD6AzPT\r\nR/oNeA+ChTtNYGHE6h+huH7DeIAwKbqmZwbZh82NegPI8+Q/5MhDLHA7abJ4\r\nfST7kcdNQ3Rno5xxfLoGVktrR6WjEiENISSYsSTSAHFMQ5xcMN/hi6zIxHnB\r\nQTR6Ul8UInwe9HgybpjkxEBVmLw++08vnqKU8M5vpSP6NGFaXgFav5+WXtWn\r\nexiiOj7K5yUknmaghKQpJ1Rf8VP3mhdqiLY=\r\n=MtX0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.7.1-preview.f9e2145","@microsoft/mgt-msal2-provider":"2.7.1-preview.f9e2145","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.7.1-preview.f9e2145_1669915598175_0.26417519436422676","host":"s3://npm-registry-packages"}},"2.8.1-preview.ab8f39c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.8.1-preview.ab8f39c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.8.1-preview.ab8f39c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"194bc96d5668c6d4ccca867c91315cdb7f156902","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.8.1-preview.ab8f39c.tgz","fileCount":18,"integrity":"sha512-zrytsILNjF71hqhOdz24tq37IOgXraZRXr90FG8f4qeuBTWTc55n5ChE+KYzQLQcBxQdWyQFuwz9GAsBYUzH6w==","signatures":[{"sig":"MEQCIAmZXgcO4V3bNLfszxCW/CkIMjdyyi2ZlUCfWUvjoEXbAiBUEtZAbM82yAdZjpxQG/RNWQPnHERdB7kmiVj6XmP69g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiUyaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9zRAAm7tjN1yCFn5/eePiA7t8BTkO5PQlDYFNOHXY1ps7jrgx31+3\r\nlo7FhbHQA+cuuD4reUGAbvKU2CzGF894XAjeVaUUHcDZws8dXj/sS2UEvGCA\r\ndkaYTBbPq3/KzWa2p+ON3WuFzZqZX4ysNsqp81AyqAn+JDfCcMHErShkzudc\r\nQ4uoi4BV3l7s1Jn+X8OKN5WpLXPE3CW8jwwuK0QMqd0zHxe6UZY1rctQ20aB\r\nHxqCNSzWgfcZsWf/65GL9gvFoLK921TNBsgXnroatE7uEE7vxEyYKWZkvvUW\r\npe+X+8Xhr0N5FgsWx78B4XD4oHfgvmwRSVBtYn9sZsSnr+JjFSK4o2Oznyfn\r\non8oMjWhMsS6Pog+IlSAF0kaS2cAo0rQ+nDsop9l3iTeVxI3/ngsRga272sP\r\noJa30vixzKjoMwnqz55VKPJXA0wSl7EmZBbNCJtxI7YlSmYAclZHEDvr2F6X\r\nKtDEQiBCXpELFwRFYRMpCOLIQgpTYHKilTPVGZFtGZD77kHzU15Y7aTGVAd9\r\nrGCEg1CCpW9/SvLqvCoAbKuq5G7o704K7hSzWJQ/ifqXLg/nsdt7KXnRt+Fu\r\nt++9vgVDNtFtphiOAdDLXlPZMAz2xfE67XnPa+z/j6pcWvu846aJN00toUPn\r\nGvcwc5wXF+RsXl09SQM3Lo646XpzYiXhDCg=\r\n=8Yu4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.8.1-preview.ab8f39c","@microsoft/mgt-msal2-provider":"2.8.1-preview.ab8f39c","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.8.1-preview.ab8f39c_1669942426422_0.3336215723800928","host":"s3://npm-registry-packages"}},"2.8.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.8.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.8.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"94a57756f8e62e83bb07d86af79a142fc3c7142b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.8.0.tgz","fileCount":18,"integrity":"sha512-H3pODef7jkIpVuIfXMzTfkKDoDQbRWwZlrY8aIEp5mgfhR8bFOKlRw7f509bpKtMNml/7Hu56L28ER1FXdurQw==","signatures":[{"sig":"MEQCIDEg9pttzhXzZWpZVjPNrwbV9nLG6sWYEmMsUg1xlcYlAiBKm4dNM8ma1uMShGLiaRZIf2Ub/3NJjoa2UsyxwJ8H7Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiWLmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdmxAAjY7FMp+hL6kkejXKs6++IMblX/hoqrevy5/wPCjj4Y6yHmL3\r\nOKPngzawqd3NMOKuoycMjceuUbq9IAyaKfsJmcnowffsWKn4YgEakcTVC6dI\r\nc0BenrcgWSl/8Qx+r0hVKXE3QTgQxZ3cCM6KwU46kvQubdpBH/pka025n5eE\r\n7ftwBMUUJvjzgveOkvDJwFbQ3dQCoYktfUenccKrdb2QHbhQJXpjHl4a7gru\r\nHiu+cYR9UgrEUpt0Vtp6xmGh7DYAhgeHS5o1pj5Zu8thTxOkWIQ/q4wNcSsR\r\nHtMkfDk1kJad2Gd90ugBjrKxMteWrGJrFQKKgNAoNOvNb98o3zHRbxP2eAbK\r\nYPNNqa1spHd3GFSKBscj6cSJ+flZymV5nKpT2SBD0jK1KDKl2oSfv7VoTPtq\r\nK1PcWZWu5KbSxtyWcf5/HRTKPHz4kwq6bkBFGMufu8zG4YHHhKahm18gSCgz\r\nd3CYnefWU4DCic18QWmOdcrCkHeLu0h/e+N8o9pf8jYKSPAddZFUFCp/hgr8\r\nvNbLiKn+3vV8QIUonEoj+vCnkk3r5SY5G45pD4SEDvEL2hZYw0vJaKHAjfei\r\nHJFZiW9UERLxHhYj8DNNoII6BZawJNO0pwEkwt1+0PtMNVdxTh2n6D7o76D/\r\n7xKSCWVXv5VsSLFD9hDPfRhE4I2Bkc9m2KE=\r\n=s/Qw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.8.0","@microsoft/mgt-msal2-provider":"2.8.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.8.0_1669948134601_0.5090161219145042","host":"s3://npm-registry-packages"}},"3.0.0-next.wip.31dfb9e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wip.31dfb9e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wip.31dfb9e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"fbf3ea812ee4a3b4051e7c07c51226b4c295f3b6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wip.31dfb9e.tgz","fileCount":17,"integrity":"sha512-A8htS8TbhRAyYIhDLwmrcjuMWuZSr3JhDJnoP6ons1vlDxssQeaAK0/w8sLAsI6T2PyBijK161AnXPBLBH5a5A==","signatures":[{"sig":"MEUCIQC9Vz+FySLpeN1R/xvVDvlALu+jyv9npjpRW41icIO8HgIgB38PlRNW+Gr8SgV7XfRRFWTri30klqPtso5dPM3Rf44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjj2XGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8ew/+O37viTHLLiXroyZuIGLn/mSNurxh8XGy5VfyCisP9cZ/J/HF\r\nJ5OYnmRGxsmOPszsACXv+q9efuj09tHsL9vkDiFa5jXF4tHvL+hryCyHlWZ4\r\n3wAIy2tfoCmvnroOP7KYPjdQb10pSTo/1JCU0YPSEyM9QAfyHi6ob0ctDzdQ\r\n6W4FSs222OODizsCPrODIP0nnhM0/FB29Axn3ykHRkX9ZXAnaWN9UBdDQbt6\r\n3Zyb2wLoVMpxjo04X8lwIeIGnhT1IRcTbepu8AlALqEDOCelfabBQtx497Al\r\nUKig7brk0hIRopvQu3H61s1uJkBA+0nAvuxP6UOU1I5mC729iaz7lKdbzOHY\r\n4BcsWBDTjlR6GqWU40blzmjYkFmyJMQTiqnj88FYjkKhTGajrEttHh0JTlQN\r\nDZGsgsvkpuCFmIoK9Ckdte75vpRXGPrhkiY+UaBZCmDtrI6nCsBS+f0I/lVV\r\noxgGOmZxpW8YwcxTLfIL2i2RAKrydyL55oufuj9iMxAfrwoqV2yDfk2PWOtU\r\nuz8ayILpyeY+T+G8INjnZv82NPQ7SqxW4Juqpi9qpLPCbAgjOOib/ZmZwHxc\r\niyw5NcVLZhjz/Tm/ndRP4FiHMcZDkeNyW4aLmxgr47bLc8olO7vqTqpYkBS/\r\n2TKtqnkC1p2bKgS8gdZIEYKQsExZuRb77Vc=\r\n=KgRc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"31dfb9ea998009446d52c689b5d583d08e506ecc","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.2","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.18.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wip.31dfb9e","@microsoft/mgt-msal2-provider":"3.0.0-next.wip.31dfb9e","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wip.31dfb9e_1670342086694_0.3458440679748025","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.1edf635":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.1edf635","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.1edf635","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"fc25016b0b8ea52e9c1ef04b03f5afe3bb3ba5ad","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.1edf635.tgz","fileCount":17,"integrity":"sha512-K6+WahA9R3DHQfu3YoUXnqMJqtmauMrRj+VA+t1pbwBGKC23ENhdwSNkxdrUmya02DnZ5JlJrdumTjZm9XfuvQ==","signatures":[{"sig":"MEUCIQDBX6Bn2dyeFb4aP5Azb9LlR4jMN0eKJ+4m14EAIMFeOwIgBmWn6cq2X7HmSCbvJ8mkBujV3pwTfA1yiIxzwHhljOE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjj2/zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWuQ/+JwzbXA7TEMaAbzcRwoh2y3ovFvC8XMW7wV6py9cgE5H0EdYZ\r\nD601FguLBr1X0vxi8RRVoREDAtJqx44L55C2oxlegrUepEGuFqmXuOTC/ulG\r\nHRnoj0s875VHpAoL4AXv5wpLhQjMnrUeTSVGcuKwKXmZGEa/yt3e6ROfA62Q\r\nMbsk/9DkF4j8u0k8aVVDKTm+D+Rw5SX5eviSh+sYvq4/ydYwq3Ijg+kc4VMr\r\n/yqPmsc+RyPnOi4Bw7MCnxhujV4eSeroAsHxbcS+QNGal1Yr3sod/5HzTPER\r\nnm2qa88J8Eel29rsKDgR7tiHZuPzE3mJjJYpx92ZnUdnjgpUrd2S67JF8bOr\r\n/LfwkIzNGXY0COnh7/2NDyae6MWScDvtGJzPGLH58abAVM8/CRAsS6gKCVPJ\r\nOSrdrrtOzS1pXBF4fK6C3I4X+LNGEDFI5YWbknivUwD8yag/P7hwUlzpe6Bu\r\nvSdVEaSsthezUdXUEYSI/9ocDoYLAEos4oHruFi09Mg+62EMkaZBuOZ3Ua1R\r\ny0uuflAXUvWVqaPxE7fviXlX1hnAzf7tYClPx/mOWhg3RO4+3A5MFQ6yET0E\r\nP2x/CIwsSzZKAN7rwusyaDHmZrNqSeIvgnhCeOzGs9ijpLAG30Yx2pGTf+xz\r\n83G62gKVZxBbs0Y+t7raQTljoxvWPYDGgPs=\r\n=4sLw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"1edf6351d055866caae09e6dcceaa660cc09382c","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.2","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.18.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.1edf635","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.1edf635","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.1edf635_1670344690845_0.8450819061883235","host":"s3://npm-registry-packages"}},"2.8.1-preview.b2cbbf2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.8.1-preview.b2cbbf2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.8.1-preview.b2cbbf2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7ce54044bbe988be8bf89f0a810bd97037653c2b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.8.1-preview.b2cbbf2.tgz","fileCount":18,"integrity":"sha512-nidxLJAlMuB/xGSsRGkwSOyme/g4Yx9BSmiwszU/KckAgV50TbjErWAdMdlrgc5IVDBJlndkNvC4sWyPv8qhUg==","signatures":[{"sig":"MEUCIQDFAPu/7ouwhR3WBOVr915XHS5l/U/OPfs3ONbVzm6z5wIgCcIpkiv6ImtCGbRf4yEVv+sj0YUryGuxMLQ6Ywq24xM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmh1IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIIxAAnHVaI25HHxqlOje2IPBQ3+01yJbRatftcq78//2nC1g/f06p\r\nY591YHP4UHzGR9UfemOI0xky2vUka5wQqf2nr2M8TjUMxoyrigGcn0veT9nO\r\ncIVhHdqhoTJaqgp8nZCDEEZeO7bdmu6KXQjoZY3AhUct31ogTBw2r0rEaXj9\r\na5BIMs/CsAG9EdLqDlN011XXakdwgqTXd+s5I1hJQSNP5cizDmEYuU0FTMoQ\r\nwlvBEzgUrG0zC+VB9GmKQnjykuklWpdKYYvs1q5avVhHvJSvhzr2nHVz4+TS\r\nuY0y/7ZmWNEDi7Y/Xr8jU87eZ0BV0TSn7bVLIkTzD5Dx883j2nUTxyV+WMpq\r\nMZ9X3HbQe/N198ZXel7E5ZvZqAU3ROswF9bwCAilG1Mx2bCBQfIIxvTx7vsq\r\nHMAX8P3iR97rmibPMW5JU9xDgLIchCefawiF5dLPpgjhvFfyLnW0IjcxXNIP\r\nCHE/uTBnfQ6rrQRvTS153BweNsAL/J/FZZv3PAc5uDCgSdMky7OAs0fzDtSS\r\nsDtQyNZ7C33vJQTEFQY5dfhJttr94mPcOB1ZnRXHwo+q+MJW0hRIKAPAwJHy\r\nAgAcYZOFacUmrr2NLTlWj6AabR8DM/yuFZUjhf+mciBvT6O0NIVk8PSFxOIQ\r\n45Hds3H+SnIbgwzFrIumgQ5bEOUzuHjB93E=\r\n=DdV7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.8.1-preview.b2cbbf2","@microsoft/mgt-msal2-provider":"2.8.1-preview.b2cbbf2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.8.1-preview.b2cbbf2_1671044423969_0.5794747595303416","host":"s3://npm-registry-packages"}},"2.8.1-preview.92206b9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.8.1-preview.92206b9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.8.1-preview.92206b9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"9b17ef5d6e9de5db121a773d5d8cfc1eac454b6b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.8.1-preview.92206b9.tgz","fileCount":18,"integrity":"sha512-jxGwryiqmifH+/ZvYug66lWFwHUrYJZrVq1BljFfiTNz7GFyr6wQAv6HkO3zi2McBmfkGkgG0eQ/pVgKGpfKbQ==","signatures":[{"sig":"MEUCIQC9oHu24GO7RUHj/Ah5ZnIL9EiAcidIyk4HsT3OIw4R0QIgEXoIB4w94SSaBTx1lzr7r5rC+Gr/f36YKIrfj7CIeZg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmlgLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEshAAgU2oCPfrrTYqoAsqXIBQgJ1pSd56iLQqwrWasWctdYqmnQPm\r\nLIq8Y5J9mQywwrFaEl+odXAFdMYOOv8wl6k0Nrupk2FScXtoQ5H82P4RMUBU\r\nPDl7MwxjSLFoMvedVHglUN5ftlXz57mHSEU+gL5r/1uCDQn+A3uNSxPvXshj\r\n9Ptsc+5LaEDGhNGX4QgCqlgCT4bATnwxcr5IBA9AwaN+1MrVByAvHo1eHTZQ\r\n7j+kyz0BLBVlFpShllkSRCQkuuWxLhAh2cVdM0Nmqx0bpEPk8DyPiFriJl1B\r\n2qKmYAwXZIXdZu61097Ivm+trzKUeBe70Y+mkAV2GHa9yvagR6Mp79M4VVA2\r\nbQ30Mj9NNsCRbzP1RdZtb3+C4505+Z3xjnt1QVe90wvEkUQGuhUxeGP/x2Km\r\noBNHDW4RPssJBqLzSxsB9OPfziA82hFVitFsfaanYLd7jKDZclZLk2fqeplK\r\n0U8PUKyJcZvWNmSCC32m4FEKvH24pqtzLDE/NJ+Y9NA8K3LiAUd/sXkVQk8Y\r\n0VsvNoZ1gRigMTRXp/ziecYd9OV7330CAzYdV/JJkzvY1W1PH6wCTTT2Wbiu\r\nRm0iwBmf0gDWrRTZYDomZtxss4OgZS4U6RE4Zq2OfNcg+HQJO1USfLvTuD77\r\nmBTj/kf2k+nRu4Ec1lwAO48YT7LBhrkShL0=\r\n=cb8c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.8.1-preview.92206b9","@microsoft/mgt-msal2-provider":"2.8.1-preview.92206b9","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.8.1-preview.92206b9_1671059467338_0.38675168810838323","host":"s3://npm-registry-packages"}},"2.8.1-preview.2f03ee5":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.8.1-preview.2f03ee5","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.8.1-preview.2f03ee5","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"554404bc86a0fd7e44655fac0824097f39442ea9","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.8.1-preview.2f03ee5.tgz","fileCount":18,"integrity":"sha512-/hQ43/8R3qlnY7oklDRED3jJxiwOG4XBRg7gfqYt5iTh6ji+qQpA1TyrBYC0oZ0S7eXl1MS/eN+h3GMFO0Qm9w==","signatures":[{"sig":"MEUCIQCPBF0VcfvkZDX6zA+i5EvXghltEzQ3ezjG+JIpYIKbAAIgOnw5nU5TqCkvCdVoo60m9wal72b7wfIpO1nLHECpGf0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjm1sqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpb4Q//Xg8GlCLZ9mUJX2B95pTOzKFgMF50ujdzlZGj/aZosUBgo2Gu\r\nAcWZcrmDrzhrQ5PsCTq0V/6aSPg4D6RI1xVZH3wmEyqOQ9JR99QWOGxtU4qC\r\n4LTgMCUwoms55+8+ZDLNWR5IdrwOObJm+Vd8vSzPKlBV5YM8udYa25Xj2kRX\r\nE5jEDlv2bRnp/GVC2z0PyPLLRyHnVkd76rLBWHP7BY2aanhKKMuGIJQc/JU0\r\nQkU3Dp2hmWzQewzZw8Js33zMHc41lJnfwxvsPuPRrvnfnUuMnspT/JvQU2KF\r\nZ9xhiIfamDnxc6CYpQnP73djZ3jwtfhlQpurNeR2Tezy1pGqyMVemEq5q1yl\r\n7rO6vK/ZV9x2pbs5PD0G9NakBgGpEKzxrGYKqWsc6gLJ098gOVJcnPWYj3gU\r\nVk4l9QUGJslAoW8arnkwo2tEvBmXsgSB4cPxVXE9N2G/1JCMLh5KcVDY+iUj\r\nd0qVymEtp2wLhCE3QMOv9fzsJ2diexdOTPh1TIxyOrfknPM9uwPA9p3b6PAi\r\nG2nble/mVDw4wxMNjr1sWZluKNboXR7yhagEkDeatB75cS10yEu1AQiiZ1YL\r\nu35bHUjpzzdcQFdsSQkrQNfD+hfXqz2DMl3gxeMRK83M8QI8p8LSLU+rDsNk\r\nzjn+WOQBmtzWflg/1bhkH8dQc02dLGSny3k=\r\n=D9PA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.8.1-preview.2f03ee5","@microsoft/mgt-msal2-provider":"2.8.1-preview.2f03ee5","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.8.1-preview.2f03ee5_1671125801856_0.9212494093467527","host":"s3://npm-registry-packages"}},"2.8.1-preview.911c07c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.8.1-preview.911c07c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.8.1-preview.911c07c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b6a92e11add25c14a0e58d31507ee6f3438b5f67","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.8.1-preview.911c07c.tgz","fileCount":18,"integrity":"sha512-J1YYJDREaCQVLiiMK7jwx+iMgx+oMOYSfkLmTqKhqFqbd8xIpbuYjFve0l0pKptbExlGgjirkF519m7OfPwYmg==","signatures":[{"sig":"MEUCIE5awprbH9OMb9VKSwyUP/XtQW/MUePsnW9l+Q5mlJ2JAiEAono4Q+psteDwTFkYVIYX3vs0pNvM8hFEcFXMfmcZu0w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjm2U/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmro7w//eFDWr80Ed9PSypk7ZPI4yzyEMWIGmM4JqA5YY9CRRDW8Xe3/\r\nb0AvvQsegm25zdTPt/wD3wvpsL+q4yBblDrLD7IE/chnCPEP+rooV+XhH3Lm\r\nGpty2RNH96l9ltmbmb6jRKxT2iqQRjys5+MQ+DOQ4/IwW+KLPe5ZnHI7k5L7\r\n176WaZSTeS+hlD6mfET3WnWrLgeAkcQPpq8x2OHc+0MYC2vEMfO3joHYCab8\r\npSJBjBLmpZ+0pfwwDEBwOFkPLxtfCHdW/Sy85LyoB7UD0+r6dOGtBCpKILYs\r\nw2IbtpcMDd683ynSLylxrYwXM++eTy6VG+8ldlxojmdaz/4OitWKH7Lhu1DN\r\neAHKR6+b5iCNotB3I6onhjShsoqQcTYUxP1yWuuo+5CADTx7dYHeJX/gEpny\r\nSs/9sB8FHyZlt5onBt6jCnAmB+Jq1xA476QlV4y6E+01fh+MRhOSqjVVdGIk\r\nyuDNDFXTwNlA5NAmz6+YlI/OyE0IQ24VpiWtqtQzvX72VqKFAxjAgLA2Xx/K\r\nwFDaX5tLQ2T6NzcUttyg+f1TnEuYtWbArW/U0x8smTjgWq4Ba91BdoLSMrNM\r\nEZSoJ0VI9mewcT1ESO8v1c1+kzo6sXDcnrH9kWqVa/r8VC1noOrfqwznspHU\r\nfqxqA9lg2Yqs53Oa1L39LtEGKZrentJbiCU=\r\n=cSYz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.8.1-preview.911c07c","@microsoft/mgt-msal2-provider":"2.8.1-preview.911c07c","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.8.1-preview.911c07c_1671128383115_0.5972271704170067","host":"s3://npm-registry-packages"}},"2.9.1-preview.75d11a6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.1-preview.75d11a6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.1-preview.75d11a6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"17626ea602568f587faf77f208a012923f08870b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.1-preview.75d11a6.tgz","fileCount":18,"integrity":"sha512-RD4BNWkt07QPGL2Rzq3HDcYyLQBQ3utE4SyawdVjh0ZdVBV37/Tv9K92tG/jP7t24epjbHrt5k6qCQ69r7vTAw==","signatures":[{"sig":"MEUCIQC843A85pXSj8nrajWj7qYi5bJt3dw7XxqdUY6ngI7xiAIgFKEG1ZPRV3KBvzJLYTvCzY6cGZ2Lcx0m8OrB3oW4ltY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjm6rUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpt1A/8D0q/ixrg1C0bF1AwRFqzS7pXyDW9gs6XY8xqr9dUEtm1W1Bw\r\nbznHNYBQOe57IIZjjtbBmJ/Otb/D9gBj1+MUurhW2ZLxaJQkqmZrHPHICPKp\r\nj7EB2qMgBdo7NyKi6/rMo/6XZ+3xL2PYNtfe7JDYHZUYgBoXo8UZPzbZKnGh\r\n4AEjai1L+FG29pDdX/qyAIKT4r10DIXfu8zkNxpPoAS3ECM18BlAXKyuDK8s\r\nDjd8KSwsfb5rmHruPgb6AeFxpS3mCQniJ1MieKM+zmkEY8uyjFfhZwQO7d1z\r\nIZZRP8qw48sF24tMkqSv/AqSdBd3j4LJm1f5pXqMArtZ4zxY4nKbj9Q0T++j\r\nRiG7r3h+w5dNGJEhcEeYjmJeWXb0YRfPGXkIqpH3V3YnlkWd+AzH+BpZeLvV\r\nLmdqTkRIcGEcE29cjBaTndN7l6sF8eqXVn26w1bd187DF2aRNE7W9GCPBX8k\r\nSfPdMdjdBH742FjD0xcHG2sRoxNsWdGsb2GSef/FJT8Iwf2XRgEbcIW+whAv\r\nlq4DIdMVMgf9dkOmQXJzlsNHRuWzruVgUIcgcmi2ainNi5QpGtwaOsGbObvC\r\n+b0LoTv/lCzcRmywqgH4WbVeVF77lTesm0p4pjgyfZWZW4fizZ27a4keJ65G\r\nEL7hUJRqgkr00Z4JG2rRtr7IL04rQK5hn/w=\r\n=CgNK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.1-preview.75d11a6","@microsoft/mgt-msal2-provider":"2.9.1-preview.75d11a6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.1-preview.75d11a6_1671146196366_0.4470975897362317","host":"s3://npm-registry-packages"}},"2.9.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a71f7fbef0624cf93fd7c1eb5b428445ddd23f22","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.0.tgz","fileCount":18,"integrity":"sha512-IhZ2doG2cKqth6+4/z6O9Rq0ZLuHe5VPzKN3rbtspBMIYK8XUgS7Amld/2uywnyiBa99mjv1+y3uIsUpBGrD5g==","signatures":[{"sig":"MEUCIDtr3yn8UCjzJmFKynhqRSxu2R92jMfSZ6ytgdhMJZSdAiEA8K8IwSsxIwGa+O0najuAFxOsTxBvL496wrjzlllLSrA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnK1FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNSA/8DVAGjHuoMFmzSXTJiAoimMlugRtJbGe8XuimcZK4eLVVME0e\r\nK6wCKgTKhjFaXDs5a/QYF/9AT2f/ltTovhCgUMkz5mnbehuE3IIunZAGigpw\r\n/s3XF0lfYoF2nsfRHuOB9yHCwi4FVjSPBk/+DgYZrp2pI+9TNQQOxmusHI4z\r\nSYU1iXzxxp1xSjPAdqg5TxZYxQUvvtUMJ+ttlEuRO5LCNwQaGzwTdo5P8TKZ\r\npsy3+zNIrKdEdap2hD7aibamaPLWYLeTtznGlPweBG5tMrps0Nb9h5GNCNTk\r\nka4Ypx+mI6vM6UCsF8eTY2U6XPUE5qP2TdtZ/IcK3IN+1CUgrQuzc77yZaQC\r\nCEetTa/OEM00yTGgu/eLxHTt5uf3ejslS/VhjgvUoWpXHi8PZOtSJnO3xj12\r\nyb0+/B/Xul6fkTVHBxo3W757/lmBRHyqtGRIIskQwL9IfP16hSeN7/qKXiKt\r\nDQ0hxqnj1jMeVUOp0YBLv+R5LpwHSf5tqnc8AMMS4561HqGEG2XNEOCPv7TT\r\nv/Fk8ovho8Ia+ncE8KvjlbZ+0R2q+FRGz4fOosJ5B1sMxXePpXkzqa2m88/x\r\namIzwcPk710S5L/PZGFLk8P83j6bmurkip+afcOLROHjCA88UCXM8+URlCvu\r\nRo7xB879IKPJEHe3IBQijyvb0IOgAMmw7ks=\r\n=vo8B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.0","@microsoft/mgt-msal2-provider":"2.9.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.0_1671212357336_0.5379280314198949","host":"s3://npm-registry-packages"}},"3.0.0-next.enhanced-file-list.02f4ec6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.enhanced-file-list.02f4ec6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.enhanced-file-list.02f4ec6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7d568550ecc2e5f30e208c7a074f3571de83afe3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.enhanced-file-list.02f4ec6.tgz","fileCount":17,"integrity":"sha512-FCUQmVg+RJXACEDKmouFK6v/hYEY36zABjbN+6sCuhlhtKyNDAehcyU80TsU4G0DgbTi+H4c1ieUqlTlbkwhGA==","signatures":[{"sig":"MEUCIDrsn7FdLAUl4fEkUXTiYlraZ+NJUvqV7ZbCBsk88Q5TAiEAg6DJlDE3s3pHVmClUtt9E9CPPGEjh7JnoxuzDHIPzCo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94109,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjt1lPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr72g//TRUixV34XGCVbhcVLbWNduVXSEA0UPQ9PelTr3eWpke+JSII\r\nffePDDbOyAK+4jnfSm9Gv7l1WfcRbexQdHd3D2uECz0nV1UenMH7tb6wgPk/\r\nXpCzOZG/oO/fegCAbzKxodJAOgFspyWVxYJ+SY1QQUvDlpB/5RUeTpFeeBWc\r\ntt0qM3utZIwsOdQrESSdQZGp4w2eSa35Q/cgSaEazDN3GqxM3aNmVbpSLLLz\r\nQtIrcfX+LgcX5tSDV6z+4OclZJaL6goq6IYL55dDU5g9im/tATpXL7rreNmI\r\nLo03r0zeV7K/yz2l4xFPsDaHaj4yAwU6I9BZpjTiEQACjIf1uA3s8S4mU4FN\r\nPAZa0DMJIreO6mazkqiTt24VSjfORPLt5FxmjXWdfcxyKa5PWZOR4Ml3CwIb\r\nZLoNGMWUEuCTAPQ/nORATOBkYwxCIFlfNSudSkzTiFsq8F/yWs0DSa2OTMjl\r\nGutq9RrtVi/peb1ryhZUvZBVEe+BhzozdmlPcO99Wkq0FPKHrFS8LXRjMjBB\r\nvpL+s07YdtqcXMuQkivSpjww183ItTWC46nRCjqEcO0IXn8LuTPkXrJc0QOq\r\nZ9V32QszbOarEs2gxgu6jqhupzuE7x/AX66HihNgFe6taCp+oicbSyo5EMLd\r\nnyNicoI9OlDnC8QLDzyHUhy5KDYZtYsxzmQ=\r\n=NTDr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://docs.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"02f4ec668b2316562839d2e66843862813808717","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.2","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.18.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.enhanced-file-list.02f4ec6","@microsoft/mgt-msal2-provider":"3.0.0-next.enhanced-file-list.02f4ec6","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.enhanced-file-list.02f4ec6_1672960335184_0.2726043422482656","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.d919752":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.d919752","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.d919752","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a230d7b74243f9405a46f4b61e87dda66d3c7203","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.d919752.tgz","fileCount":17,"integrity":"sha512-K7hFqx9v73pG5Zflsy32XSMojjZUH0HwnskYHPbHQi+9qbEJX7eN6LTHYdmkEfR/KuYchOmnKvmAe/GsYqn8ww==","signatures":[{"sig":"MEYCIQCQaGUrT/wV0APSV8qNLmAEAke1ox4Gj/CWtFtpfxAg7gIhAP/dIU1QJp/8d6gFpf7fBN2TEbJJw9+99vTHNgLqjuNP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0Cn5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJ2A//aipmfAL9a2lfRwZqJeGygffwiHgUjckb7DmCxyb8wxQgG5AP\r\nIHVAOYAIWjVVVrFGtHuRNvXnbbeU25HM9hANQ1Tr9q71fbKgNIJTEl7oHK4+\r\n4ZDUg/Kgw6/hj2R21g5zk068lAj+g6sy1Rpc39nLHSV9ft2TtkgcU3u/R1qF\r\nthINK2OucjlnkUO356TpgnceE0fET0Wr55LHbeHJUj1L8SgQd+OF0DRf0Q6V\r\noDAL94oNoNm96pjZo28+vTV+kWU8hILSSA2GtZp1JUSkqZVX8P/hLUfbcrLV\r\nEi7BZMwddmDcxZZW0yQKZzAKHM/LEsqlvwsQHpjG6bUxbt1aqMZcWSQIy9Ez\r\nkTdtXodKtCUTHiItFThCyb5zcBx3tUvAA42Dq1wHDIb6pS3sPF83SkfNK/oR\r\nP+VeJZOV9ZW2VDQ/2fNO/KyfJAOpqP5KTuQSN1w0TKmsaJozjSnTaW/bZatg\r\nbTXJ4Mh22e7i6u+4gwSPLvj+2fZgvDcLP20Hd89r0gneu4h3IV3YmwgZaGQi\r\nhIk5nhyYBqIlGYVUtTHOiYmdql2QcpJce9gwkFeqt7xs2Y42gnCrBHLiMd7X\r\nsR4azRS1UucmhCFCYqXq3oZFRnOV+3BBuUJ2ex1npAB6AogzY5JLagmwnIef\r\nNAHEsf8pH+0ewi9kzFlUa0he/MA64NoyWsg=\r\n=5IyC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"d9197520080ca3f7d725f3c6199a4cb337bc36a7","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.d919752","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.d919752","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.d919752_1674586617354_0.6754471284707184","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.5ac2099":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.5ac2099","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.5ac2099","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"061dac4df93dd24ca5bf33771490198951c00beb","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.5ac2099.tgz","fileCount":17,"integrity":"sha512-GqB5KlGPsUHLIOTFefdH/ttMzhDYttTNhhNQNK01qPsJj8hu2NzEbs8JlNTnFILDe7YzjCEuk5AoPVKRQKOIQA==","signatures":[{"sig":"MEQCICELNtqKommW/vUgNOTv3/KlcYCPaVjgarf+hHhg3mysAiAj1W5Mt/aC0IAI9uT4WLTkXspLGxCCxF9eiV4pUxw/fA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0DqXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWzQ//cOLiempI6ERx2WUsLWrqsrrmZd380Q9TYRVI/jtacI6gV9aw\r\nhbx2BjAlPmTBgUBhfXUqcrd1yNYtlsFFnDUCvBdYp5NQnFsMCZujNduE0Un5\r\nBOjPqW+owtmQoDdDBadIuyZGCuuGduu8t9hWF7b9XPq3OIBjVcAz67CBCTia\r\nCoO2zRASmvvSKomMBLRkz81jbseXDRleloUFV3WUay6myNNsxfdiHOc/mw5T\r\nYTOA4tYCa+Cjbu5teTnzeBZ4mK3s22t0j6xEnt4k585UEEl52EwpE43Ltshw\r\n4hz+wuCV/W6JGDb5RSUGxjHdET1QcJlUItNU6b1MNthMJHUtfWqvWtyfhPSC\r\n0Q8gTymtuDfwk1A7jcBsX/NdavqkXL4l1H3lEYpVtahsBn2SbA1B5/m6Bq74\r\niQFNbcAzNk9ozanIyR7icWTSqlQWZym50pQwJOXjl7kKTI9atrsHsoS0CBKk\r\n7GEeLsHj6EX6iRQGSesdOQ0UydmiY2XV0wyG3/BcUB3EUnFscS6z/994CjyW\r\ntTo8F2ie7aobky/poWNJB7pnu+dyf6SrhQemGJQIEAxgYXWs0r7Udbuc1xof\r\nAWTpSPiLJzKzVoaEp+tEQiC/lV/w+VKcaau6jzMTKLOBD8eNOXHHwN1v1OiV\r\nB8otoRxvOYNOcTxR/pfj91QsJjq+QucnRBA=\r\n=7nWd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"5ac2099e49409ddce6b619a89fed3e6ef6c32c61","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.5ac2099","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.5ac2099","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.5ac2099_1674590870848_0.25888753130313","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.fd01cf2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.fd01cf2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.fd01cf2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"2270f860d4be627d985b7bbc0997fa3640f8f8eb","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.fd01cf2.tgz","fileCount":17,"integrity":"sha512-mTFOTjzo4JmbCnzM8g8RjFlsIqt1/gZcUOKIyd7XF0ipz2XH6Apq9TId9/qq/7sWyDJYiJmaHwWUnGgFBRIsaw==","signatures":[{"sig":"MEQCIFnKb4stKg7KCKZJnhwoesWNM4akfy9w+UsJmgFqFUwaAiBks8BUHl2nt/IQBkSCAtUiBZy8aD4kdTmJNUukccBFrg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0FpJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9MA//eE7Iu9lIYNoJgLlaqI2F1kI69hHa32+wmd4HnZ6iTEkSd63m\r\nYG7W1s7W7x6Y5zJxu/OTOco0b8lgeBD+mg2lfJ67+fAG4LXJPkhgUmGzpCR3\r\ni92j/cqZpCDQ7g/iepqPWnlMPjWr5t0vDFrpSXOK0vPCwOpVYvt5hY1MTvet\r\nRPO8a2IoZ8f3Gw4guhT/CS5FTPNald/FLdM677mOMZ3WeKjtcjMd1fmcMf7H\r\n3zZIdiAml8cbL5PpGZH/AElgYW/zbWVBImlG/6a7Xayep5u4NK6buoG5UJaa\r\nnhzTwnNgZlPZeEZL4Rf5BxZ4IEAu8kzAD0dhpuTevYKOxX1FUQLUPA5BOZCc\r\ncP2o/zXChIgdGcLzhKx5nt/bIBjvpziDURg7KeWPaykAGyZvGog1WFvZy2jf\r\n+hPHIvLGSIBx3gRsiddhOn+sv5UvxFKfe1YxDaZcr7BeTN9wHclgLhRQWQSU\r\nEdFkc7eau89m1mtiBHti8uVJ2j04iu1CjFrXYAbJdgKt5sC9s2rzBHd/KkkB\r\nohx3iDbDmwffWCPsOTeZP0onLS9iizE2TmdKVt/p7+64Xy239ch3aXsR3/II\r\no83a1eBHiUXAZweSicoba5lwHtLZ8vqbmbiqyz1QXRQsPLoad0LapyKe02ts\r\nrmlN9edeViy05wL4HhgyaaF7YRVkhjKe49M=\r\n=tXkh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"fd01cf2e36b9ae26863fd87ff7cdb1162e00021d","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.fd01cf2","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.fd01cf2","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.fd01cf2_1674598985010_0.004817541604942743","host":"s3://npm-registry-packages"}},"2.9.1-preview.5b32c5f":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.1-preview.5b32c5f","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.1-preview.5b32c5f","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a724635794cd0cb8e3822a37849615cf7728bee0","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.1-preview.5b32c5f.tgz","fileCount":18,"integrity":"sha512-BmwHoXQgrGfrpa4R3kTYgpwXyneOybWzti0o9ZfmidqHHb5EUqGPSYrzjEY05qLSB03FbTk1CLzZmwvUdSlj6Q==","signatures":[{"sig":"MEYCIQCAD+MRWQpcm7ECsOe/8x3QNVd/ZGXJtJii320VN8pUowIhAPoRAst6wx/p2QxMlPmGdwK/zck68AAvDR2jPYB9fHTz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0GLZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQ9BAAgrJrd4rQh11MauISJckfIvD/hoRPWSN3QkOW92vrdBy6c/IB\r\nb7pb2f2GpWR8BdNVTU42VZHSitp1LIm6dwkKchFMZCZC8WXhG8QU2sJU9LDu\r\nDzNY2d1hztJyeu6HsVyizhepQadLz6+ksBBGvFErt++lhJ3NCIGoUT1vKLnu\r\ne+hOfkS7vRTiOpQ3gZ/Mwg68VEwFdkJ+yI91DT8ezh+YSJs6znafKNipGzdq\r\n8WZFUZCci/yXzzeQOpV0HXjbHARSnYSOFn55y2cPH32DbPEYoqXAXn49NFNn\r\n0mIaD9TeaHSbpA97OrLgsS6anMeCJnjjZXN6JauSJubkSVY00vyLpWs41kJd\r\nSoE+4Kg2ERrIaRsqtlolMqPG0wFIPwWYGQ2+f6YcU8/DdvcF2KXqmdm3PXAF\r\nXCRRzLNdmAJTRDGh3jWUfaIu5P0DPKlgfr++OHwbvwPVaYliBcCzv09w/u1k\r\nYlRN1mZRs43Vcr2eLjSorwrgdOqJ7lOwY+2Ji/mlolH10FFvH+HPhYL+LCbs\r\nN9oQSbO1HP5rngjykOaUKWPrv9YhBwESVGll5D4/NkySjUHS7B5RWVoRWa+W\r\na14eOo1I9dFznOXoJodqZveEnAUmeEd/S292y1ML4jgZuTjzNmwGbKHgS3nK\r\nqrZt1Kld3n7V/Z0r3jzlSpGiP60WviHHfxc=\r\n=bqm/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.2","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.1-preview.5b32c5f","@microsoft/mgt-msal2-provider":"2.9.1-preview.5b32c5f","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.1-preview.5b32c5f_1674601177492_0.165466663830508","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.5e5069a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.5e5069a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.5e5069a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"2b2035f5806f9a51251ec88ae375806c90758000","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.5e5069a.tgz","fileCount":17,"integrity":"sha512-UF6nTBHwlWhVDOKEqitzIx75aXb0oP39gK/h6zm1aMHMwGSQUqzOBx2J9F21WaBIrrk0NPYp/OCug/il3SVHjQ==","signatures":[{"sig":"MEQCIHw8KiKp+HW27rh6AZ6yeUe3PT4cDblqvh1XmHIYcfp/AiA8lVZ6+m0GlzE3NlbX/F1OFptXvFzXkIHUpYUeAWqxHQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0arUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxixAAl17DmSLwJcV2hCURAQsUNJaniRpwnzyGcgcCERS/gERKEpU9\r\ny7QuGeXCW41RU80u3OZr4CpA5ZTVv2ZPi0ReTWIA0drMVt0vNy8zCvbIgpwN\r\nHU3HnaPDvRECOpFsoh7lp61BvGfHC2cwhq7wH5WFC6N+Po95P2l7pKdSnwzR\r\nLXi8Z1bo6LTQEMYpSUIsa7360GynfCd+4hXaQMryTCrC0GIu5dsCsyjU/udv\r\niDC34tElyQnRQHxqjFldP1xqigL/kAc1IfCDkiuo95UEOkw0JV2UDwJTpho3\r\n7hmXgAk76EfM8vaxkwmEwbDZXeDP+N0NVlIzIGWtbDjZXs7b/lA+1YWHDyfN\r\nTjS4sSIw/MrqmUscKR+FgOjCx4vl3C6AdWvUks2MsIIGFHUobKjyPMMiR+NJ\r\n6jFvNrqc0C/WOafsp1WT/CohEfsuGlTcGqSWw0IfNBenXxaW1P2Rd69LGttv\r\nuRRvY7Qf5Ed7mMpBNxYqZwYZp+hUX75jDBpC6EXDdM1IXJED5CoarOAsGK/T\r\n6ry6s99se9f3hXx6Txvom4Pla49yLZUpraiY/IrBJ8OuLMkhy7I/Umg1FXUW\r\nSZxO/cauanWyfgd0VqBjJRICoxMkJuygRtRdWFpFLthghHnhLLcsGHcOiLpR\r\neLd7lhd4EP8iSX9IP3B+5oPBwxKEns7lcQU=\r\n=2cBM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"5e5069a0b8b91f3dafe30e9458cc5e35ba366255","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.5e5069a","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.5e5069a","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.5e5069a_1674685139852_0.720609009074165","host":"s3://npm-registry-packages"}},"3.0.0-next.enhanced-file-list.49c3edd":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.enhanced-file-list.49c3edd","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.enhanced-file-list.49c3edd","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6544eb673b707c8b82eb6b7479164f89cb2ee566","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.enhanced-file-list.49c3edd.tgz","fileCount":17,"integrity":"sha512-RpcdqXdRORywqPD2453ln3eaRT+AaEvocKNUm1a7unV7eSxsT+mFh+Rwb1xm0mHOKopsv4o/H+xMhkr/DTgmaA==","signatures":[{"sig":"MEQCIEH+/o9hnEwlsdvIGK7mM0bGz/GoCVkEcpOjeTTz/OKaAiAGyr9iVNKzAd9Ijrd7TwztAVYqtN9RM9qbxsWyGzCAiw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0bqBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPiRAAoiJlF9jzViel6k1QhAyFI14jcitalPn15sbhbkt5TfPIo7pw\r\nuJVUc6pdWtXTCfYLfj7yxDjuhJP/T+BGARBmjrdCA4K/wSCMBfbgN8sEJL6Y\r\nBdmi2DUIRUHnHwmFo9l9pVqUQ0XTIyChmmI834Nz6nVKG7tcpYuh+c8cGgyE\r\n8C/aGBzV2Wl2xMWsYY8zSbW4HOVEUHUSCykcmIFL8JpsfYxBWucG4T51+P4N\r\nIVtiWXj+9KtmC8uDk8RjTcH/8gsyL2trHRfaTgK3NF5+inUWtsjZPxZbai9q\r\nmZ8CsYmoHEXxrEeF/6B4IrDgQQw6Pj8gMY+glDAFx17kk+6fVnd7fxcLAv0D\r\noLTxacYDCqR8vjXnATbpPkoy/zb9pN1X2ad3JtVrFsZ3zgM1QeoymtguEnS5\r\nV1jvfTCQtPNft6468GlWAF4/wWguUfCWRESShaTV0jMV4ORX57YoYuPgaCuj\r\n5bTmCQ1fdZJUDeo0m06kxNKsPvn4aDQ2xn7H2fH7X4wAFbCBn47+K50wyef2\r\nWrKpqUsFxgPo9sjKFPDUspiMt4HrSEly/URq2S3+lZ8aWi0c7tzEKOO3YQnU\r\nHI27wDPgCNfXjYZf7GhEbopNM8SAlqJqO6dSK2f8/OQy6rzRejeNPyQ0tFNC\r\nz19ugSzqYJ+p4Ze3lt8RtOwgutSBA5Q7l1g=\r\n=ZuE+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"49c3eddd5ae906cfec172acb2c08e86fc2d0ebc0","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.enhanced-file-list.49c3edd","@microsoft/mgt-msal2-provider":"3.0.0-next.enhanced-file-list.49c3edd","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.enhanced-file-list.49c3edd_1674689152854_0.9674369099708415","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.9e00738":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.9e00738","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.9e00738","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7d83796e41ac9cc235d2581e9b89607efadd07fd","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.9e00738.tgz","fileCount":17,"integrity":"sha512-RRn9ZaigmEFaIEqYVNYMk0WUn8D7X8qMi2Neg736m9sM+FptqAoKYL1sANXAFIn7/0xo6evF8hvjbbPymtTesA==","signatures":[{"sig":"MEUCIHmekuEdju7TlZda3tI0oMqHv8dray6UwGX6WVHA4ckHAiEA8JDlEbJWR/MgZlqCNTlXMSW9Ap0utL0DjVt7j4IyT/A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0snXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfXw/9Ext6IcoAZR/ZrsOTQy3Mqyjbmk6FAkaxlPZGcG2cqQLneVO3\r\nZQZRZ6BmiqMgYf3brDOoej6YJrWo+LfyDN3/E4nqUlQMWiDYmuwy5ONhQNvB\r\nBX/mrNIh/dZGTGzaykj4huHJjo6qfmRV3RGGY/Od9phHyZ/Sam4eALRdlDTf\r\nozGk8QL+ms8eDk/rT70+wR6yf0sutr61m+41fI/N3wN6lmhjo0aFzh8zBylm\r\nHi6n/qUGVOGklO9cWRB1SIgm6HcQsIzWlwl7j7scKKn2iAFsGl22uVrxtiYw\r\nu8dhGZRkbbxeOn14tLg/qalJiy4s36WlzkLAR8w60v3kGkTmbRMTA63NCBzv\r\nfTUWsPv7WmhuyLGLW9iqutNQFDALP2TVLU9JIFh+wLMzI4MBDdZGwbC6Eps7\r\nqqsaWVtwW44feA9oiAEALuXMCiHQRJYBsfHwV60NnqaLEx5OPxhZR0Qnpqcg\r\nK0Cl1Y8L6/2GxgfrMxOKJENcfhFoJzuE/6ODSNBe2hjzIeP39+qyb//AW4rh\r\nODc+47ThI/6fjbFWnsPgemPsutSkrruAFel5VP9d9XiqwzuDPyIeiJ1Ac0zz\r\nKpiTEnposNmfKXlXEiCtxIZfKNUdrsveDFy9xZFnEUwAmRdpZ1mmQRhC/gi2\r\nnwOtS4F08p/nguOWKe3OQaeSoF3awxuAYDA=\r\n=2N0h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"9e00738e94ca98a44e4eed1cd8d4ed3390d82cfe","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.9e00738","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.9e00738","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.9e00738_1674758615133_0.10001378527695293","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.050527a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.050527a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.050527a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"fe2da4ecccbeb6c3b9e5c8e715e45ab9122a612c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.050527a.tgz","fileCount":17,"integrity":"sha512-3QH98+OJeVLVE2kzn6hnGoYGoKTtTzKlyUkcKE060AebIhT+hfwGG4tMJIgML+L0MnVkIDErWfkzWQ9eyKXpRA==","signatures":[{"sig":"MEQCIEmjJLfxtOnVAB/s+N0yA8Q900+SblDuM3LEEN2cGODyAiBhpsty2dQk/HS24WfSn2gdm1QFwPJoX/weK1qlJgqVfw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2FYtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJdQ//XV7nYhUJNW43D4AOAaTRNJNmTqdWeFjlEvIk43N8XRfR4zK4\r\nMpbQ7dL3K2UgLYnygDe0c1Gwf6j60ItPm1Y1QOLKufcKVbC8PugpN6W0WDvk\r\nG/JWbF2BYcRb4x8lSi9XNG3qHpq94/rkfDq4PUX7DhNKRPbkl44vehvuwSsG\r\ntrB+9W1jzoPoBnx42b8pWbX2msRkjMYI1/nPuOu8pI6/bdvlBqYfruR1iQwl\r\nntpaMVzTkKKBKgvS/scAE9Z5fKuI41EeaIxgn9fItkMijs1wa5UUGCUhQZ9v\r\nKJgPujofJyh6kc/ZFRGjkQD07QzsSQE4pp061NmuVamg5FhnxJAKXbM/9Gsh\r\nQi7xaYFsOdjsIC6CMTKUWu1TH67LI5zXjKY7BIVu66GrhOYnjMxaa1P0VMt+\r\nh8No5dhZfbJnkXuh0SZWVDQw0pB0lGmHtPfqjlWpJ/fh3fwfA50F04o/gWPb\r\nc2fFkOi11FuL+jeW6QzGExwBhhfk6CNcKuBQ7tOGbHUal5lJ0GHFBX/Weaxx\r\njjwoTjDDNRHZKvVBJpda/YS/3aqc/UssL2TB5M20eJeZPIrIHoBEbAKQfCfC\r\nG1kdOlecdeYnRhpL8NCFd3JUYmFaPn+jH9gk0coBNwSqJbFQICsnaQQuLDTe\r\nJVk1xhvP5Dd8Sz1DASajre7i+uh+8JWmKOA=\r\n=Trs8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"050527a474086d0dfce250cd1c8d06c478631c13","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.050527a","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.050527a","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.050527a_1675122221038_0.3949250885883602","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.0509e40":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.0509e40","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.0509e40","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"c6e07cf1cdb40083f83b0bfeed58d1e846a30712","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.0509e40.tgz","fileCount":17,"integrity":"sha512-3PFLRWqRIQICsaOueEfJ71ZbQ5KCYOHkTFcfH79g7jYNhjS1ADZgGbUeVSjBzCS9H7RJh1J6PDFTpE3GL1J++w==","signatures":[{"sig":"MEUCIF83dvU0ptqDIvu8UvJ7lYbYK3V8bzQ5ZXDT4Qp6jCWLAiEA8izYa7UI9uwmpMQang9AhEV1q6pm5PqK20nnZHyij5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2ZW9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpn7Q/+LTyfuZEKZ80QUe+BWzD5hNF2LaBS/InyJxj0xzUGMh73Qpby\r\nSEcfh7f+i2xM/hzX96ch4R3yKZwZob7GjZVljRqEvtv/ENlLQ8JSRVPyY4Wk\r\n9TXpdT6DikQXK7qZ+TA9ECatr4AFwI3aGB8o93JFC7NADdYiFNknRKaTeH1a\r\nhySx1z/UEj4k8oR35MX5k4+UmOk4MIaTUrAglqmwyiYUj2mC+zkTjzS2wOWo\r\nb8tcMBtRXw8nBJtjN80jThYQlpmBUcT4IJnRBRc3HqzpwYs7kzmNfFociJur\r\nure09EmmirDuW152DXtNN6F7namhZdIrONnhJJP5dn9mqWeHrHBKx8Y5vFB6\r\nuS8hPMdRYPbyN43gcU0az6u1tunKEldqqG1mTFLU9H28J/Zy46Wb4JDwDVsi\r\nqXurJWSbKseH2lGjOXIiLLIz0DCDGxPzCAnX1oh62cBXK2SVy4ZyaWycYNrs\r\n3raWswr0CIz6gtBwRUo4WtOYrm9djGLTR2hCOeycvJ3ea7G0cHbFs6F3l+li\r\nvaAFvSwGRvV+0L4N4YP3PEVLF+KzV5pKK1HXUvMsx+oovPrrOQUV/5X2dtbO\r\ncDwhi8og1GQp2EZn2XqmW5xlKKjyrIWbgnFSG6ztVZZ01xR4I9SANRTOSYy3\r\nzoIMM++NWzZCQ2XhVzlpu/eeS42xsFuo2p0=\r\n=X3CS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"0509e405517412d6b2a97480e3a9e18db2b1333a","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.0509e40","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.0509e40","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.0509e40_1675204029122_0.25805060161649096","host":"s3://npm-registry-packages"}},"3.0.0-next.wc-registration-utils.6ca9b59":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.wc-registration-utils.6ca9b59","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.wc-registration-utils.6ca9b59","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"03a830f3b6cdf75f349105509afff161f42d34e7","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.wc-registration-utils.6ca9b59.tgz","fileCount":17,"integrity":"sha512-u2Li3CPRNNde2Tz215ngRRvDBPiRJTsLJzh7xFEWRa/Ou3B/msp6UzVDYuxTnpKmS4D9gTU8aGUclhyjRVD6zA==","signatures":[{"sig":"MEUCICzVM3AljiDecJ1GH3BTyFgZ5Tsw+gZ9hjaW1SEKWPwYAiEA0bKrFyLvH8kNlMQK4dGkm8AnUsr5Pwq8kRgZAq4oi7g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94229,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3CLWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDjw//X6W8/VUfFaJ6S0TfW5Y7hUy9y5uxpyHOZH909WAayLLH7wlg\r\nXjfEiwrtoN6SbgKO7BGtvj48vC/87vvaPPRam7XpkBY/VslKCdZcVQV3mEzZ\r\naO2PjYpBiRIp9YlVlKk4lUkxmRZTMDVHi3TYP3Qx/ggWRcLbIFnv8YCRszt+\r\n7Ve3KsuMw/5fNIaPos2m0/c+YL41UB+sgTivD43PhUmoZCaEnMdVmag5ImS+\r\nxt+Nmfjghf/Xis4JmdRFSiNHBlWlDFIgaAZnoy8tWMslUG+7NtiBFz7rqDHd\r\nmvr/en9sr6U4sUa0OINNE1jBYzLLkdFaEk7UITGKgN2yB1kAedOJNc2cPboI\r\nz+4Vknwic6I9ITbi4QKLmb8oyTiE+4bDIVnkCzmbTlMxS9o4KKVzEsRnSFi5\r\nsr84SwU9gCsqlOkkUAhgNGvRgvDIa4Tv2CpIkXi8I0AaGjt7QmYCRWgpUz47\r\neNapGkTPIK2FvyRW2fQTxotNhOeVenpIF+YeR6plt8rI7qSKr5Lo0AeoKV/4\r\nnDUW8nxYn+4rfavSwEz6+yJK0vJvmo0KRnC7jXZ47Urf/Fv39xMIQiSMPvrn\r\n98ceW/owmRIR7mzDXEILREBcqka6IaJZ3YcJpGkEUQR6Bok4w4Ak4p96uSam\r\n2u2lYIl1zf13X7gd1Lu2/zWA9wDvHQ8DBhI=\r\n=d5rC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"6ca9b59ad6424613417cf1582aa85ddb7e692e53","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.wc-registration-utils.6ca9b59","@microsoft/mgt-msal2-provider":"3.0.0-next.wc-registration-utils.6ca9b59","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.wc-registration-utils.6ca9b59_1675371222633_0.5303643616635618","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.6317ccf":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.6317ccf","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.6317ccf","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"c60c5972f40f4128656c9365cba84fcec8a29c72","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.6317ccf.tgz","fileCount":17,"integrity":"sha512-oUWKVV9a8Slm718vFLRVWXXQP+TqHkpJhirz3sJvARSWXEVuWgXqSR+4Msji7ZTxcbaMHga2tO3+4JcNaocLmw==","signatures":[{"sig":"MEQCIF4UEl/32NtndjWuj6JpmqcrcC7seyvmuAcFv2L4vMuSAiAcZeQKBe1rraQiUdjb2FTA1ppPlr9c07ca1dHE5wg7SQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3CRwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqY2g//djweNVUU5upJhdbK5UJecutr+Yl6BZTZcofzM4cQhaJc9q9C\r\nqqqzEtuCp0yq2px80Va6wdH4yBOVwME26/5H59xEiymVzYBGopLh8zOXwRMp\r\nq163XOp0b0Zf+AU8YfCEMBuGdfZVQXHdELGaRzcpXYt8CeknZ6+AfTKRscbS\r\nUliUFU6IYEEKQp1ECwbfI2RKtBqfe/x4J7Rx5mq9akuB38HyypbS1svBbPVx\r\n3MfCCed4+0Md8jva5mMn3ktAMP8ILgbayMxWUUdiwtreMftyNpzMRBaB/T+v\r\nKSSAucltFH+zXu32LQljLfzROVuParHzxAK6c9xjDkoZM8esHNqrmQXpNK1K\r\nuvc/hGp+cNCJanoil0ywpMtHOCnZVfyqiCkNGC3zreBdJARDMmxA/H63M7NQ\r\nJtBalf3DxcLyYJXiOdjjk9Zi2O+7uWpDpzngEYpH9FKfQCphQCdTqRr387oK\r\npXj8QHN/V+uvFx1+7dHR5JCbqMQ3JdmdPsUeoBceSbCtc52dgT+/NTVRFIRM\r\nvv6VLlVkOwAZ7aZ40bnZ9IraL4hvy4x/G/8XC9LKVpu1dyGc8pCEzae3ov0x\r\nIpYjgxFNo3mFNNaOY7kmdU4EaOyh9/wqKy8TVVtIuvGQI9ldanMg3tcqiraw\r\nocznFgsEeTY73STeplGMnmkl4HQ7AvMJoxE=\r\n=ZOMK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"6317ccf63a7de136c138d47d8930eeff46b0cf70","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.6317ccf","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.6317ccf","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.6317ccf_1675371632578_0.35486707762608294","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.42c7be8":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.42c7be8","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.42c7be8","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"52e64a9e4391e469647ac094799745500378f735","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.42c7be8.tgz","fileCount":17,"integrity":"sha512-8sRKPpqjNRRRjT1gUInPU5SztWgKyCghNC2QSp2mgKlOV5j7FZg8SRcA5HyyL3ZpeOz1sOM4lwtdChIPrjZN2A==","signatures":[{"sig":"MEUCIEtGAmkG2VTgfVSmm5lVQqBOOaw6cxQrk+mSHr2QB8SBAiEAj0M3BCz+wJdOC6UYTvJ6Qys8JTvTfK72rHRSBwgp4pc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4SevACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpV7w//SdTScfyIjMoi3pFb/FaUXY8EmF4B0ZHonuYEuf1Z2iSB4sTf\r\n1AV9BCIueRXUFCozkdCl13wvcuw+WRPJd+n7DEuj58mlPQu784dNsyI67Tut\r\nWf9NXt68XJcXM4fiY/SoqZaE05GxpDXbg9rsvB/nNb028q/wbBPmCbN5UNJz\r\nUe8zi93nX/P7p8a4fqs2YwI8q4kL+JRKOYLekPGGKtIL3U6sC4llEL9Y1s7S\r\nMqS3F7j2lDxxvFc5sl6a1/3qeJwSgKrf4T5itxFGzPTCM/0gBJpDd8ktDg1m\r\nzeFqX4AuFlfFUo2ASELghxJ3lEh7HiM5JHZPeZWzD2onrkKt/z8isHLs+4vU\r\nCjkkNyvIaHOUGKHNac2SOjIRyBP+gqU+CQaublFzNTSi3e88CjNpO0tgYFwP\r\nlo4Nn8gine5lqCVvPje8pQ3AsHzlGU1pSaBgThjZyQSnaWg0/i9qwPn0iHHQ\r\nKu/Un0XNJ3m0Uk8TEu62skD7BxoWqkbsRPrasjQwTWBpWHSJLRl0kANGIWB8\r\n+eQCJWDHUGqdy+Iw4WsswxzBiNgctIeYxAtNCiv0q5039a7C7CzKDIlCQz/D\r\niqBvFYkzRZ8cjMCasz9TfyocpuV4RBFWJZ3tPlEsYvxIZ4nE6e1oueMlMaKM\r\nM6RPyiFVvtaLuH5lxEhWpBP+vm2wec1EZks=\r\n=x1eM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"42c7be885d424c05618c41b3f300422aed1ad063","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.42c7be8","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.42c7be8","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.42c7be8_1675700143464_0.034789905219291484","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.bbd5da4":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.bbd5da4","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.bbd5da4","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"0a766e4e01d4a19fb4f65006de12c9c84d4d1f3b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.bbd5da4.tgz","fileCount":17,"integrity":"sha512-x/CO/XqrHmotnNyXPYE1B7VdsP3+fvyqYKeY3N67YHMLFkeAJLU3+XD7vetcwsCMoTL/mvAZRkU73gjwwG2vmQ==","signatures":[{"sig":"MEUCIQCbzQMY0tpnY3P7jcGQgZawUT5M5FhlOnYr9QsLHik4swIgAxOvc4WR4B3S0fj9PTZtJHLbZV9QoAcrfJXcY9FUXh4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4S5MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmopdw/6AyQjYrGkwQE1Jb9U2EdSVGlMRfMbF3fHExi4fq6QeyrfVTdc\r\nRWSi5ieiclvd5E7UfvjJt1WhjZGQ1jcxyqjalcqwwpOoJhaEbxb7hyBeJkdU\r\nWXl9lwvPAz2gM4oRCRTeZ1l27MA2vm5HOTJ+TgVRHrR2FTeb0LuRUP+7yBpi\r\nCM6V4AzQnAxzkLUDGH+YhuXSwsGYk6zTGn2qk57x1umkj4hSfeZCB0w8C8GX\r\n70A/oU2/ur7BNnkO30dEBfIP7Umf8ad6Qv73K0gdhW6wZ/KU0TkELVyg6Vaz\r\nsuUWeF1JDfVf+WH6zxoXimfdrSupfNSF1HGjQBjQ+vunYt6NG3v2DveMI0vq\r\nMjXRqDfdLTQsVRdHO/BW1AAUPjj7j+9a6DmaK3+mypMSooqDM31ioIhypYRV\r\nBicFTA5ZZ3quVdeaH1fbYKQpC6oyB9CLU1Iouxrx9EkCy6WW2EtprIKli4o5\r\nigSaqy0hmMUg/NdeztuBAKlDwp/qh85e1C81CNMGO7am85mc0g8ii1VVZz+c\r\nhdVSMUwUvJN7iSK32dHps4p3THL1b4tJ+EJp9NqEIoxtnTfMz3Tf+9UYL5U7\r\nLNgEYbGXJ2/Dw7Li8rpEpf+RM69OTJZxgjesCLhBXhDCpNjzhOMsT2AYfBnQ\r\nsjv/Hp7rNR8mXKuVeseG562P9fkJ1ph9y1w=\r\n=ylAR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"bbd5da4896c522fd916aa90b7006bfd89003a926","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.bbd5da4","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.bbd5da4","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.bbd5da4_1675701836058_0.2079500606136122","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.d7247a0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.d7247a0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.d7247a0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ca6fe26c6ca27885f42583c8c8df1fafa1ea2f1b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.d7247a0.tgz","fileCount":17,"integrity":"sha512-gVLk6Jmm40HDkuweu7nybG6TiVeIxYCb3+8Rkw7rZteRhWFRH9fpYu//Bvr2np4UPQGgQH7Ln3aA6k0r22YFew==","signatures":[{"sig":"MEUCIQCW+oAcKY9+bvuAUfv60DRjFaazoXleRXk4T1j2XylqwgIgLBc67QDOywLX9Y4mtVj7mi9cas70jKCs18PVRgZZN0s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj486GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2qg/9FgL0o4WjVOTBml1o5U4yAOyJ9bCGzJjtkaoVr68uzI8IrTEA\r\nxVmPGr9UX3LZ4VyQAxoRyy5ymxmtDqF3MpfMKBneSyZotMxofm9OZ+dbGwhA\r\ns90DD88cot/Oz3ZKKwMiGTKEVZFYbhX9l2bfuy5eYXjmDliz/MwLeBsRXJQW\r\n2M3M7vj5WE3l/P/ABa/ZW6f7abPJUKxWVOQAN0y7Aj/EOcZNvtZ0okZgGQOt\r\n8cqh7ULDhDHwC7/Ewb+h7FmAfOktbXrPi4EkoM0sGVGZJPjpbR3wc5SvfwLp\r\n7fsBR2eIfrZF6oMvYxa1RBX5hxOpqPzm/U48gf+WB6F0HFNJC7srlZuP1+co\r\nyjxLaZ5TI5i3gn1rp+Ag7/exW1oyaFOiyq2kyYDJaRhDGN2gPTivHKnckOsQ\r\n5wWIq2qbgPvxHFdYuur3fJGOgfbRrvrQoaof9qaImelEl1nPBONZWNw4s7+s\r\n4GL/IeZsb7ZibIaKr6AkDllAlne6jv+bpN/uzxbTcQoKN2XEW2bY+iBbq6IE\r\nDTZJdBjK8yCTe+JaIobt50OoRpowOMOBH3P2c1ncKrhoH/bWZ6iL5ysVB8fY\r\nehTkwzi7vZhHg4SrfIg6ApkEiE7Acn0b3b7BOqf659PNWDnyl/WugQYITi6B\r\n+Gc25Oi68Hos+nTDGSYJJGxdqqcZx8ySTkQ=\r\n=w9+7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"d7247a036d6bb0f16ca0e9b6bb8c364e02fc0cf3","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.d7247a0","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.d7247a0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.d7247a0_1675873925921_0.00963858974781906","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.21e4246":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.21e4246","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.21e4246","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e6c754f4f42a91e1c5e5b8b62f12b07f7fb7479c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.21e4246.tgz","fileCount":17,"integrity":"sha512-nuqxcMKmocI1nEfHHVJnA4NlbR9D0ZTz1kKdQix4xS5ak6sMf1Tn6A9cXFx2m+USfjshPsY1wYHr4u5RTBShxA==","signatures":[{"sig":"MEQCICYJTVnwKzYP/7+KZzLoIRJn0UJgt/1DlmEgBudimiPJAiBatakLkFObYNA/OF3xHh40S1Jw+jTHrOd0XFFYJaeiRQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5TiuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZYA/6A1F+0tYFIvTH1ueTa8MEE8mMZkQzYzObV+maT4ZHXW+4a7Ki\r\nK7/pat3KLiXxo+ZZC1grqV9FNoq9i4Y0QPYQMTIkeV2zu3HYox+5N1zKnNJp\r\nW4LqISSzsX4aXsIhWp4sj/dPdc1CXarOEk6Nm9UpgB8l9UcQYCZ+LVbAQZQY\r\njbQV/sw0fzoTEc9/S6YIu8ozz21fNPHla/oYe1I8nhsjMa/OImx17kMWDUDq\r\nRvpc2sh0XHeygn3qv4Pan20BDdL89VrZIvaS1r0Rjb/RdR2Y+r1e7VuACzpu\r\n5r30kM4oEt4yHutExsFcc9UyoP2vuwPTcEj4HGkULGwhRUFpVZ9ggjbuEsI1\r\n0uJkA4VjfDrIsDJKUhnHq/5RN6ilt0W5RjvhqTv62YecF4Tg8kmX8sDwJ/Yu\r\n/Wq1Db7whWGb4C5IOyMY87/a+2CqpORQ8nOLsiaFEuxy+3O5MiEEbpmQfvTR\r\nNflzWUyHgG+/30nrOB3NKVdzPilrF8zOBPsDoMNn970vnvFVqX6sb7MFNQZI\r\n/yfqt0G+OxcfvZASCnfdjaPJ+EEyjnk6ApihGVoyJenQxNnjMYto3fle2OLo\r\nyhJIaf6kMLGHMCdVpusivCPLVt0hEmHAVmE6sncCW7/FJQ7nwJRqQN1XQ3VX\r\nxsOVbMM68HBWO4YV3F/D/UeKIG0PwNH3htU=\r\n=0/NS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"21e4246feb1260087b3366fe885868316e2e4f77","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.21e4246","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.21e4246","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.21e4246_1675966638636_0.05927176752399976","host":"s3://npm-registry-packages"}},"3.0.0-next.dark-toggle.badd280":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.dark-toggle.badd280","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.dark-toggle.badd280","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7938d5b7fea5ef8204d4112befe8bec52693e13a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.dark-toggle.badd280.tgz","fileCount":17,"integrity":"sha512-2I5+4xXk+8l5Cd9i6EZ85BissMAAt+7byxJV+TdLc3eoaVBQ1D8vKP+//imqcQnIAuXxBJJvF/jF0vA67iP7ZQ==","signatures":[{"sig":"MEYCIQCeSYCZcoXMpsEnXfe2wwpeMvoeNwS5dzqMAHcxPcTYogIhALcS6S1PnSIOdvfpDkirZ4w4I7/62/RYR2RbtnD91FBQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5WdnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqnxw/7BeSUvoKM8YK6arGa5EYhtP5UQyqS0eRT5hw3bSMVov5yzKEt\r\nnIidFhMR+/4hNsH4fEb9ONkvCbBzuOmV2ZLtojxfeJrFUFh92JEOwIsIgb6G\r\nL4HhCSxea8Yjsdaqltx+FJeSJ9JvOTgfkmNfJsUT05aDC5uABK/1BrtKKHbC\r\nfhO0H5XCjCZ4oGoJwPrUnd7br6h2gPAKgrgoN277j0mA+nTWXvrsmWzuaPw6\r\nMI61E+4nQMY9Uhn+VFnq5RoY+XxdXyhreW/5o7bt/9FcYksD5s88OliMog4l\r\n7cKqgVH0z5wffFXzh4P+FHCLHdcAln0m0P9a5rvu7fmuwFQlN/pZw+D45w3g\r\np1fiKlT5Dzj0xC8O/91tCiVas2nKDEtopUubLYEG03brmIZr8VBNM4f3fCo7\r\nsY1CYkUXocukFrg3mAdf1/zEiVJJ41B306ignPcnHI7aYzeXU+Eb19khyhUH\r\nu7k/b+4lFlOQS4bnA8vP5sjv7rjCqBtOyMzRtyt/ifg0aZWbVFzs6Rjk5LcN\r\nD+ZOv7zrfLPUifP+Ci1nLOM0JOZ5iKHwRjVfCWNOrOzvy59eYv49Sj35BEJR\r\nWsf8kKgPOTk87j2sz7Eb60yml/ZPoOURBGHBRRCjETHm6V4DOqZE9JMxWEAn\r\nyC3ZISwxCtLDm8LYYNRGlBaIcIDvr9E18LY=\r\n=CpAW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"badd2803fcf4e76cb04be02cf484767e7acbf294","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.dark-toggle.badd280","@microsoft/mgt-msal2-provider":"3.0.0-next.dark-toggle.badd280","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.dark-toggle.badd280_1675978598957_0.5905586834726428","host":"s3://npm-registry-packages"}},"3.0.0-next.dark-toggle.1d08034":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.dark-toggle.1d08034","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.dark-toggle.1d08034","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"108105e13a18ce54316594022740150791805a69","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.dark-toggle.1d08034.tgz","fileCount":17,"integrity":"sha512-PcDoSEqe6BtG8fy9RA/OHWOWkVLmt41fxevLoLovwFv4h4RWdDR9VvoUVrDOutsBsalguYhYuox2OQIx9pbcNA==","signatures":[{"sig":"MEQCIBzAK03x44WgZcUZfSKLPAooERhv/CJSGqhgvNfR7fDUAiBkdEC4fv9bqkvv8AV6BUmA6duK7pxWWQ7ajcYdAr+yaQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5WohACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoz7hAAmB8pBk6PNhGUBFk95TtW3NtgvrTowd6xHPXgOplO+1bjVISX\r\nxe1IiD1dLeJoiDTVINvcUHlwVd1FYi3sJ8R/VUhm67X0GVs82mA02MfzwNGC\r\nMSyuGrybu/KVnKNDMQI+3V1iUsAvj/NcZ+j9yHgztPeacYDoIVsaK/XejgPc\r\nbfpq3OvUYlo3JqH2XeUANR5c0nAw5ASrL9GE80TZkcutmdGFmFRAUlJJD7L4\r\nnSiXd/KB3Zo/nIRGiXU4/y5KBnsPWqrjuLIPpfX5D5nlAVu4lvsLFrfJbeqf\r\nO44vv0s4mQiD24FclQGbBbBjnxOUWSFJnF+V9hFztJrc3L8p/2QLa9SH0ytY\r\nSpZOdBHV4fD0TqolPBhtilqY/WsWMKimo7QlR5x0GoGYROdTGckpVGcw2eYW\r\nhkLipe8b9G69g8aQyh1ZixC6XslrbKxMLStY2Ee/EvlgUZsk+kDP4gEFqElq\r\nqyTX4hjDHZedORxPLOmZ4R5Smf6wX1MaknXliLJ6af+ijuhp3SQf7yI2789z\r\nE3alpxkMamJwiCcZi4zNCrjfxYt3fc1aQE3hRNL9qy8Lvmv1KNgTLzCW2QLm\r\ng2g9umpmgAhboJ9ppDu3iNtXHxAZPvGjR7zUM7ILZBG5aTIAFoUoMsbNXEEd\r\n7kDnci9vsjrZf55qzLO1cuTOuPklzS84XSo=\r\n=7qG4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"1d08034cd9c558630939e97515c07b28cc666386","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.dark-toggle.1d08034","@microsoft/mgt-msal2-provider":"3.0.0-next.dark-toggle.1d08034","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.dark-toggle.1d08034_1675979297049_0.7510305062235989","host":"s3://npm-registry-packages"}},"2.9.1-preview.b38f17f":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.1-preview.b38f17f","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.1-preview.b38f17f","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"33a323698eb649c15b158f994fe7ee356064344d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.1-preview.b38f17f.tgz","fileCount":18,"integrity":"sha512-2O7nG2wMDSyQeYGmdZteR58kzAODqsLscpBdlJfAP5sW2Ct05/ObSvoVBzeefuNOYXJ1srkMUrXS9MCEgVz07Q==","signatures":[{"sig":"MEQCIEGWR1yoOutihkDJtxGG0PUE+gBRFSnX22CqWgAPkMRPAiBNeTi0fdPtNEdUvOa+fxJDnCQwJhdO16qBGAiRIunsZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":197265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5iDUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR8g/+N/r2XzzrMJc/xQtI5Qe78xDWd3qrW/3jUDpzM5htCGDx2JvT\r\n3ci+gJCj7rMWlawDxrOLdg3kGzCX7z9/WiItyZQnd7eeXe7qq1Ue6bIEvQ64\r\n+5QPLwuKSFv/qlV4mwOmBPQBxeLMOVHtTb5EfhN8reKYbCc5ASLXFRXJSyUP\r\n1abkCbSb5m8oiGj0cAqv2Hjv4nylBmcqMWC3E5iYCnPns9f//wBNLE+DjRNu\r\naBG8+I4Qoc4fQG5OjcLq5x0MvQqiiQsi1HOepupRxgcDCmSXCm80mAGsdytP\r\nrBNZdWgGXRnppiyPMQyXr/RJlXGTaPzflaDmeuCRzSkGhvc4kD0spvryaTBQ\r\n6xOi/8iYB9o/6E6C9KMiVNHXFQT610+WlldhIW6Z4ujXyofuuincvfV3tWzB\r\nikUyJuW6G/Nyg4o9R6XPxY4g2XzMYwyD+BnT7PkXjB893wz8uODtlhTsA//H\r\nYWEg5q2H1myu79xWEyqmS1q5a0UV8RwuAJ137q5R7RdnGo5OmJqgT1oJ+IQS\r\nGp2AWoUmX/++IgVtTgZtWxM9SFQp+A1v1YSLKbFj7KBs0Bh0LoPqGWDd22NS\r\n2ctF7oNnHnH2LIGK9vkUlb2OTIOkw8ufKFSqG48EXXQVSBw3JnbHHLxzlB0m\r\nAEdua6lqo3YxCQMnSc7wQ+v7ltW9eiVbGt4=\r\n=uj/d\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.17","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.2","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.1-preview.b38f17f","@microsoft/mgt-msal2-provider":"2.9.1-preview.b38f17f","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.1-preview.b38f17f_1676026068323_0.5159308636873412","host":"s3://npm-registry-packages"}},"3.0.0-next.dark-toggle.a302768":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.dark-toggle.a302768","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.dark-toggle.a302768","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e9d5092be1b765128576f9fd7e98eb33046c6646","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.dark-toggle.a302768.tgz","fileCount":17,"integrity":"sha512-6/ccUzARS4J8+An6qH+9R8yGaAZAMIM7fUDuyLKb8oSpwu1pQd2GegIEP0pR4lS+a9OyzNx+z0qgzWUeW7FfeA==","signatures":[{"sig":"MEUCIQDSjqMlhV+2d6cuYFxGFKDPeRUK0tdET1R/nu71V7Ug7gIgVhLu/R9caBS4XfVrNudA2tYpm/EEoZO8z1DToWO3/F0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5iFIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHDg//VbTWofovvhuNcyhwl1nJjBNDteWp24/AHLIgDk0ZzdwjZcrM\r\nfATJbz7xNAAqFXX0FHaUOxioj40VPH+hCdIAiRO/am1Wczvzil+IYu2E6iay\r\nCBe8T1S0hY51m7fDH+MzESryrAMvPmM+XAkVItp/Vo00x9N/c8wjmDVAPYiK\r\ndjmlfI/xRMn70szEEWaXMcDg4FMB98dkZoIi/5nLSpkqfjmf04LMN3fx6eoJ\r\nhV+FBZyzCEQANJB9cuJsrPv32urGQfzPTnsvSNhDvhW4tNaaAkfNRTMgIX+6\r\nD30JbsmiqHTdRGJgXaEjxV1puBQc4KkG7zUbgstP0PO8N0aljtMTNlxxkIUs\r\nZ5tB0tKxMmEXS/JGcHQ7P7rzR1zHo7S9M50Qp9Fv3NMK24xzZF4rIt17X/Za\r\nfwoG53fS/UKxRLHtKZmgdXdNs5btic9cr2C/xhInZ0v5ETh3ElCPCejQTy9d\r\n3tBXSaT3W/6e8fUkg7tm6f4hPUOw14tLbuMjX7gZz5/UWonf5vuXK9CiDj+n\r\nmVuCWrMgG2qGEyvfpDSl1vA8mhOAb/qdQvj9wRP5vstsAf4F8WLkTa9a7msk\r\nyoX6OZl67Zb26ceknq5VgtLvSqtSOSXhZLCMHJ5mkMTfRvC3Mi2CsZJ80lf8\r\nVjCmhbdsqAZEdDEywNhwOEt2/NJ0MnkNVR4=\r\n=OaWU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"a3027683683f6121195e3bb42be39cae44222db6","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.dark-toggle.a302768","@microsoft/mgt-msal2-provider":"3.0.0-next.dark-toggle.a302768","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.dark-toggle.a302768_1676026184444_0.11061301801643753","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.11e6807":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.11e6807","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.11e6807","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"52c1e199d9140461a1b1de121cf305a111979519","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.11e6807.tgz","fileCount":17,"integrity":"sha512-fn8XraAn7hYUokjiMg74bt0VCpyrHADOAjFaA7sDl8JyaNvqelDg3WPCNKDy9df5o7hxw2hfUpD2uSG+UClwhQ==","signatures":[{"sig":"MEUCIQCIOeav/wLEQAOaO2GsXv90xG2sMy456fP8++a21GMulQIgTe6GZKrBee9EqpCRVpDCrCokkBdxG5V18BkhQQSw9VU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj66sZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1rA/8DgFeP5IL4fKiUWu1CH7R7AOGM2/IkS/nJGC/YRR56i8xMC9H\r\nnCELrSeccEW8sBT0kC7U16Yyco+4YX1rxgPcqv5MH/A8uQ+I7VLjygK08gyb\r\nKSFxwrr9fv+2rWIWbmwJTJRFytKChpcR0g89nGsOMbHRw4JMTWhpP/jdy+j9\r\nmLYC4rSJuP8ptPAMbkRryhMZVwjJp/TJ0Rq2knSC124hNeou+RSBXeDeBT6h\r\nTNo1dvXKwa8Xrzp9y6kIW+wnyytArpDbeO7RZT1phuQt4BGM1d3UlHwkO+ur\r\nheP559c4IFC8tNWurQlEvxvAf8D8hns8wQp5ce0To9N6t6Mdi6M55aKLayeo\r\n4Y7/3M33YkkJQIly75f0QjHDD0kHD+S78alOhYtBECnpguGcSP5wiWUNU/i8\r\nquTVTwaXW6Mwh0tkdkrHbQCZOS2TI0AJMpXsQuu3GebqPipdOubgoyXe5FxO\r\nD6ddZXxQk+M5/YcIRXa00NVakyqw5Z4pLsUgB6pD+SqxfhfPdAB3ZboL3msI\r\nunxZEUwe/Rh5pBIADUgV3/hQFe0CswdQHck8iwBcDNotmoxQDM2JvJlXsB21\r\ncS1fZznfWiNKrz/2+d8Uis4L0kij/7FfB9B5kmwZQrqvF4sKpvWcDGCaO3vn\r\nCRQ4tSBxrmMEU7QZgcNp7dfwvmlj4rzRWTg=\r\n=N4xV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"11e6807259b623c7042236697bc3653f5d83af0e","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.11e6807","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.11e6807","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.11e6807_1676389144832_0.5918552466367104","host":"s3://npm-registry-packages"}},"3.0.0-next.dark-toggle.5e7a689":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.dark-toggle.5e7a689","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.dark-toggle.5e7a689","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f0be111dd93c39a621ad2171bc2d5ee0333aac8d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.dark-toggle.5e7a689.tgz","fileCount":17,"integrity":"sha512-UghKEcRwn9BNgriTBjJ8BJmaWrqQSii8uGAKMtH4edbBDH95/uc6lwqss5aD/pUb9+JeOgXFhTXJ55AItLLjPQ==","signatures":[{"sig":"MEYCIQDa2RUJOUIBqUZ8EffGV/AnD2rGU7EUGAo/bRWMxVwU0wIhAISh4jF9wvaaJ7a4B70ZzgQm4At/HcWbLqWL4bma06LB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7JM5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1gA/+J4Uz5BvMWZiClz8t5fz5ldv8bma9ajKBwHr/+gRUrkQKItGV\r\nVNSL1MzcPkh4xGm8+QJ0NH+dbJ+9WQvIxLBlp0kX29wAQE+zztqjA5givAqn\r\nrk0KlfBhXYdua6BqPtbRJD0oiUe/8v3mdximXyj+Bm41kTmrBq+PxtBOpqvr\r\npJWUO3yPQjhp1hC/ozN6+TNPh1WRQ+265MO/ClA8NyVvr6Cs5wKhMne1324I\r\nEWBrhZYt4VmLvUybDsA9vInk7pSzMybwR4RqE/aUH9y/P9s859cfBs/p5yPH\r\nmlE7r7sIl42SfNe+zRaZaKZNQ3+EDrcJmbYuc0v2GAnvREiOeCPSwMOB3MOp\r\nunepTLkIhpgXsGLxytxrG1WTZrFnVtsOtpAGRyu9AIp9fEyOdtTfRz/3HErh\r\nVWP15aiFf53nk6Jxxp5kBql5XsAz4HYzdhVsNHgHSn3KJNnOMdrhjHgboFYH\r\nb+HJoiXdrgRq4I3qx0BJcwoVB6P05x1i+s9j2SjYUUgxyJX94rKpLKohQBXQ\r\nWEjoQcrAiFwzJr5LwI8EdHGKrM6hCNb7yA/rjpB8bOH1apdQZJusv5DQg0Ku\r\nZilMBkJcx109uDwTvKf+P9MiJFypgenEV9TTRlKlumAwbCNZkUPNCk3jxtXi\r\n7JQQjjDp1uskWONyRyGCBrjig6V6A+kLSoA=\r\n=GIQQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"5e7a6896c2b563b2a5998949ee5da3ce167096f0","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.dark-toggle.5e7a689","@microsoft/mgt-msal2-provider":"3.0.0-next.dark-toggle.5e7a689","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.dark-toggle.5e7a689_1676448568962_0.6320440720805252","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.9961926":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.9961926","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.9961926","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d7f6689e3ad501a9df1371c1729b33f0133ca010","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.9961926.tgz","fileCount":17,"integrity":"sha512-eg0dGJS6sfjc+EV9a2/5CXPoG128JrQ+Fh0r3V3Ws8Iy2e1VwAvt80WZtTwUWEEZ3FOaEef1ceDyPWxRqCudHQ==","signatures":[{"sig":"MEUCIEUlx1c/sk5cjDW5yWEVQNQXR5FkL4Lj0+lwjJhdhMUAAiEApD73hjk3ppF5pdSKQza5hYguGpKkfNwsHOa83ZuFYFE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7JZdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqw1BAAh4g3CnIKoYG6Zcmuv3SLQwmPRlx67wuD2olwcEYD6JmeHFOn\r\n/DOAMaGkcUmw6gMNbaQmghR1GqEVB7MQGoaI20qSIktAHBMGll9t2M9vDD9S\r\n/GSOW6PRUPlGLW6lUOazQ3Cf80+th0X/69/pPh/5dso1ucMXo7SEQWNI77qK\r\nlamUa8xLXDxcP3RVct+roVC26wuYrxcXZ4HfzxZo4v5bW8vcdFp/l6RSXWfj\r\nySQ2dUwP3/DaVFvuTSouciVWE2k+gvS4VWDOxivDtXKITdVBLN3M9MioXiVH\r\nCm3Zh/1MzSUhbc9O7Jc+kN8VsWbUihYutV/fOi7FwoEA7B7reVSEx+5rOr1K\r\nXrFXRUBiM+IepfWSjMoHB7QYVNl37WkPfBijgSKaVKzio8bWbUod+zUDI3i2\r\naHaziHdfwVQZA5VNG/73aD1nMalOYnRrpLBNwuPUbqEENaJKghpkgi4yrxjm\r\n8fdZYMjihalwxVTKGnoxNqD8FHuwoWkE+eOvE+ncI60AQIKj+S8HRCT2r4Wn\r\nRPMGoOxyweQOg+hSJeCOpFn0g1JHTerPitvkIZvPR1/5Rk5MtEzBk5iCsqvE\r\nSNgRxxF4LZP97QOUvNyDSOihZnnmUQWs8XrmA2Vj7uVvSsg59rdNnqk3FGBz\r\nK+sUapcd/VigT8JZxrWRIGcYtVvtRIb5gpw=\r\n=I7rY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"99619268bbe016856c86c82d4cb584f80b0a41ae","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.9961926","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.9961926","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.9961926_1676449373420_0.4752786212752227","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.e105885":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.e105885","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.e105885","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ec65c1e83e2332678eba54f764418eadc14e5ca9","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.e105885.tgz","fileCount":17,"integrity":"sha512-PI1fFU7aGmOjEXc+oZ1OVN+AWvl6uHZg3avrOsiVmg6qLihADijRSniUjdvlkTWQvBMEj/CYP86Hh00+9/LJRg==","signatures":[{"sig":"MEYCIQC4oR6mwkyB2wY1ymVTGisRt3mXIH5MhUpUpcJBaarZpwIhANknVYxPBmapzfN7TABDD+M7ZxgqCZjMulUm6WbInTKB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7TlxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCnQ//ZxBIWi3qPv0T62ioMCvV32k2V3zGpwxgHGzcuD/XOFbsc7ks\r\njdfVK4MCvnM0bJ1HxmRkVGo2oZlmCb3Fu1G9aYDxC1kWTbGjDJZHoDyW1ut4\r\nAJk9Gf7bGqzraapKa+WGgCfbyaAVlx3Q83d821EQ0hu7DMazihND9DRRcmlD\r\nzdVtK+2wJuP+GCU+aZn3fAsxcDTusHOaoBiYD8EVZMMjovqqCaKz6EbX20rQ\r\n2HLsIg1GPk5wtbBkj8feFnPo9sTTc5m8X+WTk+/7tuPVv5XRyJr0UZtBSD3n\r\n2Cr4pCEw0o9YH24oZyr+2x9GFfqNtvUfibxsIiHKQLqwi0uN82NQKHq7OeYB\r\nr3BrOW/JAWv0ymwzOVYVLk/n9O67gvitlBIE2gJ/TEw+PMJ3BJjU/6PqLFZm\r\nOXrqBSrFlMX7rWIXTACHQ44Lx+h1GkJGfWUHeni3ayOYYlDCz+uSVs8spp+v\r\nELfUChFIFVeyOZFbAr+KGRa37tEP6n09raPwdWzkx3Hx6yf2DqtpJt6AIVjs\r\n7l36N+ncHduj1lMa0xuyflk3c4tvswJDK2PlKIAU5i0/yD2ipe/k7eduzKod\r\nAh2NWYKk7D3dHDguyk4xz6chfDoFef6CuMhyql6KaRmxiqCuNR74bdWkUjQI\r\n6DDlLfs96WSWDxsKXhKGjejCbjx6ZuF1XOQ=\r\n=OJP2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"e105885b888a5bd93664219b568124fc258d9fbe","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.e105885","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.e105885","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.e105885_1676491121468_0.5037935861641327","host":"s3://npm-registry-packages"}},"3.0.0-next.disambiguation-util-fixes.4e42078":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.disambiguation-util-fixes.4e42078","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.disambiguation-util-fixes.4e42078","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"5bf9363ac81d44c69b6be47fe0daa20010881ecc","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.disambiguation-util-fixes.4e42078.tgz","fileCount":17,"integrity":"sha512-cELJR28QYhPUYq4DIdO5nI4NQ636cRDYHOw5jgRe296uEdzb7R6YYhDOHkvGSj1qp6fUl3NiwqehDvsKjy4vCA==","signatures":[{"sig":"MEQCIBmTlvNxRnRVeBvRSBD4VT6gobQvJKB3272GIE3Gjj14AiB8RojbCgRLRhDnXbcdAbPFahIHZlciGNwwFI0Awsjrgg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9vIkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgAQ/9H0F2tsT61ky2UPzx41wpFVG7Gcnfmzl6+uzS4r3Xh24Kqr4l\r\nIYqL5Tfrw0p+xOEsAnFbgM3TxFPa7lC79XkpfypEu2qabZ0xMR7nXzUOKcJk\r\nbF1XgS97SyW88i4DyiL1eHbCUOSEQaS8Sq/6o48aWsjLImkI1lxIEjaUeJ0c\r\nG6lqsuzXBc7DHk5tkALgMd3tswlTrxNbmfjmicxpioKhYltZJyX221hDdqBv\r\n2TknMDyydwQVJQbJgaELKJiY7Wlu3bYHPXe1JWY2/VQ3RGqHah+q3vPQV4TG\r\naAKD/LB66xj9zuwakn7sdYKA8zO8UwECT4jPFYGN83JYLyPXDTaSifdLhJZD\r\nvzbEDZU9vP5NMd2EaEwZ5I7+uDjMsw+jidYrgWyAjjBrD196A+jBzkmYlYht\r\nWRgBAo09wcJ7XEueyxSIzSolgWthyXvwhJ+VFy9RWBIMycJd4aGQ4rIIOs3u\r\nMjeZwdr6qc65LmfaUWfpxURPwX+/dqAFk2wXXxyuS6rqcy5GAHbUefsYGI8u\r\nZj5DDBxgr+d4KgMR9VTveskFK+MJS18hW1u86wa6lpR35m50rD3yUnvJQ9X9\r\nMOyBQPT2wmGldajXM5dWGfHfHg0FPQbeo2XAwRiH/fEtEVQ2nShD/rmpXF1a\r\n3oBZ48iRSEvTa3n/rRAkWmaxz7lZz77xURg=\r\n=rsuk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"4e42078bfbf6b5dbe6f544b2eaef221bf67233f1","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.disambiguation-util-fixes.4e42078","@microsoft/mgt-msal2-provider":"3.0.0-next.disambiguation-util-fixes.4e42078","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.disambiguation-util-fixes.4e42078_1677128228398_0.7544451452718037","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.66c2e6c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.66c2e6c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.66c2e6c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4736f18d8418afcdce0ed63a7b6b9ee07465c2ab","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.66c2e6c.tgz","fileCount":17,"integrity":"sha512-hIaClurLV/km3o/j2QrzzQouJ+w65gZ2AY0t8emOSOOwGUU3SlPIxeuNS8gVeiaqflnDKEPV9uq2ZBonox46Zg==","signatures":[{"sig":"MEUCIHIRuHzBPGJwAdNDQZBQaMjBu1+wgu8s8fRULUEVr1RpAiEAp5goFYmC0vBO6nn5lYMbH+MtdCJdLZMGnTPQdKmzPZU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj94knACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoD8Q/+PGf2pznfe1JgE5nHZhIqBE/2X3WGoXAV2wC80DvX1oFUYYTs\r\ndqXXtAf098cr6SZkGv9BLx2V67+Fkz430HJroS1JN9H9L/neSNUxjWyRETnr\r\nNuyu8w0ZumKGnOnGqcH3bAfKEnkRP9GdPI+PtSkgaN+YN3GETOftvu3z7Gdf\r\nypCdmJp+/WJMEzB2JLCdqX6dMmxnV7n1SaGcXTcvzbi0+EPlNPNckZH+eNKF\r\n8pK5swgArVjneQ/KsBURKaj2ww2r8PthTnskxa5rm4OtrvRYW2iuiC0izBjM\r\npTWvRufMhpJLo87Ok/a+gHRrX8N2BPdvop+nZ/yV5n9/v+53vg2HxlLRdICw\r\nDWic7PPTH40qLSZ812knq3ayGhxnA7S/CBBkQP4kY0G8jXBGIDOCyMxdpEir\r\nawDXxqX0iBfTxiLUK+XtzQdxQyAnAuAMfsO1G+kIUbzNFI9j28dFF9iII0Sk\r\ngtEmNI+ykpexfPUgrEnWUDatSWsQLy2EpYG13KOMIj/lcM54jcwVI7ZZgCHy\r\ngIOgsqWZcVNaFKzbcla7H5OpCauWJLxr238Z/dHiFMRTp2rpGbaIa+f3A8e5\r\njt9uSKbjS1Vd+jowPP48pldga9/zUgTHPkaH4gSTjNeMa2rJPuh9uI0tUK8U\r\n10DntWefHiBeqZPrhTEDtgdCFhPCuTKIU6A=\r\n=d0xU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"66c2e6c9362ecc64e0841afa68a827854e7e77c4","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.66c2e6c","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.66c2e6c","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.66c2e6c_1677166887348_0.6508328498387517","host":"s3://npm-registry-packages"}},"3.0.0-next.disambiguation-util-fixes.1d8e4c2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.disambiguation-util-fixes.1d8e4c2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.disambiguation-util-fixes.1d8e4c2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"374857f98898c71843f71bad4f99ce90a40cc8dd","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.disambiguation-util-fixes.1d8e4c2.tgz","fileCount":17,"integrity":"sha512-Zb2B7CD8t4W/9SCoWZ0k38KGfDJph9Aryi2QubN31zuKLDTy9KnjMb1K5bLHQ8JREyzbkDqiu2BSBfYRRJqvSg==","signatures":[{"sig":"MEUCIG6L5K0/gEJ6CEyRUwqbe42GuCwPwOPtPh+msylYpNVhAiEAj8p4bA5JxMx49crK3YtkdXQz6mlIfvV9OeB0O6H08PU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj94vvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpunA/8C8W9rNlicJRE1eFHJmE6sCPyfWFOtYEMsFFQxWtzw3DOpGZ8\r\n0+1lloKAw8rvpjPO2M4j/xZ1jnP3XWzl5rmXRNI5wg2MHj/8WErMD3MM+YeN\r\nQngEGik4anCIMpNzBsqeMtdtouMjIxDQOQez4z/flmp95zFor4SWtKkkNimb\r\nxEVQY6gB4TPR+9lwdWOWipstpumCT+zqWthhPjvTeTT94EEnfui/1H4qDXml\r\nGsZVtdk1d9nhLAJQEiH4qI4QFYlJE5tEGfw2KFP1CQSJdtSVIdB2LavEc+jb\r\nC6Q5Ok9b336lH2jnVhqZ02OnqaW3YMqW+BY3nhg/3UHieWf7HDZjzmekLn49\r\nFhfcpgI82ydMQCKMZmBKDuOshdoaJGJU43tOczhhYh3ErZEkP2WS9y/NG6vl\r\n1HyTlpKrGq6YJwKiBLQ0ErVkSL70LlrtHGGUj3hvPVgwLFjtZ33AW1bKWs20\r\nOwmItAA4xkKpEfodIOCGCK4m6XUy0cBEMPVhb88l29LXK9O1dtDAWpyIxkQU\r\noFGLRbr3UzneY/rD5J9iiGUsISw2uCUUTpWlqADFu6GudUkvNWKE0YlJGY/4\r\ncT9XQ3k+QVed5xdYItlQfrlVBAHi3PrgbFbgRsLhDVZIUy2lJy0iC6bBszD2\r\nKYuV9kGfq362uMiKLTAZa4i9soiPYOe38Hg=\r\n=8ENu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"1d8e4c296935e52d152b277e9239b7ddcf6d663e","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.disambiguation-util-fixes.1d8e4c2","@microsoft/mgt-msal2-provider":"3.0.0-next.disambiguation-util-fixes.1d8e4c2","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.disambiguation-util-fixes.1d8e4c2_1677167598874_0.521232706689039","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.b2e5d8b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.b2e5d8b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.b2e5d8b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4b3027bc9145f6b51133f4deaa79268ef0f7eee8","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.b2e5d8b.tgz","fileCount":17,"integrity":"sha512-PG6WnOwW4IX7G2Jdg2goNVuKr8O59DUXaMveGRp2gjF3Bgo7pzcZNu8Zmr5S1dlZ9O5I/mj6NrWw5cWIpEVJSw==","signatures":[{"sig":"MEQCIHDDHLTRIk9ceqEWq7OW01rx3bsa58j4Hsk8qFRp0EUSAiB+xOB7tLUu8YxykIZPLyPqKPYp6NIeUKWiu2OmigLhOA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj961+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6xxAAj3/DqkiyUwQQbINzlPpcYv1f/8IyP55/WLXALa1BerwNvqoE\r\nWuWxLRXd338FVsvw+ucIuvLK3A2IGTiMWYORqSnpwry0KtZNqCqoZRVWUPab\r\njKNHXFPNbxoW3RhrRlSn4y2BaZLwO0sX3VAlErXGtIxWXRtcyhrnqcXV5cM+\r\nHAJNn+E7pdhqkx0eVo9dSdOcFE+e2LvTPbV/TfAKnlj6nfjGfXx2Gs5tN2yp\r\nQJXuEem8F8UoEnOCatnCMDatDbDgW8NrreIMfXosQ9/c37ADIffyoYuuKMGY\r\nftfixBn/seixSk7h0Mllcljr4s0yCSg6SLWhD+nCeCv4URmpaKsoZaCjWG3x\r\nZSpWP5IP8qe5YEpfPtNW6eKaP37laBY/JGGZ4gF96p7Z2ED3FqP8RjW+r0/F\r\nGHWBWK/QQF/427Pg64pRlkvv/e6z3mukOgytDcT5HKDFdujrG6Iai1eVMMO0\r\nQfMoiexOJzjNXOdb2+6TrGBY3mgPSeS0v+93Ksh7EzhhXepgypS8Z1A4dsL4\r\nUWHdeIdVSv048HQTUj3pbrBQ0/sX47rkIqx6GSvlbeo/CeTrtxfYhRId0XPk\r\nJsJxBuSFaSELJCfd9ZwIJPF9lvDZ36+EXnZJ43ZfdNtmdBGZ5EiashSiluuU\r\n7zNnJ7E+itNXjkGpc+Ew1B2UUEho1+VLo0U=\r\n=Ev3m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"b2e5d8bce2b3c3a0d6cb4ef39f05a24c06ab69a5","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.b2e5d8b","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.b2e5d8b","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.b2e5d8b_1677176190377_0.022138650596287945","host":"s3://npm-registry-packages"}},"3.0.0-next.disambiguation-util-fixes.aecf062":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.disambiguation-util-fixes.aecf062","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.disambiguation-util-fixes.aecf062","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4f277c0874598ba3bdf356d49d4b8f077d90895b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.disambiguation-util-fixes.aecf062.tgz","fileCount":17,"integrity":"sha512-Wojj2k31QIhE9uQ8I73MnobU4CaN20mO5akCt56uD9EI+2oBsjQI+E2qWPsrQdS6m6vvs7Uk0zzq0UynnNavYQ==","signatures":[{"sig":"MEQCIChdyu1Yd/cFlF/kaxTjJwYDhPAxCuAQ2cFTzpuirK7PAiBbuxsuU2Zy5tQ99NMV0omd9vzU+Fsz8ZWohHoa1QrCTA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9627ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmosow//V1QRgNkXC22fHVWLAkbn9+58v4OyDmLarVFop6j/hAJ1TiZZ\r\nEeRLb5HgK8j2xdFZkbJAHlXHpnshxeI/v+Ghuw9RCzpf1gL+nJ/4UFqquu3F\r\nh2B/rdjfFu6iSI8BklFtH6FhzvOSgqfSAXCLMoUMYi2CU4AcHaeVun77arz+\r\nIsvxxCUxAHqdH2TTfB7nn1BM/c3Oz+Yx7d7J3ZinLgATqex4CNonrQSDr07R\r\nTHUNuPcbOfg/EaOXSOUFHhc3DTLXz9DHQwg96Pv8lTqWp9dce2V+cYMuOFzZ\r\n/wI8ZaIVpuuiaqj5Hfrz42tC2LbiNlQTmuKWvazH4erzJHQj0T140hvilYde\r\ntCb0XtuXOdJugBY3OMjcXrzXvMM/XrjZRnJkG6fX/VmogUt95E0lLBlCTVhF\r\nydHIhQfXQCc4KWJ4eHP0psbLWN3bu/+xpUMePMP6xYd2Xb80c7P7/uxw+YpB\r\nMEfesqSh3SPZLyJOj4Gyo23Bk2bCC3If+OZ8cLzIM2jjitP5r4EEwcabHa7p\r\nt5iEvHwsDiQGeKtyj7bMSDyzx41bqtD58aWY10eBWD6TlOq0LN0C7Vr+Fe4k\r\nM+VRG3WH1lE3E8oZVaFARVXvuS59f+vcnAPYQrAyPlPNr/Dm1IXorxDZ7Pvq\r\n7Sk7cUYk119OEUhf+94WX9MpSty64nhf/70=\r\n=Gbzk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"aecf062d614ffba338f5b7b91cc64a643caa257a","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.disambiguation-util-fixes.aecf062","@microsoft/mgt-msal2-provider":"3.0.0-next.disambiguation-util-fixes.aecf062","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.disambiguation-util-fixes.aecf062_1677176251264_0.5230548060884732","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.e8531bd":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.e8531bd","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.e8531bd","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6161f89a95ada0668f593d0bdf87ad62665c83b5","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.e8531bd.tgz","fileCount":17,"integrity":"sha512-IyFUI4N5sbKxfUYk9G0HedMC3CLkbikdAHkO0lXUmDMSG1XPKsX5pniBUdm9a5uXKulMfDkD1VPnBLJRmY5bMg==","signatures":[{"sig":"MEQCIDUyXtt1jYoSvl0tGcLpdeLjFp3pmHkf+5jsOqkaPYU4AiAsLBj1K6jmyNOBR412CgBhmlXMe4A2vSAmiteJT3lYtQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj97F8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZnQ//YPUTw+n1oEv4kdraNUILvses6oepBSKjNJyNGcB/4NHm1doB\r\nA4O2B/HxTyomLwa6A2vGX2bbWWpcW36Ox53q7/4Q1v5uUaLsh7hQxtF4/4TP\r\n4u3ZaXQZvWmNoutPkjdUI9M81s079KYv3TJHuClLM66Y4lJJJzk+v5R9TehR\r\nzybEJpbgL3uMACnFMJk/2zNVjMLLC/EAdkg2El6CNgWLqi6l9e3svTI58vts\r\nF85YO5ad912XEvg2/Ag7Rt7XJMYDw1OvPYoiZudPdBtq87FPQcUCEe2D/gdN\r\neOgS0uBuFzJtm5xxHtovPc5Uj4AdGyuc+SgcUAH88e4MbF28komxbdmGK2Wu\r\nba2YFoHzHsi386Jiay72LGgUIWNYkaFNLqP9BzL4VP40Gu5BwUAZWhOjUmF/\r\nZiA9CrnMD79biIkSyiyqCI841m5fZy0FZ6C9eqKhOplObSEPdzj2jwR8T0r6\r\n8/ygclXw68ebn3x0I1OnLl47AzMaFyLTRcJ4V3th9O2VFQNosYOrZ6cOkO04\r\nuRNZoC3DZwCNT3qG0p0VuItT/FZSa4lzWYXMA6Xk4fx4d/jOJtk3UjqOFTq9\r\ntmMdNf3X8FyRfeU2L6YgjRyuV90ASpqGzV0wNb63hgPfc+/kwrGJOsJeSGnd\r\nElWMPBVGmORkQBamiZ9ZY8Lgc+1kEX01XZU=\r\n=l67L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"e8531bd55d0706d27c6b28ee878f4e3b6f5a5c7e","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.e8531bd","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.e8531bd","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.e8531bd_1677177212200_0.2823210530144755","host":"s3://npm-registry-packages"}},"3.0.0-next.fluentui.2771544":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fluentui.2771544","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fluentui.2771544","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"3d05716459e24fd9c0707b7aed148b140700e5c4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fluentui.2771544.tgz","fileCount":17,"integrity":"sha512-YxTUdb9/uhBA0YkV2cQblQ8zYhulOiLBNWuYLO1eRRHtJQlQ5Yq12dnc6rc1LP73coSqfh64LBOkeTrb0SWbqA==","signatures":[{"sig":"MEUCIFWrqar0XoZasnsAXSEg1A/7FmUN+KbidGdYhtVgIO4fAiEAv9K27kUBCQaqL0IUBM66rcXrFKAXSsTxPlfosq9sb+Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+HuTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqpgg//Xxw+Zh8XrN91f6nZSpAljNGtKohDF8zIwBJkg8f+DGB3AvmB\r\nBuJkA7k+1REwhykoQLumRq2jIPgsChIGUIbaghfyVgXLcCx+SlPUNctqtZ+p\r\nZQ4z1AGpg4EK7lwq7ENK5NlVwjIeTYlXgDfVa8YYZAVPJ0hA+0ie+1O5s2hA\r\nVdGib9jfgFA0mvbzetrPi/w0DtUqbgql58BDNRozn4fK4JlltRFyHFR/+sF3\r\nBkhtVUbookmvWjXL7zyIUZNnCV5s53wXd2CKGcOuSIzCl5oO66Ng1MFZ4Jej\r\nhf8ZvhifR8y4JticY8RwjOtNEe7La6tWWpI+aVIGTB4tobcCYfgpe+rO/TcH\r\nHBU0lj5QbqgPgl3lFLEBKr6G+4yptHIJdQ3OdB4r+0azNcE0QmIPP43tKESY\r\nB9ptgwkLUq8hS6prr5z6USAU03vEejB+w4kZn9ecZb5t9kXoQYqgqRmPQQU/\r\nkcufbo+plHFzYJoyxzqvrsyYSG+NZCHU9n+xCL19kbI7HfSeMrZya4lgo232\r\n7AMEMcTn6uJwvhTO4LOgIhb1WBSdoKjkNjH9R5DExOiSU3Jj7um9HGt1/a9/\r\nl3KvlyPf6KQWC+9G8LDkfQKY/jsFH8wx7IUAhBneHajjmu4xfIK/kCkTt+kq\r\nhLysNzWfj5CP7KlwwMhXmCqigRSXtaccDhU=\r\n=fX/y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"27715440d8c0e67ed84875c7b4ae7d2ac0ebdb97","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fluentui.2771544","@microsoft/mgt-msal2-provider":"3.0.0-next.fluentui.2771544","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fluentui.2771544_1677228947823_0.28959354622627975","host":"s3://npm-registry-packages"}},"3.0.0-next.fix-grid.b9de2aa":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fix-grid.b9de2aa","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fix-grid.b9de2aa","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"92cbfdffcfc9dec6016c718818cc861f3648f726","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fix-grid.b9de2aa.tgz","fileCount":17,"integrity":"sha512-108qs3ZAhzXX0pNC82UIaLxb24JnX8K4xbEP7sSoAy5lbPa/fidmPmEK0WpKlU/jB4Akq18JY28mn5sweR8+FQ==","signatures":[{"sig":"MEYCIQD3tg1BQC07WfxWpGiHPyUDixF/86FBmnSto/Var8lBLgIhAJx8TFqg8yfEv21jBve9e8wC6BGHP4SW26aZe8v18m1d","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/Ps6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrgfw//SSUBvye0HzB4tB5ZAg0jjl3PMSVmxbEHijQ9fbqiTAW15yyN\r\nzYOeQeV/zQiskooKZt3q5EWSg2I3gbygtgg2JJtj43I6pSUeV0pVDiGXth81\r\nq8oRXc2hh53p9F+IqNXz4ekAdXpA+W42GKXr+Rq5fTfYNLn7wUAGZPtBzmN0\r\nN7SfNVogwtF86lcXCviElDIbxRUnTIQ89xACWlRCtOp71o4B5IekggZlwKDG\r\nhEbeRH1FDAkoWDrqOI1EV2zdsk8NIeqSoyxgkpDz/H8V7hoVfKJj+995SM3a\r\n1wuGjAsrSIDhUsih0zWBvhvGyiBiEFzOAVQ80dQhzUXWlnehcNAdrhneoNbv\r\noBYfxJk/QG2FdT8V6+K7mZbTJylzyfZmW7312szO34Fmy+VEaUkKc0m5+ISt\r\n80wlJ+ALIUYUOIZLKjwfTKCtK7zcNN3FsAErJs1uMsGB8UuwaqDkAZITQLYD\r\nIMyRaIpuRJF8auKxivfH+62dHncsY+REgYuN/aph5rF0wb3+3WxOnZtUZgHb\r\npVWBB8VJPkjNlj3Lw8rQ5h34seKNjV9DyokaMV+awsbjFPLuv/IvZEygeyRm\r\niOEOPc5sXGnxJEhIJ8d8tmMq8zBLtbNJuXp9VnOoEuXxYfA2RbGFB50ZGAk5\r\n1hyo3NAQpWkDY1PrU0pZYvkfkYRu4xUctag=\r\n=HdUk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"b9de2aa4c0f9a2a49dbb53ec14d6fa3ff8c9f850","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fix-grid.b9de2aa","@microsoft/mgt-msal2-provider":"3.0.0-next.fix-grid.b9de2aa","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fix-grid.b9de2aa_1677523770447_0.6150601287521382","host":"s3://npm-registry-packages"}},"3.0.0-next.fix-grid.0fb1ed9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-next.fix-grid.0fb1ed9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-next.fix-grid.0fb1ed9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"91b039807dba1a8f8774bef846e584d57ee5de4b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-next.fix-grid.0fb1ed9.tgz","fileCount":17,"integrity":"sha512-yXt4ySZrGytoihG0QBGVjAftkRD5P3J3cwXailRNL2FH2vOgOKMwMmf7U58nEmaP60fPqllJgqE1RtOD9LG3Ig==","signatures":[{"sig":"MEQCIQDxPWMAVaN9qDTtObRRR/oqinWdF5ph55oYQAzwcfGYXQIfbiJcf7ULoYPalNu304Vtw18Tf/mR/eWAcr217CJ00Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/QvCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFSRAAngO8bSftvVruf9l8RFt6PwrSI/+O51L8Hv9Wirk1khkpmgWX\r\nDqvLQYmJtJXTVq2iRcULRqrftCA+01bkpyfOyNRV5/uvr/PpdpKpMvxo6Egr\r\nJhuK7vp4LCd2y9cA9maym1Rnkckl2EbpcTfF8TrNmA4T+ZuQOxTmIpe8a9Le\r\nYVAOa7STlWaW4fLYhFoyVjHrWhEVyMymr/xsAKpcg0Dp/734Chl/zXob6YF1\r\nMuE+/tGDPbm1PmYi4Q2SYyJ5iTs/UVVmtgAtVJnGQRvbAF7pMRoQXVLv/kIX\r\nPUPN7tAu69XY1PX0VwNJFL/++EYaeMStuD7XM897wmorW4Z4UEQ+kW/DhSW5\r\no9TQe8RqyO1uQNTPpDH0QTRBpifqf9uB/NBZsYKFJHocReUkSQJj6n+mFcDf\r\neS8KtAI8Q7K/hFo8Ylx524+pchK6Gs5js0Do831YU8IkMaRQ0ZRo6b7VWajl\r\n96ayar52l7AtJE554htkHKN/MjK4MBk065bkU8YehC1rSYv6W5qIc50jG9Nw\r\nuBa39UGFnitR+PObymQH55UT/1fgojS8Ox3Kt6Ls1eStq9ypQAv1UVPP3Mf3\r\nJ4UT6JRqX38m2dArjagEjqOh7GNg3IQ2yokTH5pu3r4QMzgujRp5bo0QIt5U\r\nM1OWTtkiRYbvHRpQ8WcalHE814cyUo+tHys=\r\n=AIqi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"0fb1ed9827b11a6e75cc47b105336fa4f0a62892","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-next.fix-grid.0fb1ed9","@microsoft/mgt-msal2-provider":"3.0.0-next.fix-grid.0fb1ed9","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-next.fix-grid.0fb1ed9_1677528002185_0.6111598215006597","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.preview-pipeline.98f942f":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.preview-pipeline.98f942f","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.preview-pipeline.98f942f","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"916d3deeb4872860b94e5a250377e540b83f2fc4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.preview-pipeline.98f942f.tgz","fileCount":17,"integrity":"sha512-6S8IbfDWy1+96fy1gxyHxs2leWCeT99kgzUdSFtNpY6rc5cNzvifLvXMVZ3RP/raXt8mHr0lgMWWSDAzHhexPQ==","signatures":[{"sig":"MEYCIQD0Oomz+bZsmO5s/1EFfDAsl0kGiXAVfWtOBB36YTkfbwIhAPRG/3x3OY3KZtpLmienOq+C9WqlyG+rj2V/OKX+4QiD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/tT4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4sA/9HoqcargYTzWQ3Q3FvyNMU1XTbHOvD/FVM9Lde/CJc3u9RZCE\r\nMQ4p55XarZWb6ukuGZNDKY4k2EMsW5QOnZtP0lYmdshgxCUfUuXyPfJhBsoZ\r\n1NLknLW44u/ieqwifR6EZ7oAWSJ1bFWgEB+bJUfOlxyxufBQYysajKANiF93\r\nzLdCKKwXuQLqWZL2wn0rJ/m0VNOn+nrhX1ibROK/e5TSkarHQplatPoOTkeZ\r\nMFvX6sHYOBTejlai6ePm+pY3ttyNNYQncSsxBm8NiZvd8rLUWpKRsv8w0XHX\r\nVktB5yB2ure0+qR3PtY87uPs1xW9Vk0to5twZ9IWInF28IsVLjBPvDgKWXBs\r\nrtyJbqizf1vlK5OqB61huaj0gDcB/ytXKTb1saE8SrDrFvwSVhivxlDeFar+\r\neyijSIszTlNttt0v2SIg4o8OfHXd0vHl6XOFFs6G47+NCiJlvvMWp5ohOo3E\r\nVVyUx4957T6rRo4ihposp2yvFL0WxIzW1GwlyJafZfIBmJdkdrOh8l28HatG\r\nQeDEgBNTtzpaUmWvI0q/d0ep9HxfRgI9IPaGpgSYamD2+K7cCNcZoGe3iOzm\r\nHHMsoCbwUSVZZgdyxR1LXN8oPG9xzK2gr4WZWbuHYuFn1tNvVhgIi3ABBlJg\r\n6me+t2pCPIeov+aS3s8Wm/3u8Kd8S6s6pCw=\r\n=JSIC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"98f942f3d28d1e86a0bf38a4b01d10a088fdc79a","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.preview-pipeline.98f942f","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.preview-pipeline.98f942f","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.preview-pipeline.98f942f_1677645048523_0.07823661154233519","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.preview-pipeline.2fbf258":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.preview-pipeline.2fbf258","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.preview-pipeline.2fbf258","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"fb3f3ebda50d987683a9852f436e3bd8f68d63f2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.preview-pipeline.2fbf258.tgz","fileCount":17,"integrity":"sha512-HTaqtob03y91PNFP/YUXGNTI7nDKmz+cryGRs2Bgdhw0UeKU84Hsks6eK1wtRtwtA44wmbVwoxGG97ppxylQ3w==","signatures":[{"sig":"MEYCIQDs2xbxDDaqa/gFnaC2SypHKZnI1Iuv+NxSv/Q4bkYihQIhAOKCleWPFeOZp+kTWi+zAKYF3F1UBfLj3BkwOV4c/IWv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/7etACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrciA/9EDpxJ/VFLLfPaz8mk/LdyTI9eDWioleFPrB4E/4Yp++RuLz8\r\nC60I0ub3DFotsI5dNJ0G7E56UWM8nQwzpJ1af9niWQxvOK2zpKUxdL/mkm83\r\nxaQZnfTQ6qIMfyLuKnX07X1fYYa0+1FrKFWmvI/yFe1oenJPzeRU5MmXeigy\r\naLwlZh91iEasMzuZrkfsAV6RHSt+LnO9nM59jHyq2H6GYfrG7EOc/IG0d2pL\r\nexuEcNby1uLJz1crruJBeYEWwLvqKEUMGcnMqPe0bhp45HNg4lAdNQyvBIeo\r\nT492HI7yNXjVflmZ9LpNT26a0cBodHMG/SFCyDe4aTjmEzuAW6+74YQvvp4D\r\nDam5975GLSslTkulV7rG8rARc9liOrHqpnzHxRWRw5P8lasHb9UG0GVn3HXF\r\n+Ef6sd9GX7Zbdcjlz5r7b6tJeWYLcJ0p+Tdbdv048YL4e1OP7t1p7Zq5YZpd\r\nxmCnhtx5lYBx/oeQ2Osvch5o9jKUMAxTn/+hAlgzf1N3rxEJwpPP0j/AS05l\r\nYZB+dkDXLXbWr4aA6Mc++l/liGqQIC2bPhsHsJFadn6f9jB2ZASOPJ3YZh2S\r\nhPIPcvA9dt0QTwOscOlK6ngHofduLHdPBcnKt0GLdOFyosCdfwo17MT9rMrN\r\n8nsLBiTEiZXzkJa2RWNL2CQFO5NVmGbRKn0=\r\n=bkLv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"2fbf258c87658e5d325a5338a75567468b5ec5a4","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.preview-pipeline.2fbf258","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.preview-pipeline.2fbf258","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.preview-pipeline.2fbf258_1677703085419_0.30204124721042147","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.preview-pipeline.8bf3848":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.preview-pipeline.8bf3848","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.preview-pipeline.8bf3848","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4da958402c720e1b6fb329e99187ed2da91362df","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.preview-pipeline.8bf3848.tgz","fileCount":17,"integrity":"sha512-r9n7b56TDhOZCZPjoHqPX3+j1WQeatFmiSa7xI1SMn8kvxQctB6YSBDHF/lp/hreWUGE2Wnzn1ITZrxpAoLd5g==","signatures":[{"sig":"MEQCIH5lqR1GSag5/+lurgxSqamHu47xGXDWtFRd5YeBr+ATAiBmma9QXCbAIZlCk+YWtAqnWb1MvEvJYPwr42qcB5+yaw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/75HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6qQ//S0yAX8ASZKhIQtESA2MtQRM8+JU8gkbC/up2Gqfv7lYLTnHj\r\npTfMZcCzyLcIV2hMd30x50xDSlhbHoRW39viWlyKaVy0YXrDHiIDPo32avy3\r\naIutUBzp3GDkBq+Y5s2WKBrOEEEs+LoFLQgM9FmQhv9/egJAh7hZsOfdxul7\r\nmzMn+gdBVbIKebPd5UfvQfQ/K9GqOMjRT/NCSHC/enrb/5QRcvCU6pLpSqgw\r\njI4ImQ63e08sOWjw51KhE5JwdIGyWm4NTO1PyFmpB4KGz2JbRRFZkcQgyQhK\r\nwbPIgcFoLd1Uozl2XeS2Ku3yL/BSJvMM2R0UNcAaSJ01L7mPWT/unkpDvsQq\r\nRYTiMtp5XiElJlizpLFWqssBsXMET8hXga+Ate4xzVqD1dDww5WBx++SBs1Y\r\nouLRAJxzjw8M7NG7t9Dn5yMjjtQ8rpZyYA2AR6QlQQ57CjTplbSwY5sOE05m\r\nZAGkmTp3OJI10RAV3OQIXpkLZrEIXtsWSkS02TUublwg0GmBpxPz7//E7fEL\r\ncuFwNWEzmYLWkfhjDeeZia3OMrtBwaXGMCkLJcQtG+l14B2oarDdGH8xbLw3\r\nfwenEjRp85GUT6nhVUs5aNV7HpI6j3KeHSz8UmOJcovx8QsCRVvx4t9Rf3Pg\r\nQXhJoqUcO8AV0ODhvbqJQere/HZOKn6m/M4=\r\n=gHIi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"8bf384848442f6078c74d9ddf83a151d9645924f","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.preview-pipeline.8bf3848","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.preview-pipeline.8bf3848","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.preview-pipeline.8bf3848_1677704775187_0.5078534620765065","host":"s3://npm-registry-packages"}},"2.9.1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"98a616455e0627347aa30f084e4c3650d6db8e63","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.1.tgz","fileCount":18,"integrity":"sha512-GpsHiQ7FZdv4yCsX5z9QLnK7TC5jCfQr78DmVSVYN4S/Lfc+4By4XbIcwA118TqraQmET8JcEDIkgAL5WYxrig==","signatures":[{"sig":"MEYCIQCXAGVpSTGdUT03dWcuFSu0G6b0Y6fBaxXc0Q5qjUIPagIhAJGxpu4TzXrVLFALeM/Zs/9QYBklF/t7AxOuEAMFiH51","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":197217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAASdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFyQ/+NXWg1CY4p+V5gSZqNKcSQp6jS+RywAUhwGYGvd40sI+7TjDI\r\nQUAjxfc7WkXEl8UZ0voXOGHFAJ5VSnnFuN7ZZgtnyuInQ4QLbtlel7KPactV\r\njKi/ry4hB2SLjv540U8pDDjnoWr9M5+b5Vu7uNHD3bNmoo1k2xWnhIFI+qlC\r\nom/JvuW/r/t4fR9E4tG95Rzvhi57Adbt/c9F/WViEc3lpbNXs1+ykHQqarnV\r\nhsFebMDMKvS0+mFQ2bRUZzwme+us9JetLm5y+9fx0VcbX/vwUakrX+wnQK2j\r\nFcYxJpx8101u9U4/6udc5DzmuCIikOUYVmXAA+M/skUL2mAffThCYRdn2jun\r\nm70q+aNBAve53L/ZBHNCrULePoGvOeSfc7Y1C6q1Dujey1fdlOLykgphFN9B\r\nXMtw30xqnP5PIV8kZIH7h2VhcpF5w2IpPUjXkwhqGBoMuu/hugjj/ZgFkXrC\r\nqExzZekUl2JbMerreH6CUIAeyveheUmeWkLWbaZn00GkjsaEZMhy6pjAQ+1I\r\nxXwO6ZdihWV9bMbdik8OsIBwVOZjhgKcNIWYVEoLD/nigzapRlktOpNYqezH\r\nflNwtXGdQCvVg2ECVLqfRTwvBvIbXD3dtVxk7lY8bRjgMp8+AKn7/nukAmkR\r\n9pHVYdKn8OJ7DBGcrDjibHONom2Rl0Y73DA=\r\n=D/JQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.1","@microsoft/mgt-msal2-provider":"2.9.1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.1_1677722781584_0.7350593459249737","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.840b6b6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.840b6b6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.840b6b6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b30a56b3ea7f4cf0bb5ca2459d491bbc6f351d40","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.840b6b6.tgz","fileCount":17,"integrity":"sha512-Gdkk4bygZS07z/1PywrYWvBDUmcj/jkBe80x2V7PYHuh1nTZ3XCWF5NHHxCOGWuQfKs9HWSrDT56gEmZ6lqgAg==","signatures":[{"sig":"MEQCIEfOGcYiUOULpPY2wI2AnoWgeIUIfNwKTf+tDcCAn5BQAiBpV+6etv8Ag6FFDlLNEsL9U8lFQhqaj1IIS+C+c5rRWA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAL+BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpALA//W7RBHu/kUKGI8RGvU4Wn0VT7DgFbUrVthQDPjI8vCzIAKz01\r\n5C65FKRXtI6KzMGoO/uc9wuCGMZjD+PMAGWZ7cEo9/RuGwS84ftMMAZRBANH\r\nC/NyKlyM6HicGEo2safDKLvpTkWL1+yBwlJolcDr7Hr4ZEAq398YpkWQHU4c\r\nqq+nfLJuP0f6a2jW/w6R9pkz4t7T1tF0dhEWTkMykkBiBybP5oWUcXxcRRW6\r\nBFSk2sI7r187uqurEpAT4Vf+qKfG9RKaT6VK5XLbEidr/pbQxRuKWs1jDuTW\r\nxDDPPaYA/vST3qgFDwvwkbWyyPdJ6qlCybG/GNzUBwqlz1Uj9xRga8rLYRgE\r\n7nhnYqkK1zV6rAtng9fvtAwUQNUtBVlL/5zWzYvOF9fecAalLq3HLv0Qkk1L\r\nI47u2JBzCCx/WLfPHNzz8RLb8+QOLOacU5GlqRbiAY8kIiTRAJpi7BDeOtMt\r\nG5gsUvQU4jbpoSq/erU1ZPfP5jNa3l67Oc1PsYsFTbdPoAxQeYxZS5H8/rx+\r\nPUDmrX6BnaAT1Ydc5HIB1m9FA1Jo+10eTuD0BKLBfL6I/Nk/oB3jzCBIgtlv\r\nNXFX4YBIf8wx1yyu5v8Q5pe5aXMRP1nqtShtPrwdw2lCMkTz6v01z86WmcUq\r\nizIk10K7fnADR2AKJui0wXgKn9gVvsJ8rB8=\r\n=yA17\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"840b6b64b862af2cc3ad6cf243efd222436fba4c","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.840b6b6","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.840b6b6","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.840b6b6_1677770625283_0.5449442323273326","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.96740ab":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.96740ab","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.96740ab","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d57c15e2055d85df1962345c854a27b375c33a30","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.96740ab.tgz","fileCount":17,"integrity":"sha512-XH69smWyoskSDe67is4RO/ndh7jWhZUGkk7vS0MYunG/R1xzXEce8UD0Drc34/qsbvkgF+RblXM/FgaJLNQ/QA==","signatures":[{"sig":"MEUCIFMAtPLGvgLJUtGSW5lFcirHEdEjUkI3N8BhidYE9TiiAiEAwgi1iIThHiiB23CvopOl530+cx78Fp7Qb2lpwWwzct0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAMROACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJ1g/+MbBe7YX3V/VzSd/7CwH/WnwKQgVrPC/L35v0/IjS3QQhODpv\r\nw1DBLWcLRcDwJJ1Yy6GMK0spdQNpylHW7AP0pgF5Zh+uwdPNfKHXq47IdeuC\r\nLOGjeWMVuA2BxUB9HozhneETRZTAZXGCTjrc+xw057ADdLc/exMiUGz8Ym/i\r\n0vjARFtFOQj1uA0qVsial5Rt3a7ksI60H/vk1q8j9zpBn8roILrpxuX0wz2b\r\nyGU7OXH4IHkR8QMx/iHOt0O7cBKYWUsAezGu/2NLQZXB64Q9jC771nsDQ2MF\r\nSDBErxartNVmWHv0zGnsvTwTmh3J61KlMHIuTl09cHVi8r1u/Ia4UosG4Kye\r\nDbRs+FSvXCMRiImOQYGYY6qmUywXRKsJ61PJK95xFsGpOKPYcvN+gz4/GIbp\r\niyPkyLB0xgyKzqz2z/osZchXekQ/PBQ5znmKKn++NG2RiXlHrRMOcIJLNpqB\r\nAYle90evY6xSRelfylr9oR5BN1SXzvcXw+LVT7Qg6fN36tR8lxTPNKZPWJYU\r\nXoqp3QIUzXmDFickI4FpOgt+QAJrPMAdb2KHemlxnrCE6CwIOyRy6YokAp75\r\nQpWyvcMlLne1TT8vUjsw41peghaK/I384RWhs5H9ddVXxa6ri56geZP+1a0L\r\nZXedaN7ieu0AIO7Cd9Y0XnEh7Twb5fZetBM=\r\n=uz6k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"96740aba9671712cb053c27f4703574cd0ab8988","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.96740ab","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.96740ab","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.96740ab_1677771854209_0.672249941833637","host":"s3://npm-registry-packages"}},"2.9.2-preview.7a233db":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.2-preview.7a233db","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.2-preview.7a233db","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ccdd3cde2a07f697e1dbc0d809ab5619a2dd01e3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.2-preview.7a233db.tgz","fileCount":18,"integrity":"sha512-TrVAKmo6pisDXJ8xcXmKxEQqLba1sNUsFiJ/VPxN9hQAXyoLl/ZLv8ht9C8ZzgYx1fENQJqGfvzJkOBx40YqyA==","signatures":[{"sig":"MEUCICbpoXiFrZWQHF3LATKEd903oUpiwzdOVzQbLicUlrr8AiEAhz7ttY76dVotQGPqjFo7RC01Bu3jqv+0wTwbSlRxbiQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":197265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAO2WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCXw//VtvYwSW4Hi8MvX4P7OM3+rTuWChs+uxstBXjhZOBpglnG5Qe\r\nMYmFUfM+Rp8X/aqbmsIwkLu6pPD9Mfdio8UCeMluSsp9rF8Y2EkC7PRKEAGd\r\nsFhC9Eu/qAPmcmUlt7Ot6V4F9GVUWjCRlMX70UC5BuLci12LeF5Qz/9eCtrG\r\nK3Jz74yWPqK7SvNCQxzjb2momskAW991XxmeXKRSd5rY8IMXyVC+S6eJHbRx\r\nxKqBI50yA4HIPLFtuS13AaQ5ro99suT5PDlqz/NcCia+/WQmAD25LuACKUag\r\npaDhPLh7B5xFAOzkvjrBrl8Vo5UCrY8F3w0zhQ6R5a3ZMsc24Hp5M2345IzB\r\n4KGFNDijUVqn5MNMybWbv5w+O8vojIn4ipRGJrph05RfCY0vUnYlE4+KHuBO\r\np9ttsmRWckM7i7txrYvKVSISwKFwGvkuJle0RPlKSwbYwOJCqYUAm4qefM8r\r\ntlv2VViGRT032C1+8DzE3oMYVRFKW3113siTxWU199B7VTif81w46R1O6L8L\r\n0DDyLzx+OvasyYE2GOJ9qm+atBqt0GGcu7sTPb7zmVNRLasUpcorKV7w+Vfx\r\nMVirJ2/3v2rWRL3KgvUqIrRlT4xJzwKcGgnYHCGF80ST9XglajoWctKIPuoM\r\nkXeqoV2/ufoIqbIR4VHDPsjnKegCUM746qU=\r\n=g13B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.2-preview.7a233db","@microsoft/mgt-msal2-provider":"2.9.2-preview.7a233db","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.2-preview.7a233db_1677782421837_0.034254875623141334","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.94e390b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.94e390b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.94e390b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1af156fd0b278927549d129c44393f139ca6ddfc","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.94e390b.tgz","fileCount":17,"integrity":"sha512-jVU+y+Apg3fSE/jp4Im+ENhbcr35xk6HY7UVdk8FvXhFgySJSNaeIyIQI2SNtTNtvjfC8xhAvKa6hEsAezWcFA==","signatures":[{"sig":"MEYCIQD/4mAWHxAbXoO/tdn4/0SeNx7+EixsdDnJRbmt16qE8AIhAJUcSsen8068HDa30jwqaY4VzJJnkF7M+cJoNab73THO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAPJ9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0Bg//W0YGMByC0VVSQwDZWsgW+omUPP5H3OM8QcP3S3mkQTVuFHhz\r\nt0MDKG4+rQ/GUaUp+X1WQJYLIZdlpNbD+DcxF6QClwFcY3unrJsf0R0dMf5U\r\nzTVO9oeZFnoLmNQTIChb18Gob0DqA791wzMxSmForLvT9gTkAjbTIbqR8GCU\r\n5lx5RjMmpgPypS2wNot/0nwD/Y7UEDtcVv3IA5QgRxaoUoa7VDeohxnXkhbF\r\nYFQxUC9TCbgs1L8I5ly5sxBDkSKzEP7mlGtr5J0h5q8AKozwzAJxGBtjnwWB\r\nunD1C68HtXeMLmxYW9atQt7SU7XNn2mpbs9PceKYR2zEXLfXFDjwAJNzc9wK\r\nnIMuEa3IUUTl0xcytcajvTjFZMFYgOERj+JVEWUX+63hlwDncFuGQtNOHtS5\r\nxwtmq29HY664kSWslryWmEDSS1hgp06YFpFMcFDtGE7Kyhbaijl4tbWfq8Jx\r\nXc7oaAA1aV6/09sJok5w4NSWI9+MmVgdL0y7AQif3WyGWx/iEaB+BF7gmYcm\r\nb+EB/8T+duXCz7cnVY8kqq5gPkOwlhcYdtcWoV61ICX4tkxfbecAz96SuPgl\r\nVuP3Eh4n0C4PWwOzIkdJsImnNrGQTyDFahhG32RYhw5HiJmtXtcbYUvfZ6iR\r\nx/4S4ryQzFwx/Xv+h4ipqji1alDpbRDeN2M=\r\n=0C+s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"94e390be65d3d2fe3febe913daf6a8aae6eb5c7b","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.94e390b","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.94e390b","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.94e390b_1677783677603_0.8656393188443083","host":"s3://npm-registry-packages"}},"3.0.0-preview.1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"feed78ce31509d3be7d371b93dca838a4c98bb92","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1.tgz","fileCount":17,"integrity":"sha512-HMJYT0ykTkVls4UmSw/b6j0oNfcN2SwZzqBzJoYC9DSWLHIhA9jJPNB/Afsy+BTbRIDNK0cyHAdqHPrJFQRpqA==","signatures":[{"sig":"MEUCICsFKrUxeIN8K2qZ0QULOPzxsB1herkD0Akx8rM6oOvwAiEAjwfU1ak+S7aJyuRJEVMdmRFR3udwp87s4wN10iV2sJE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAPgMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHmw/5AQCrrrmJAGkjeSY0Ki+/6xim24Ct0SjXXh1OHeWHDHLGeSSk\r\nCKLKWIo3VxzjLExEkRw2kL7I0/GvlgWuIO+MJLIH3nBal9OjgSA8bD1qFcLc\r\nqVUgRh12anHFWTp6YCz5F11Xwsi6B6/QWoAnTu4fbmBENvI71ZXzhdpXT+mK\r\nMzbeYJzKQwi9auogElFG/pxfgIQdCCxQDFzlF/K0CknRRG2gdpmFzY3QjhYB\r\nTiAag1n2wFpH1prlzQG5+iKeouqePavblw+nGxmCWGAdqkeJ9V4aFP9oNdCE\r\nASztojzzakuWBGCooX+YyzzEwh1MxR1nvv70IA/omy3uR94ipbNUbAijRcWc\r\nebJ+ekVoY2jr9uznz4FoB7eip83tPMcizvN5kqQ/4i6BPvjv+UCENhYtoaP7\r\nRbu8fbMfNjHr5qrZTizzD0Qt9FYKDrAgzeLS3kcOlRL/gdNDSZPSsU51HDZY\r\nCHK87yLUkn+hRW3psBCrTD5vCSdioiOvu57lYC5Xs5mmxSG6Yqy60027ywe3\r\nmtT9ZKJYAp4sT7qLQmufDDXJXgIuV6gh3VT6uEM1njgCZN12yT8coARf4mWI\r\n0lU0LtRQbL1pOqq1JjhfJWLhwpSudndT/dQFXtBJiXGpwbZD62RY1KJQg0Ap\r\nB0Vg6xNqruepvCb5j9DsLGFb5mchmxggfMI=\r\n=51PB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","gitHead":"94e390be65d3d2fe3febe913daf6a8aae6eb5c7b","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1","@microsoft/mgt-msal2-provider":"3.0.0-preview.1","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1_1677785100111_0.07464142398039963","host":"s3://npm-registry-packages"}},"2.9.2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1f033345f3bd5a7a03a82611075c4544f6cc5aac","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.2.tgz","fileCount":18,"integrity":"sha512-9aD5I5H+WNM4rJjF8hzyApsB1rh0JiG9c2cEEGZ+LJM+NElwuCPO6PJ3RLMlbly5QTlDDKNDGWS4A2zXgGD5gg==","signatures":[{"sig":"MEUCIEtoqk1wmkOTIWFJO4UMd2VhTaJnyWw9PmzCDdLauQ+2AiEAjtDvF0nim6fM7Uv0OAmHtqfsbvHHYut/vgCo6QOAI9A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":197217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAP/YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZaQ/9HfbbwX87PN0tcA/6wKbReuFSrTZDPsV13QViW8tDyKYdo6U1\r\nmmQhHoaVCGBux4LlfrqzkFRTlgD8TA13WhIKgYY/6riKvqJkcFj18sKhm+Yd\r\nU38olo3TFfu5F1MSXFUYOXtXztvloTdtYLLhEAWVTVpn/FwyjPMGhCl+/HLD\r\nb1dJns0gkKWZb84RlYHaOOhfv21MsqafVE09Rvzu9t/9vZ9vNJbXZztH/lFF\r\nvdb4JI/SgKsjtdQKI+ntScaUOBfgEl4bZxAcYfT6Me6zIUTxx0/nm9PXlOrk\r\nY5j2BShGcw9zZF8jKousC89a1WefExilBZTm5qm1XbHRJXroAho7Xf06Jrju\r\nlA42cA4qBSF4cD5TaJw4i6SOqn2ljQvgXOE8ksUDiQEVjOlMNOxv3cSMxQ7c\r\nliFf48y9HV1tQtEzlB5sr0ZA+ZdwFay7sgLTknblYScQmW84E1bghAQ2XwWG\r\nXdpwIQcjYBVBsNKRk9jITQvbXbqJpBqbpantjOgHg2++NAcqc2Qa9LtY9hyV\r\nC8flNZYFQo1L06p6sQN+/IiBDtVyRwpZUI6EvbxpnRJ2JWiupvoGLPH0AaD4\r\nRset3mjux5OgZRIiby7c4QcP5QJXhHRTS22ZMUP6HB5TqpoHlSaNRMC5qYaq\r\nN/lKt0DvDW+6fuDPyaTnwdiGN7jIbW2z78k=\r\n=Yhy5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.2","@microsoft/mgt-msal2-provider":"2.9.2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.2_1677787096761_0.25864796310897176","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.187d652":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.187d652","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.187d652","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8de2e9b4a87a7aac086cd027dee1d3a70f2ad506","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.187d652.tgz","fileCount":17,"integrity":"sha512-pOkQfVVOXW86gK3cZJu27ngTIO2QSfrQj5HvttzIdPX2iQ1Fqq9/DDarkxNXAnX9zhB7DX0gV0m2u8bNUCqVIQ==","signatures":[{"sig":"MEUCIQDCd3pqDkWC+m5spYBsCO41Y8/5c1u6QTuBuFrJfeM6HwIgFLk/e3N0jWWjdVOMQqYZqvU7XuEV5yUuW/GfsFJaSao=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCf5dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVfhAAjENWnC19OhT0juhp4gbxAvaSMaGtZtCA3rLjujSjY4zQHX8P\r\n8HAnvWYEa8sWLs6TOlkZaLkDkt2hv1PMwBISisHslfGpm26yve/BoBGYkktP\r\n3EpS23NkD3Zb0IR+h/0xDYxESUncF5xZ0KZw9OP+rDBDkZBk40dy4ysnp2l3\r\ntQERLNwRMrDf4vgIt5Z5BCZuSsWdNHfdEgd1AvIVtEpow7JbrduH2+onUAJq\r\n+aXIGaN8YIB978VGpnWsO8xviN+gKFkUhXIoelidhgB5vWIVN4aqC7Z3v5+V\r\n4IpOd1Szpe/22PZdJnqCZW2yerqSFOej01MoVgImHWMAe46PA39WwbLhQZSU\r\n2JnpeN/F0ltvGYDshQLXXXBuEW3iQkUWp38vNRjWyDqcS2pxjVcsphutVqg9\r\nPShQXUiEFGmngCLhtwSI1CAGschPxA4J/1dqoQBR+RNxpo4w33Dwn7bPxx1k\r\nYXq+XoxPE0NdlQ4ql61aU0QE7tvFZZGbtrb5D3b+Qw3J6j8V+6A/5mTzJccI\r\n7S4zbHI3BlBrFt+oWKSJiX13fWndnnq4jGMp8gg7305BY4/LEJwhfJDAGUI4\r\nSGkacxPZ2eNahAPyMNfKpp1peV0TjDwQ6hZrtHTWK4Yemc3c284rdX8owkOb\r\nkKnEqOsRmPJkhVVKTdb/7AHh4Fq0bV67O/0=\r\n=u3LO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"187d652b721f0ccfd82dca209bd7e69888cc5589","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.187d652","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.187d652","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.187d652_1678376541280_0.23237777440397034","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.2de2c03":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.2de2c03","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.2de2c03","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"50e979f5dec92f69f2312b84bf22a6fd5acd0583","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.2de2c03.tgz","fileCount":17,"integrity":"sha512-SmSLD1xReV91+SuYppZ+hNYgU8UqRUXVtDF6eJTCtBIcG9gkD5x4Y/YztsrfuymTE8wmGdTl+Av9Ucb3lX+vsQ==","signatures":[{"sig":"MEQCIDWATPm5CcWiGvhUMONTROVnCsxTOOtjZcGpM5OOzeY7AiBcuxZrZ+lrkZFYkDHzDsGJPU/al0fJ6e1jkbokTbp6/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC2mHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7LxAAjV++0IVDTb08emloWi5QG6Ev5SHyscvxB7YctgwV231Z5oHc\r\n2KHp2o3/LU9pSmPRnl1bhLlW2kd1HKnGuVY+ayDrqp4LILqlnwt+UDW+1mQr\r\nUOeDIve0rBxO18/gGI7ozhve8TzhwSntUAIdsDtiLW/bzAgowRX3RJiRdV2K\r\naFIo4cGy+fR1e2NHLO/yjl1c0CjKHH2WHjhPfSAoGHB1ynqdaPrLqAJFx2d8\r\ns4e0CklnDA7hsBP2QvHFkAZnmI+9YR4UzqzpEPeOeef+tSNP+4o61Prg0VQf\r\nEFKGD9B5FLSHRWOvn9b0e4L5kzHfefnf7oBRleLXUVbKQoCvx0tqIsmgczoR\r\n1/p8vw4ILuN+2V+vApbvC69TieIYFXbhAolqIkEJZmEwEniB22yI04eL64mQ\r\n5OcAO2ZAR0wjOQZCkbqDwyVh+JhUd8qxD0bOzU6dHK+ex8g9g8DRqmVzESPD\r\nvGis2hI9doMH5YaC+bN74O2UkQIZiJPtlP55VEHveALj3NC2ntnB0+9/sFgz\r\nd4cHJJn3I0ZS7kCFL6b8aF8sdiNcBABoDDhfmRxlbTLJXF0Q/jMxQqcccAR0\r\n7IWzXog/7PXoY61UtI5cLf3r48MlfJ8WNGqvbcFipduncPc+1kz3jXpTnT9s\r\nJ2idFbYX3ZzxxQ/mNF1D/rrivHIz7sNibeo=\r\n=NoxZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"2de2c03376ad63af762cfe374f7ff3b8bdbe10ef","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.2de2c03","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.2de2c03","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.2de2c03_1678469511556_0.6187443012071772","host":"s3://npm-registry-packages"}},"2.9.2-preview.0f68f60":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.2-preview.0f68f60","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.2-preview.0f68f60","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"48c8632c5749b03ef3e29364147538b031ea25c0","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.2-preview.0f68f60.tgz","fileCount":18,"integrity":"sha512-44fjkQ4xE4EXHWCMiyRrcRyWxSLCd9e5sIEqHhxjS8uFAEmgvnJeio5eTjpZG0EbzQ95++5jboE679DAjUsEwg==","signatures":[{"sig":"MEQCIGZiZkWxULyJoC7ohOXNotGOExtxhRxk/RhvYn9Wrh8YAiBMFDKHNvBNQdfwwsfiSABkEpu0kEF0YFQ4w8W+xDcKxQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkD1Y0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpswg/+KPQ0bE4R99p8gWGBF9MtAXqaO6qFrP+LGDGyo52lex8EilhP\r\nWz0zwZdBq+tt/par448ZYSzIJ4L9sNk+rDudVBSXZktuW8Gi59JVSUmB4xcs\r\n8omSPG8DLhFwln8PVINmi+56YGmRSayJMwmDtEnnLov0oIK74SrDdpUrsB7n\r\niIW63nebMffcplPxxma2cck4HMaU9ymzNO0qa3P8oq6zA9q+fC5ADG0GnRSj\r\nC5q9EHVCjtt/VkI+Phe5TYTkBI3D9Bn2a1r7f4jEQrS0+o1zBt6Xw9psYnkI\r\nuk6So2ilF9HGixNr0Mx76kXP3jg+V0PD+ZGqsb+phJa6vGqOlJaccReJgGRI\r\nIrctZ0VtCFnAbK+/1bamlq5G5Mo+Vf5F5VqQdk+AiCgXMWy7mVC7qYM1UdO0\r\nTSxsAPECXtswRemDvj5lndyotLF3mqz5SAR50nRCFH236/uNzzMKpnVDgzRz\r\nMveId0zkrE+kEiAbpVs+cr6esj2nFXJuKJe/ut5Z/VviFoU6/dYJ7b/n6ySW\r\nIdb13uOku1L3zROxD15JX+lpN+kcb61SIetYKzdERlWjJgVcWP1xUfqHuGOY\r\nKCs943vJ+xaNIDJqvaqVeYLGO/LnoQLo1UjojB5o51hV2eLgcmFvN5y43B9e\r\nkbziSr/SF8toeuVIKf8izefciqWvtEeAQnI=\r\n=yBL7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.2-preview.0f68f60","@microsoft/mgt-msal2-provider":"2.9.2-preview.0f68f60","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.2-preview.0f68f60_1678726708240_0.4077667420856932","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.89b79e9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.89b79e9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.89b79e9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"3c99eccf84d615ecff39001ae763a5c52e6171d3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.89b79e9.tgz","fileCount":17,"integrity":"sha512-J9CFc7CG/zjTmT8t0cyfV6YRif97WyBnY2Od/3QqTVzrbGqcQ3oRrVHLq4KFuxU3WQwwc7dw4f1u3RoOOkg5eQ==","signatures":[{"sig":"MEQCICxuRKDRcArZZFg/xhfU3ZlwUvfWxYhQLtPLZKY6p35GAiBiowCL6ZCIKdOESYpxYtpfrTApJ8TNP7a98F4syn87ow==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEJcsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLGA//RR0uwr/IM0iJ1mZyO8QzncF7QyKo+mc/6xa84ZVQfhu+Uv3Z\r\n7KNhwSWc6LtAC9ubmRnq5WJeKYNU5NJ9tD7mHfWCRSXWwfp62lrvO/jsTqis\r\nWstrdF8ZcnD3Rl7Otcg9VuQ+uhc24BxrIZdhcw/DmQVhdGw+QGBP8WCbxnsp\r\njC2G2WMVcgW4zAMNZRFK8QXRS5L0LcE2iuIDff+j4+j7Du4RhXv5L8NaDZQ3\r\nIIwFlx3xth5sIHkGCT2ZsWg4E2RKkNOYlApmf16yIbggQkxuZDyFSbnGQerm\r\nrT9D2yWfxGzHRyLrMNdt73MCmUiiGZg6YjEvD3B9LP3oIj1T9Ixf0WfnALXX\r\nysdhGYjEsGmkiHWHuyJjbAB+iPqrwFkqQjuS0h8l5yfJwin+roLQzwk8Z/fi\r\n6PucR/zuKxPiHIRG3k2Gcb5PGmVdfLNskKGbKh2INdyeLxb6FvPzIkzFC0Gq\r\nGUxAFAGgx2SMhnbyXBxm9Ie4NUhaRxSIn7E4RJ3VN/c+0ncx75w0fZLa6R67\r\nuVZiwp5NNULkVMPf74zsiZA9UNleSdVYdNSHAFsMZpeVPCDkNF68eWjjotqV\r\n2w1gRwFswa7mH7iF+KIe3K15YBJDyGWhWvWIMf/TNAIDtV1TERIxuF1j31hE\r\nOEyIsQMUBxGx+DpIZCzFTow3jaWB1CFq58s=\r\n=ihwl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"89b79e95035203368cbe427216ff1463261feb74","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.89b79e9","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.89b79e9","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.89b79e9_1678808875937_0.2156166037982672","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.aff9384":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.aff9384","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.aff9384","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4fb8d5373d3882ccf8ff390b2aac3f68ec767a0b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.aff9384.tgz","fileCount":17,"integrity":"sha512-6fOn3anT+fHtExo3qczTi1Pcu2+NlCtaw79//VUrQ1TXGEW/L3zniDC57qh9UE7lXjuC4IOfV8ryy0ZsM9NfrA==","signatures":[{"sig":"MEUCIQDLigjqRZy7DpkJf3WBjCta8Qzfmyelehpw9gpX26+rSgIgBj7jnUJ96Q9pc61dHh8pY7TS01zpgvGiyCDG/FkoiNs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEUteACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplMA//Q0XoyKmUFmrAFqSGXqX+APym9ettGQg4R1tu/Hhjg0Y0Pach\r\n+lopN6kKG6mhLYdi/qMDIijChmfwcIArHcsHMVZp0v5Lb8evQRxXdine/2kV\r\nbsG8nzgwFa+dTPJWFfQnVgzExTxatjzN7zCe2PQ/SUIxKrDiXBVodgDoQSux\r\nLHXBxztJje85xv//P27JkrX9qP9DebIsB28QeQMwDgpgjx+gB3yC6Wo32u1M\r\nJoWlVxc/JLQeVPwIMlZJXLHeRxnW2Z7f62lut2bhrS+u6HDuwxIK7XpF/6P3\r\nO5HaCzdoBZmdBU2haj2RuDBIfd3D7Zbfdsv6meskbJIk4/GBdACd3VwXVC7t\r\ny4M2YpwcGO87hWzpenO40Eg71CcVXjsWCfDj7gGNCEXrK+GG0yU3AlwP1ema\r\nwSQRCxi61vHaqDfss8BSel0vkq8STcj5nsoazx2Md9hRRwkFG7L2AQ3BfM2N\r\n0M6FcsJBRvR0sxOQ18cOCwK9KZoeeQ7fTIzoPOv/PhMexd8yUCWU7BjevgGk\r\nIzPIpSrAWLCEo7OLhLmY861BC6kFmA+fpjbfrXNc4OclN6vICcaP7FxmM6a3\r\nQHIw+VLihELpxbO0U0yru5iOg0tMfEfilLpJbMBBBmaBmPGqtCeDnZV6E1xb\r\nLxHljoNDww1Rk0oxJDujNQ8oLYmHfdjYCNs=\r\n=eS6E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"aff938453ebe373fd44015009edbd717e63920a9","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.aff9384","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.aff9384","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.aff9384_1678855006448_0.12940264532101953","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.8fc20a0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.8fc20a0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.8fc20a0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f7049901669a175219b81be2b7370753f733e10b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.8fc20a0.tgz","fileCount":17,"integrity":"sha512-JlIgj7q2pRbLjYOW+FcTtqv2xK1c1qqdvnQ76rPalC2T45SWHtjIMEvkvulFM51pzbmi7tKHgdcyIsn+dnnnyg==","signatures":[{"sig":"MEQCIEbzhk2FQlIESp/MmIDg00ugHj/ILoZ38kEkBCSxgP+OAiBbDNz5Fn7z8eU+bvx8Yl5JJBEGpdesxM4uPHpxN7p4NA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFEUuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVYBAAmmAX5D2kpjOnuOgEWIRSOk6MNUmFyATUPKqLhX/f+ZBKZKIM\r\nXh6FnPveT4riuGIwR+W0jBnqtkexhmmMpcAaZ/hWKRxPIlPRIyI6GnXjZmCw\r\nPjI+PHS7H3NtyZ8ISBycBryoQA3lnKCAHyUaA8tXjtLW6QI/wPie74wJG/Jp\r\nrx4tiuI8W/7kQi292X4jRXtAEDLIXNbsmAmMLSGKeJoz3JQLl1mywNOVJ8WY\r\npTu11ETd5ViBqI65edvjWzfPngxnxeVKb0K9cn8Uvy5Rt2tLeVjIAi8CNRuf\r\ngQwFq3QIvqpsUOvWGWRf0wQnMOzdc5Snh+rHB5+mDE+23D1cGxwsX6/mfHAd\r\nT1dMlup7R8NTPXl2+XOdKa5nSN8qXmaZEZou+EKpVHWFD27xMv3W7jp7B0ty\r\nW2LmsZyJcsIDLMeyMsPYPm1jqc4+8//BrO963Ih3Zh+M+VRnbXhq6ga1lxrR\r\nKSzaU3uJLniVpp2ouGSbQWnazJEy1Aqp0K1L/keEFfmE5TlJWYSH9YLsAfer\r\nN/oBM4BZcpBPazN/ueZ3B38NDBGgaeZ1YKah5ibxBxWCJig319t0T9/EO/O2\r\n3gpje448sdiVPGRyvF7vylYmINPfJL5S8Ukn5OHM5puUWw/YsJ8z1+b5c1m3\r\nbBEJkFJbJhb7sIO9aOa+V+rjmfdV6IZsl4w=\r\n=wUg3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"8fc20a085e9298bef7f29de63e2bb480d4022580","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.8fc20a0","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.8fc20a0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.8fc20a0_1679050029829_0.9831213458964103","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.97255fa":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.97255fa","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.97255fa","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"289be55bf4e38bbb507f0e5442ffc8c10bd34d5c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.97255fa.tgz","fileCount":17,"integrity":"sha512-fWDic5pDiF0V/ZwfJNUI5ZlYZzHleyzNI4slm8eMHrdwgd13MAiQPSB8Bb6jKdnIyUutArZv7n3sCxASKBZU3Q==","signatures":[{"sig":"MEQCIDoY4FIob6oWV0WHRB1Yeo4E5fbxaMgGAjhmZujhexxcAiBSiOxmFogZridlhTjP5lqvfEfbgu9dx6nURzkaLxfkbw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGg7FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoY4A//YquTWJon9uEXjrUJMUV3QSuQJiRdMCimjcn8h41KT6if9cLy\r\neqDu+03d9A/rUxG6xvjmpGzyyIgBtYpig0R4TGTsb6Mz40car60W9Hjnjadx\r\nGfonMwKkYUZyi9PSDOM5/HZgIV/ZBabO+t5DIIVY2fuD0MtIYVa8DuTOlbyc\r\nfdrt53CU9WzJ629slq1oNHVEapV80t4v9GwssUqJV8A5yVnwR7flUaEqgYPL\r\n9uXDxyNOQSJBF6ikT4NZ3YpQd53MNSncSHwCrt0JY4dIJP311BFRDEp3Pbs8\r\n0kderA7KJuTWKCPU6KaPDdyHySXoxKheKdwoincSBg+jkxkgmETX8raVUXo5\r\nYqSkQHA9dzl9PpXq1wY+D7PhdTBaquGtDlWnGWMsbWIgsZqpMq76/9p32aJ7\r\n9Q4e+sRpLEGRc40YjtmaUazr9KEsBcJ5DjSIPGA/SZO3l2iTAWldddbqRoOy\r\nsuUFU5ZEFdvnpDP38VGMUU/rjnLMGlsox+RbrXFBNOc3yZCw4SCQmL/qsQ+Z\r\nVvT/KRq4th1flcGxW2Wnbrub3Zivj+XkoyiE0uQJ73mqJ4ONU5vbX3ehEy4T\r\nY54c6yFOsUcbZ7t93ZHWtzVkdfipWmjXZlP0shXWhm5lzbZ/a/SveNRPBPYF\r\nYSbS9xc7lJM2AdOK4uQLNOPZ+XoLFI6mkoY=\r\n=hlv6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"97255fa5628b870aca8b58652fa1d0b675c48914","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.97255fa","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.97255fa","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.97255fa_1679429316807_0.24592698319755502","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.e6fdc87":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.e6fdc87","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.e6fdc87","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b132206a9c052371dc8ca5efcca5fc3f946867fe","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.e6fdc87.tgz","fileCount":17,"integrity":"sha512-PTJzLBRgtsMlXGyJGLrJ8wKScJvBBaZira24v1j+zjXv2PrnkfD/7I3hXxUzaw6QKrmAhbGEVp9EKjQzwaQkYA==","signatures":[{"sig":"MEQCIHHH9UBAeduiPlZst0r2sOYEgvh2ijNb1EdgTY5xqxVpAiAocbJVCDAuBJ3QVD18PtfDxrPzG7VTB2swq0XqmzGbsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG4sYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoy8Q//XIRF8E4vD4gsl9oqzq7ag8kK5CQdyp6rPsk7aCAJAZ86akZT\r\nP3ll9FLb38lWAG1qY3GZKoe8ll5Zx45C28RCKNPi4o80PkLhLWYZQ/WnWmUI\r\n9W5JOk1JCuNtmXJjBEVVugB/nbe1z4VP16IzVKuR6YclNpwXDleSVDi/POrK\r\n3II/LX/kQ+6ZMMog+9QvV194WvYWzqqNyEDYeuLfKIXGMPODHsBgqrtg46es\r\ngsExDZgeN0paP0xghKqUE+MtsApkzGR5aWFzHNM7siezvGeQtiHPmZXXKg/M\r\nX7REukZ85EyNdRI/Q+/I7Rnn7L09jT1vCB5UqTzKhJammN1+9ux2VemWsiHH\r\n79kYXBLOvjpf9CH/Tofc7BUyVse6TadLAYWL318qb4/1YpGQd/cdD5vB2IeN\r\nSNp1Wl8yMYbXMMGnfzrYMrrSQ3mdAJYKkmVa8qPhEbcIk06ANMcy4IQFhdnf\r\nLe7MTJ/tq5+1z30tEgxpFeVElLRffuimPTdgqMC8qX5RbJDqtIzYvb2tlyvj\r\nZKVxRVnA1iciGWv+DPQu+SFNx4H9jYBp2hH5tRjQXSVFgmgjOuO9Ngavx7bi\r\nOx92++paEpj24R4O+XsTIBnqdC3Lg+D9qq2ivXLvLgiexSoRmuBNetx76jFv\r\nNRbYC66Diic75oq8oREYwVGNb01g+5KV9nc=\r\n=B6zZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"e6fdc871569fa99adf3e9cafced9b39b04caf8d3","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.e6fdc87","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.e6fdc87","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.e6fdc87_1679526680234_0.730638594801712","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.c4830fa":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.c4830fa","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.c4830fa","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b09af66e04c03735d5ac3913ec6dcf0054f04987","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.c4830fa.tgz","fileCount":17,"integrity":"sha512-nXiws00KXDETtyPOPa0qllqZjP2wS2Grh4dcD7yS82n2tMKrZYdhSB3f5IfZjYT+yT/tBmekpS//Z0aWHh1LfA==","signatures":[{"sig":"MEUCIE076jIv+FwmKhrwomXT9rZC6/sdQj9Kc/vY7mszfz6rAiEA70ep3cUl4Imt8JTQA085jB8x3CyNqdpogoMILhFiaR4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIiYoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrwhg//XPA8TTG7oF5QjKWYEYf4zhGeBiY5BDu4Jdhpm0i1tvpCT8Y6\r\nsx6DNR/42Si5ro34WwazhkLXfAI2TEl69Dx7PSBnsiYjqQkXenEZfVH6OLtp\r\nrJSY83gKUgv3zgbgZnYvN6vQByC0hoO0+NE/6VuzbIUC3/B8EUSJYXBflJt+\r\ngOny7VMkUKqgC9fHgQL2OpzvSBECge52egZ3IVsgVEPyuM0WVs9W+PYWPJlG\r\nun2lepXfFxKZbW27to/2OlqmSwk5d3iME8KujgxeFz0grKlUcccR2kjnbM9R\r\nWc6LbvaO8Y96dBdIpS2sal2DNUu12cyoYwHfuE+/eASYb0Lxu/KhYiq4lDOK\r\nwdzTp6IQOvsYgrelZq5eZrpAZX59ZuaIIUmEOxL2YFDNsuH9LrNx9J43Id3D\r\ng0mWxlEOCXjUu0uKSSdbgp8Z4lEKaKMblP9N/DwG5ZTpXwryQaWOkLBTZn3K\r\nwPNygwOtcCNtriQi/Acp0I+0cngOEZJFal9hlSlX01+WnckeC7Zy8jpVp8dh\r\nMYdJ/KnhsMhJe/0ID3LKf17vv6HosMlnPjeB9+Hf+ndvTNRDdeZ8YZbgBCf8\r\nmnN3paMlZakjRKwMkjzV+oeCnPbLShzyXNtzJ/014WFV2IuQ42ONsucpkBXl\r\npJUWqJeLyw11MB5k4gkqp3b9SCBl9reKQl4=\r\n=yMX9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"c4830fa7f9f03c1b1583f34708dcfd309fe6831b","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.c4830fa","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.c4830fa","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.c4830fa_1679959592605_0.8683273261956101","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.48046d0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.48046d0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.48046d0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b9ef77f273e7837a426f7f4d529625d1a3f08293","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.48046d0.tgz","fileCount":17,"integrity":"sha512-TL0XVIzf0zcMX6F4cruZwHTjK5Kqiab4rmsrXU+yKWmK0oGqbhMAqLP9kMzhBWciIAwbiCz35y/Rz80U0yQdJw==","signatures":[{"sig":"MEYCIQDN6wLFwDZeuPkGXBG7u5/AhFsDS80TlC3CJIecTWxA8gIhAOATLRPiWIXae1H2z+zJxexJXhFWEyOXqrOP2dYaZIxY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI0T1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQQg//frWjHGJTP+GE5srYSg38P7tywgBJqL/nLgtGRTYmnh/RB6G1\r\nUeMHCrNoKN7chaW90gDUY5W1ZTvD6BK19xoOQxr7BtmiT9PjbzPJdAAbLu7N\r\n97qI5VVTkhQ4VLUXZh9+aQsvCW0R1XUlNOiyvAS2DqfJQTMTNfot1KmKVCmi\r\nz31Wyk3m+tUhE/n9Q2qxgtDu15GhzwXh1f7XCbL9T149B+mbEUATh1AxMucN\r\nHzJr9rKzClqoOopc2v28NR62xjA/bXtsKkIry6zY1o1ChnHCR3VdDvzAbHIW\r\nqMfb+Oitx0idOsO5AuhgNWQwWlPCOYXXaI/95YurfJOPTWTvrX3+RAA/Qvxy\r\nca/2suB1+WVd07G4EdzAqYq6Rbdtbj+baqATJqbA3Jc83r3ZMYHTSyj/dCMv\r\nJTTGTUG7ObtzRkZWZGsUR5ezJJlzXPBbJy7nsK1PToJlpB81Jf6b1J/xgpj0\r\niGUjJxHIk47i4/jebUviwj5tVneKrsP0xyUJ3qduPF1p9wU4KmjwK+KCUKmI\r\nDImFZhVmwAtoqJh6C06M/JrJVrjjcrOesZFJtbY3KWK8+rhJJqXR2Jt/xXBp\r\n5++mmZoeVxq60EBQA99JOPBAvTmWhIAq4qiNLGY8TlbamDW+JLQ3Nzi6fo1Z\r\n6WXihBPLKBQWXIHzoxWI4+FIr/9hKEa1R2w=\r\n=GT2m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"48046d0ec540f97bc1eb884012ac3237d69f63cc","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.48046d0","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.48046d0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.48046d0_1680033013245_0.40478211761620875","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.3757af9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.3757af9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.3757af9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"9f1740d0b17e903ce573f45e51beb8106ba55d9f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.3757af9.tgz","fileCount":17,"integrity":"sha512-bXBGCL9JTDy/hfxokRr2CxhUXdvk5wcQcvgOb+qv/prVOLcRCO9HdcZh3ypJBA/XZrB+hKWxFmFVKrHA3kpbAA==","signatures":[{"sig":"MEUCIQCi45n0jvfUnvB/q54qA/kBbLBr6ebroqBxX/81jJUysAIgIN71L6NiY6fyjjXg9eVNkemuoR7jQRNfIBxxsfu9Tx8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI2LuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqgMBAAi5H+gvVPJ8/9cQmnQTNxhcmUKAYEGsATp53dqpJdRj3K4c2x\r\npIw37F6bxakggnA1qwdNBIPOocbA2bYeWi+fR+yFbaLxJ+pkLXTLFLcWc7Zj\r\nOUc5cG0DWj3Jt8ty4414QTyNix/7fl55zqA8ME9Bv2IDByJ921HB5TnvI+Rd\r\n7at3Q3owNdXntS5sf2cpqsnwurqEOiohRdevFVUISQDBUVT5g2dE/+iXk0bM\r\nxW02fi7E0Xryg/aIzQjddPRa0FFwV82ZFGB5oYJ/BojbF5dIFSn+gbxsUuvO\r\nmYz+v1H4GxKx5TT++0xd6cfCBsRFgUo252NYyHWQ8txHG14d/DoG5xnBkRAS\r\nKoI48ksi580cRT0nY7CCc7kFUyv5fOaf6XoufI8Jwf+i+qO3HD58N2qG2/E3\r\nUzgWC+tPfkrXlk74PNSj2Nso3mTCbvbSko7k9bIM9SvnJKIwhGu3qyhngKFZ\r\nBdDpYC4b6XplMq9nPcg0BxKTzQ4E3q0al/zRPSsyMId2tIcxt2x58a5OBhea\r\nzaDKWV7oNzUyEAgF5dsXIwdfHZjnZATNYDmFjQFOl+TI4duvw0IytLxrU8vL\r\nWDmfFvgayZxWsxRKUJxgXgg6AC6IYHNgiXySBdxOZZjnqyL2to9yqGMAnT2D\r\n/fSXHNJClLjl6CN71uVWiM6AxZe7suIGpR4=\r\n=77hl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"3757af991f745783a66e0f6a475ca24793608067","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.3","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.19.1","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.3757af9","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.3757af9","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.3757af9_1680040686520_0.9090284330736917","host":"s3://npm-registry-packages"}},"2.9.2-preview.59301ab":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.2-preview.59301ab","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.2-preview.59301ab","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"069de9a500931214efe6913e35ef0eb0d9171dc4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.2-preview.59301ab.tgz","fileCount":18,"integrity":"sha512-2tJvIwOZriczWpiPs63Q1A0YxtOy5zUSHqNT/cErncoU1pagblMGBz7YVy+3DFGMNa8uWQewuEzt+qgEx5KfIA==","signatures":[{"sig":"MEQCIGnebvTghjQXQYW4NotDj071lzrTWt+2egZp6Q0eV1XGAiBgrGWZOVYFER6DapPuq52Nwy4LUaxcJRiSKGLT41XLsQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJJH9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJ2A/+KwQdtWSqQDXpnnXqe5bia31JJQwXe7FoZ5QT6eC7N6wOkUeH\r\nVyYBF1VVPb3ycUcyXlIyAPyTEcLCgG2Jr1dpVT7Kbcpa1ddzxYf89XdBAcmp\r\nrWuLIZVhdOJZxjVjkaMbwBWNiScSYUYmjgXNIKqK0qhunTI8ljYQZ0iIASqi\r\n5MdG25uiZihxWHRbHdkRkDUpk75e+Ej5bsUxzFd1FloZ4DhcWuyTdLu3wBAA\r\n7a7w7Ywhh5JMBuhcVsNFEk/JWEVjngdo5zC2EzxiuwJ7RS+Q0ar78LKO8X4b\r\nJPw8wEZqUU4VBGrPjdeNh6J4qZHNchZJM/n6T+FAQhNj5RTUJW36I35ItbyE\r\noT8F3W3RuFvw/dgR677S4WuSpJl82UeqCmWYq5b4ATZ9XA2+i8Hii5M/pY4h\r\n9qDjAte1B4INlX9uoKom+ohWIu7rIghibsHT5uvinN/VVZg8uo7743QVT5CA\r\nrZHBvH1VxjAyIUhHX+R06A2gjsEYsek8UxQaxmU5V7z8CKoi2WNZ/rMjBwMN\r\nth6Y8C8JKUx1FnKPORvZYx9LmR9ao4/KQ2nIU5E5d4SiKWpKjLRmgSaM7jHJ\r\nEKtyVYjXiT8DjW11jPh6QGaz11c8U/hjluEPhdf82JhOfqWitqDBW57TLIBX\r\nwLick8iKJ3C6YNXoLZm66/zhRWqfVK7qeJw=\r\n=XJkA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.2-preview.59301ab","@microsoft/mgt-msal2-provider":"2.9.2-preview.59301ab","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.2-preview.59301ab_1680118269510_0.2622333375366619","host":"s3://npm-registry-packages"}},"2.9.2-preview.8f7eac6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.2-preview.8f7eac6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.2-preview.8f7eac6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4495f6930a38c37fcb2c6cc10a5b4cfdc9099ac1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.2-preview.8f7eac6.tgz","fileCount":18,"integrity":"sha512-IT5UwiZTwQIpHvj2s0hF6v+GaQ4lAb0n2dJCWNbgvHyW1mh7Dv1UvdKmlcpizaL9BdLnr1+DzMGg5eSnvncJyg==","signatures":[{"sig":"MEUCIBG8VyACwpKwRd0XO7b5Yi3sjQy8s4y5Om8Z57+tHQ7dAiEA9kx+A+5MN8cYcCfdT4/teRlQradcs3v5hyRRpY4PAe8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJyJBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhKw/8DmWNLNz18Ignhw4vSEb27WSQJHeWdBoe28EepWFhH6r/RQxk\r\nnpY1x2Qz4yg4K893xx9GqVsU9SVixQG6CJ+jvQQMspfty9MQexQolciKjLhl\r\nVYc2n/djQeaA6m4f13EEH6XENTtBsMFnkT+mKIdkATiQaZ+9VLY1EkmUM00b\r\nj1tVO/9/NlumgNakBuC6TT7EjAzYGiRYrqqmoTwnuh81mgkBReNUZ0WeZn87\r\nbDYRxF58EH0AzSzfXlh0EWtejImZpzlaPswbmUsZOAJOiVlBC5nm/KMmVro0\r\nWPPGKF2mZZ1gCbsdTIy3MHvEin10ZNJpUSHltpZ44LfEr6yH+WtRkv+FD9hS\r\nCRWp96qOkeBkmc6Rwn9JXXm76sLXhx727hr0Fvg/i/CRiUI4RTjoZNNT+atv\r\n0wJyNfIx8naJHhlzF6oIcLD9Z1/MIDFJi/2QydANy1vrITtBLKVPQ7Bo1ajK\r\n97jmM8UkLob5NTFwHEHlD7Stnyq0arxZt/wYOtxjHL7OPvLnKMivWraZrYzQ\r\ny0jVNyAmQsAe7D8k4ZesDKO1bt7wfJ8e5mlcKZ+eFFO6MhPykcOIRUB+OmAF\r\nkcSLpd+auaceOoolhg8B5xami59ppJYqWxhTVoSjVt/al7waXvfVN6QF0797\r\nhscU7lIed5J5f9s/vR6DYdWATfZTTNG5OXA=\r\n=yOr2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.2-preview.8f7eac6","@microsoft/mgt-msal2-provider":"2.9.2-preview.8f7eac6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.2-preview.8f7eac6_1680286273284_0.17672752375481626","host":"s3://npm-registry-packages"}},"2.9.2-preview.9b600de":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.9.2-preview.9b600de","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.9.2-preview.9b600de","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"11bf722d8bbc146c56ec1859c9a04ec41bcbfbe8","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.9.2-preview.9b600de.tgz","fileCount":18,"integrity":"sha512-mw+eLLMmjn+XGABnoGj7y0izTXBZlyR8n22egKwmt7kwZRZSDiXs9z29fIUCxLJL2NAM6CmnJRqA8Ktc4B3r5w==","signatures":[{"sig":"MEYCIQCFmkbuZPpkwOhy8NBM+dnWnXt6Mx2As1kpRPIgExMvyAIhAL2H+brC4VEzayW71MelCuuhaHj/IYOoqusVWVZ/SfJ2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKurUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlWw/9F4xqdtkWAY0LxjWSXaj7BShnvLP8YIApOT4B9qU4McVbBdsW\r\nC7OjJbH4Ayb8iyXIZWo2eU08b9HhZPNwcd+Ros7bdwAUSSCZhXeE3iWSVdGA\r\n5EMEn+5a4kJgmEJiyPJJRjNSj8SdbBDx9uexchkhFp8pnpBuJlQw2ShYxrx3\r\nJDOTE7hyv0tztoQf+uG33VPJlqVlGtL7XPQjs0bHhBCrFFz0B32RX8ZQLlEc\r\nmKAT0z36IlOTOtUMz6Z6DkzG4MqKYa9x2r+6i961MiIEaTMJKXwvD0ZCOI44\r\nIM89hd5V0P7c2kxvAn1JILYL2BE85Zhha6HDN9FNtmhVRLMNvuu8NOc9OSkG\r\nCa7lpRKakXmx9/Jxhuadvk6EnAO/SHrQ8wnolcdsM1YFRRGH2FETJVZHHvkV\r\nTTx5Imia/5KhjbgQH39T+8sndogWohDqITNHnwZ/PTKQAAxFR7KWMi7RXns/\r\nJa26q9Q6Qhs6/Zd0d6nDla7lER41nJYixL5bGb8Ri/ofjyji0eJ7qhjd1jRT\r\nABYulxHTXWnENJI2t2QGZkVW1G+Q4zq0WmYD5zDucRTn+itzDfYPrrowFXhG\r\n9C1rt6ydvLZc6Qss7FLYBfLx5cWVHpmdAGpWxqME7WtPVYkt66MNBgL4l9Sr\r\n3megJS9Aqc2TylxphchMPhZEYrRIYolGdCg=\r\n=4DXM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.9.2-preview.9b600de","@microsoft/mgt-msal2-provider":"2.9.2-preview.9b600de","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.9.2-preview.9b600de_1680534228048_0.45049100987460844","host":"s3://npm-registry-packages"}},"2.10.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a6aa54586b78195c96c96c7f980566a392d9d2bb","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.0.tgz","fileCount":18,"integrity":"sha512-yByFt1wMMDCIG/HSZCgLSGEgWTIhAZsv1KYoGHoOGmdk6y4cRpU1ZB4dv0YUzDeiRjMomgtAeVydseyBZPPr+w==","signatures":[{"sig":"MEUCIDsGxiwH/O3Lhvkujg6VnRf3d9MFFNGWF91cnCnUMdHiAiEAyaX5qi1aobw6DwC9BiVVFeaB+2qnBT3+GguoX5Hd7Lk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLwHxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiZQ//eAOTEME58YIldmmPXhmdWM6BtNiXdII57g/3Su8AmPlatroT\r\nDz7X7rUxR+GXRJNhAs5GQO+jJPlIf+LKVK6lAei8FGj+MusOH39lPz/z7s8A\r\nZ6lM7JD87ZIcTQ+AgPhGAfOBvgfbENu6nSGNqrh5Csvy8xnaCtRYcCRWSwdV\r\n+A7w6eKhaGX9dnb0oaifsg7fgqbyhnec4K6lln4Nc/xJq/FZie/Y7h7oND1G\r\nfnUpD3NDHYTzK+UdW6UK5XTvc2MVW4aiUryKrAQFNAxdDEV2YDMUpMcpSegX\r\nhYGcWhMDev1TM8wi5pqEg81IizSOe8xEyO9LV0vxedQ2UipqqzG94bfTmZBY\r\ni010y0WgT6RNOz+4Ld4NimsLoNI9QgGEDEVzPDzYL+emSu6OlCzx2kYHcNve\r\nTj6PkYmIMHfCes2nrwKJJHz8LraA08KjGNajijST9zv0lk07a3l8kQX5Z9cr\r\nGjWOQtvYdb0iz2Czz6q8a/ae/Z8BdkeLhz5LIFaXUWofExuFXv6WzALFI96Q\r\nYAZT9cdcyJpnKBoE/vdIEm3lKax++d2bjqYCfPDn4HAbBMlhe/a8TboRBV6H\r\nnGNqOFbt7ZPzOrcuCTjY56eKysnzck2Q3g6NsIVO8SWuzsp6tagt5TiGdi/1\r\nAPh4NH1h3fEAs/AA9Lkx+9/ul+FsKMn4CI8=\r\n=dgVy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.0","@microsoft/mgt-msal2-provider":"2.10.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.0_1680802289518_0.4488580913527598","host":"s3://npm-registry-packages"}},"2.10.0-preview.4ffcb44":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.0-preview.4ffcb44","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.0-preview.4ffcb44","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"e333417bd519886295b27b5f7d3b2ba1b0962c3f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.0-preview.4ffcb44.tgz","fileCount":18,"integrity":"sha512-rgKV7V0tsiUCoPk7tQ22/dEwrUceZKhPS+i0Bi9pxGc2FEDhUEyfijc5boJzqmo/XyNCeeqYhZi6VS4sWdE2TQ==","signatures":[{"sig":"MEUCIFiIx7fpx5t08AFlo6lNOiLZncEWAyA7oGkO/X9QFZRYAiEA5k6jCzrHrjRWEmKleCgHt6KwcDgRP3c2av9+B/ru9j0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLwPZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLWw/8DcSpROkzfwBcQhbTnbYHDdZgWWaaBn1m2PPPjJFyIIZbteJa\r\nfBIjSgc7OGaaUuAcvCA/H2q63R/a5b2slsl8AqTy97LqIUvdMdASpABpVJwb\r\nWhS3P/gn6UvdoY4zBHJ1EF6G9/jWs0ldL9Y5kdyFggwnGV9xcIsQ0MAByPs1\r\nP+0sa7dQgNcKODXwkQQY4SNUJuYFHq57QXknzLGyILBURg7+9sDvZ5bPP3/0\r\n0FFrWsV4ERZGMiQVurIvLcMj9pLbfNe+RaX/irgz5JbK7G2Duz5SZSFMyxrw\r\nVK2AriwGLpbW5U4vjyjg2kwtSQySKx/7WxcnM5Vso3kDjBz9HScgP9XeGIUC\r\nEmqtw9qkqWOzaTHEPJY9sFGWHB9zOZ4bOdcCFCklv9Qif4UC8xLvlinB/n4e\r\nYw5WWPbeVIPgfQEKtZtUCyWSx71WTU/wz+SxWdqMfZRmNI/tjKW7NLCmeCf/\r\nrp+NxBcIptM9RO/B9fSl5fMNXjakoXtqrKSIyMPwIXT7FYoUo1aozVMUhFqw\r\nIq80zU7X/0zcntR7TVBAgHtqg5R8XzhU1nF43mOuenB9mJomQKs6mCPNsk7T\r\nii02WztBiIc2nc2A+Z+Mk06g9p5HPl22Rz6K9QTkHyhTQU+UqjfofTw2eRgR\r\no00vlvLnY65MfXy/bjwi/4nDdLrd/bj8wRk=\r\n=+oDt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.0-preview.4ffcb44","@microsoft/mgt-msal2-provider":"2.10.0-preview.4ffcb44","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.0-preview.4ffcb44_1680802777661_0.9791422720836092","host":"s3://npm-registry-packages"}},"2.10.1-preview.a1e61f1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.1-preview.a1e61f1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.1-preview.a1e61f1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"ede4b754c20ff21a571769426e7e399c98084bb4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.1-preview.a1e61f1.tgz","fileCount":18,"integrity":"sha512-scnSwAzmutzZOgHYBWSXKgu0bpMM6uDiZxlFIh8Jo8uqbhdNEbUMtNDdTCG/9Et7+qEKFh8eqbm/eYc5bQbbGw==","signatures":[{"sig":"MEYCIQChwzcvcqET9FosG16J++0WRwlOJfeWnPHGDxnKHF5QygIhALqk2ioUMizSf9L3jBFFfR9hO1W7YZGJIEzZhMlWq/Dk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198318,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLwdAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQGQ//b1UJ2tJA+PWEutqm+P0+37xyeUyLtuC9Hev1NL+z5Rpfpclm\r\nMgXZA04wH/NuN2n1/Vmq0Q5ZDvza19GVUM3vCux80f0FyqHQf1H9AxbCsIu8\r\nB7w+Q4Bhoo5OPrK+KuVb5Oj0+muM/0GNVyM4Hrbsntlgd+Wgec64VtnQKV66\r\nvuLwfLWzOXlAUOFAJ1vp3Abo6aVewIENhkCes5MoPgIa1ZpXjYb9XSrFFp0g\r\nbI/hKxwQHvzyii3BeRZT1sYpw7OweEGtlYek6XDDyiylm1qh7Y/bnTcxwUtM\r\nO/e+pUqkKYDmujrGL+i8i26KSrOIQXfss4d2J5QGB9fPm/E7aa18jSJN2EMT\r\nUVo3IXLY/X8vA8ktY4yR+ZoCkEUlRg8B5obWeFu9tJ6j8e9eAKSKzLKCZVBo\r\n53M2HRPoF6iNP8CP49fUyz+ubz1UZsOM5G02SvD5biE41B9CRe8H8BD0IjiD\r\nastV040Ljmoj9FjXy77cYsd3CYZXvBlqqeLkiD0BNkwO5mRdu3WJ82C0pn92\r\n9lagXp6SGXGKPOi5ebwS9ZBn4wz9TQ7asvOHH9F62h6W6e04ug5tvoT9i8u6\r\nA+nzlM6CalokgeiY9kvj8Nb9Pyw3/OHkS40Gsm+k5KKtOET8GJfZkfIw2t8C\r\nu53PleoNzWEG+E5OY1FJUboFwJap+hR+qQ8=\r\n=VdTB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.1-preview.a1e61f1","@microsoft/mgt-msal2-provider":"2.10.1-preview.a1e61f1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.1-preview.a1e61f1_1680803648683_0.44479477388922195","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.2970a44":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.2970a44","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.2970a44","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a7256523c319d726bd316bc81823480341680c5f","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.2970a44.tgz","fileCount":17,"integrity":"sha512-19mAipmsGhWkndeT4MWtyQYaVHPB360nhUyuV04WZr3wbXqaw+xEmv+WoOpDtpgYQuiaOHXGiYrCqeESqv4b4w==","signatures":[{"sig":"MEYCIQCFctS4IZSaRnwmvjo196PvR2Ck6/nYcZxAblIfGnhb7wIhAMPbNEWFVLWhpSZay4wffrrx7StyyZB/fIRdRKhZwnco","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOZtgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8jQ/+KvwLpsyBwbzEfwcqQNulS0+CXytnEvdF8K0AvHN2fe9IeB5/\r\nQzv7egrJQgJjMfkrOPw/oKNpKJqqqkDUaAA5IbinvHVyKO4YJAcgZ3ofGWrQ\r\nNDujIXlbAehDF1Rjj1JsSfyGzVpLRaaWWNOKGlk1tJk8hsEKgd6DVIDEE9Qi\r\nv00JGiCi6jGC0CC6jUQ1qSYJa5Xp/WrM5etQ2FQvWwZPs3UyzLSHqs/mdyry\r\nJ+P76jxBsQa1u3JjMbp+ktTbFIgv18UDxwnffa6Py/k+Hp6zRl4Uuu1BTrdc\r\nBL2+N2WTNuQCiuEq8IUv1shT8iw1KzhxdCxeC8XgfqGrBRw+47YG4JUu1G8J\r\nMelcv2WTYLRgIyKdXacrHpYaa58b4nkPLrbTaGg9jHpZ+KdDtPvztlXfy48A\r\nUnHLqchvDmDFKxn/Xk6spLW0WcndzJxu2p31Ih5UIH2hDT/h6ekUjQPhEwda\r\no5vmgBpfpmPkc8GiF6VUHAxTpyzu+q5KTH8pH3E9wF6Ls6MY9JkHqse2DiAS\r\ntw+Z4hzsV4B0ek8Tu57+nXyVCJ/VO8TwmqJ32hHL8LDPYoVN6vpRpbNzd/Cb\r\nOe/g9Sx9gu05DO1ti4YjlXrNtlUK6OXmVZtmPVqKmOQkmZV1yhBJOvc+JN9k\r\ntxlRwva7yby9SvkRJsVTmoG7+37tK0j4CwA=\r\n=eX/8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"2970a446109b79f879c53f8f646a9ac304488ec4","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.2970a44","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.2970a44","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.2970a44_1681496928409_0.8229308935618904","host":"s3://npm-registry-packages"}},"2.10.1-preview.aafdc5e":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.1-preview.aafdc5e","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.1-preview.aafdc5e","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"fcd7c17095a30b053e036e06e48bbb971fb81c5d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.1-preview.aafdc5e.tgz","fileCount":18,"integrity":"sha512-R3keMjzHv9MO6rtIxB3nVsbutR/vfQhzizXsuXvykD5rwX4j1V0RB/olFQ9NC+aeOxwINsw8a8lyAX1kExuY+Q==","signatures":[{"sig":"MEYCIQDDjBGOticJ7bZTMWhLWVxjh+YsvP/qeVHlneNC1EKTjAIhAKjWvTHHDd3GzfoBBUH/thWOSx2AuOy5HLPMBrEsIz0K","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPjakACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzzBAAkgHQJHwoAtU9MXZGj6wpwgf/BIu7kqAk497+2fGB0kcZQJDg\r\nPgs5wAn58bzpbibZ2eEJ7ce2mr6QjzxmfR6vSIxljkf74WcRNmaCAMOvAiPN\r\nibeREniK4g6UFnFMe3bORT6ITXVj+FcyZmDkuew+6yv4L6KmoAlAV4U52Bio\r\nARbPzvZS/dG0zh84Vwb+LneHTgXEVFDsDQWv5Us2MkTsrs2SPe9hMeTkvdi9\r\nQ+4pVRfOSWh6lxjDIxVsrAEsGj8NONDwgyANK+975/U/4kAcqWm5qiL3kZau\r\n5JnMDQ8ua3hAkSKIBJWoQpMFXLroSi8O6hxewSzCQfUbyhqHrZ2KuJPgpLt2\r\nuOcGdTWNS7srYQUj1fYMOBzHAgmlYQByZYjfp7n1RL1WFLH7AbLViIMrqcf7\r\n4i6qA3WlKFj+8Tm9UH7Pi4lFuTkD0guTX081Rv/2LM7R8zsiooo561KoeBWw\r\nCxdkEbP96six6qW6V83klkTX+wZINYY0nbcCHoZsqSTkxpqZF4QtltQpsvgy\r\n3RpIf9zKOVHgjKCXQOWzzy0rOoR7LI7P1zTo7PGp/ADYxHrxD5dImmMXSIGA\r\nKuaRG5w9YFQ8nDk87xnhr2LBRSb+lqfH/5TN9sZ/vIccZswkxaxbq8HUjvR0\r\nhqPaZnoBGPHlnXK1Se1hAGCLTdY1vgPYqj0=\r\n=3Nu3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.1-preview.aafdc5e","@microsoft/mgt-msal2-provider":"2.10.1-preview.aafdc5e","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.1-preview.aafdc5e_1681798819974_0.9233422470452379","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.ae05e3f":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.ae05e3f","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.ae05e3f","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"74033b6b9b4fbe2437f7d04042f9f83883f242e3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.ae05e3f.tgz","fileCount":17,"integrity":"sha512-wxUQN1P8lX8eK8LRL6O37trA2Ar4qlBlULF5sJQQ0zpqpAwN/HI5DTCDNsITTPzlzX+TnfzzulFvOn+tG9Vk1A==","signatures":[{"sig":"MEQCIFdIKaEQno1PGDd8GmbjEtbj79qI/4IkKHhU0Qfr9Z8dAiBiJcH40jAIJfShG7H/hyPe2/5Jsla2h3Ap8aShzqXzeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPjkWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmop7xAAlKexG46VEVfCqwgy0wvQ/d97tXZeMgCtVZDpHlH3jg7rOwnS\r\nOmwrsMO9KQCwVMdkFRT1T2dd++fmTTQhJcT9jBtCL34XH6LlOdIWydB0aZLl\r\nQ+vpWv0NGu8Nx/hSrYDNjqGW2H+bh7epPmbU6g5Zz58kU/nm7Y+ggkzQa4Zo\r\nneGkHkth37AOAk+UWnZrc3dwegymtZMg5Hq8TTmUxIYhYnuiAgAy5cCdWVRA\r\n9iNeebSII72e1a1ZBXGj5dIjJ6B7tGxJGnhjtFpSOYyH+STxlfCk4gR3+Imt\r\nHMDQAKu2nG4Rb/Aapvq+YeHb+zeiHd6Jsf27pC8nFLSw/iJJdFYZOAW1m7VL\r\nAZNJwIHA2LLROVTtOmpv6lgIfR/3sCc2uKhSh4FgrJ45wF3yWoBBAjFWGjin\r\n6RMdT06rpqURyHDgVK22N0a+n3xuI07wmXloXUrxGcEqQIYdRpgwH225E74x\r\nitqxsUJFv1dW+AUgifby+DTG7ZILlXC9P2SdxK1XMqRI9HYK7O5yI1kSywKE\r\nJpkenK5qNV1Btsvtzw53NhjlTf7VrdYrPHW/btOtUmsT30EI7xTXTdP8YPxp\r\nz13ICP3130iFOvsuripDZK7Ya1+gLEUEnayEN+G/IyusXZW3mnFqC6ab86UD\r\ndArykcyItMSx1e5e2Y/FkCDrq4Rv6Bt7oDg=\r\n=ZTq8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"ae05e3f3787de92233da3196c1481e39b585bdef","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.ae05e3f","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.ae05e3f","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.ae05e3f_1681799445996_0.5109203565587501","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.8d2c8ef":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.8d2c8ef","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.8d2c8ef","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"dab07b4bc9f2a1c703d8da5edb1f76ca69f3471a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.8d2c8ef.tgz","fileCount":17,"integrity":"sha512-yfuY9B6s7Iyg8r+L9xXUeaPh3y4UkqPJCYDnsDiWuGMRfOr6NEM15AwbMXsWsw81IMVOewUsPaKLWWtptRpTGA==","signatures":[{"sig":"MEUCIHeqZMtkoi3EQgL7PFMuFvEG3U2gnZct4sgVSzaNdgUAAiEAj7hGOaYICu7dLMYaoydkotjn2fXhU6djOLkxE50H6KI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkP7O2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr71Q/8DgTLtMrb8VAa240JUc9MJJO88M2DtQ1HubErc/5oYP2BxUkO\r\n+sM2AtkpIlhDN33UaZIsZB6GlIdakqQP2wBaCEPchcWBUxSN4LxmRCBU7xnx\r\nFk55B2Sxr2KVVM6VJ5v2YpFXOCmvoHzV65T96zs+19v/0JoYISmvIznhJ2OR\r\nwgAPPO54VB3nz+p7HjqTPQ/EpNLZeAdGL1QdCUpHCfX6/mahGF1JW5dPt2rr\r\neYcBVE36BxHqDeSwDeu020Zi8HDCiVgg+gfB7HDPk6jyZ2HBGSlQ9Q2zpR2P\r\n6TWvy/lR7Gn4X1Mixk1YVufmBHM2Peu46N/bw2r437Uz54b4z2kpd0/oEy/F\r\nsnZfNmdHZhAtfUM7RZZlROEFHx2zgGAuk+4R6c9nv9+c9zwsy6jxSzZAx0Rj\r\n4rh9kv4elLoAv5gRa7un6cqkhst5HQLQtS/t7GTEB2D5qRsEPqoOExKbNBGa\r\nNSe3PuJ5ODPrsTEcnnVHmTs6g1YionGzOwBp4DjhJy2EJzPjfE+4VAqGpJCv\r\nmLSaRjq9BcIU20eXRTavHBvPlL3XZopJLjtPBXI/PuUZjQ5uprtTPv6PaISd\r\nLKz21S/6/bkEl2wrYDYL7rTGsw5UwiXjNSUx9ssAiWD3v2OakRYU1ojQLsXB\r\nVYPTN8lYTl5nECKvC8cVRNmgOt7xCXYmUFA=\r\n=DCFk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"8d2c8efb7713ee9491a4a3899e3290e04d598be1","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.8d2c8ef","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.8d2c8ef","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.8d2c8ef_1681896374258_0.10120272268512776","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.40b87f9":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.40b87f9","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.40b87f9","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"672793cdc3e9fcd4b4f945933871b802117d6fa2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.40b87f9.tgz","fileCount":17,"integrity":"sha512-Vbv7jpTOBjFPirvge+2Tv+ziAWIk6qJ3iQMTr2/2VhV+TOZvRPeunQKT/Ve5oNflj5FbOs9nNaFZ/YRG8SjPBQ==","signatures":[{"sig":"MEUCIFDepupxT2FaFRSwr5o/t3Ww8/mC9Pkm0i6hUuAUAmdRAiEA498sOIRYJ+6Kko4XfGK+AvkiIU+tHjzYXO+KajZGB/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQT/PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpucxAAjE3LuU/V6pOlRq2t9fdNK7AHkXLp8OiWR8teGDlfnYQIR2jO\r\nXFwKTwFUuxHgPqa0U+6rBaXgObsEAOQagFaschF0HxNaK7aempjoyRmHdKva\r\nlkk2Y6mERbhi9SXEpCMbzFgwJD3Y5nDX0HN8sYan0t8q61eBv5QjfraUGSMI\r\nRuW2xb9UmEQUjlf0Qhibw/dCPFX7CbKKJuAqFjKD2oeeLez+RVVsE2cA+qWk\r\nv+b6bBJhin5FDCysXdka+aYTTz1NWdEYS0oQcuBFbK7VAeDuht2vsqcnI0Jw\r\nxNJedgXmW7FChPNmICux3vB351rHl9Z/E38DSHQKv8Zvk4N3Ro+MIvBlr4nH\r\nQGgBKfKrNeJmfgGS0tzKc5+PkxEj0AZ3pl+wEVmYctlh9Lp4bmNMxoTtpCrA\r\nuVBm5Um471/GG0w4WIsS+3yD9XJyafYCxFRgG3v2G+nF0fJzS6qc5x/Gmm6k\r\nky4jxiWUjeyfb0Rr0twSI8y+qjx+5q+RaB8u+08ZrtsFlRca3KgqUA1mBTmz\r\nxeOwCofjiQ644RCi/vjz2vgcXPA4nzTvkx+Ljl13j218Cgp+9YhCVbrJZKAG\r\neZwJThqJyFqCnEAwC4BGynGJue5pdXnTPeIBGD17Cm0OiG6UxysKVxPgvkGZ\r\nHVrqYggj535wy0bIxEm9OIw0j3FMunT0AZQ=\r\n=0Lao\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"40b87f93075607e64e0dce5ece8484ada4243f31","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.40b87f9","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.40b87f9","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.40b87f9_1681997775190_0.32897616569569665","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.78d65b7":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.78d65b7","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.78d65b7","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"2ccb6fd89c542eae83490e6a5826442616ffc758","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.78d65b7.tgz","fileCount":17,"integrity":"sha512-AlCdeLifX31d4h6h8Sl9Lym6m9sOpZBAqXkyR2Gi2GQds/RMKP4pRErwVE4kkcRlR9ZbbVs8t3/1TB75YaP4rg==","signatures":[{"sig":"MEQCIFA5wtOJ7mjXTVctxjh8sTy/4e946FeDeqfC5XpGptEFAiANx9Pp3uVbyJ9V/HbQDkmJdyxkhdPF9kbWXPFZCWdVQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQYbQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTcA//Y2unS0N3AACccbY/CBm+teJRlTr90XPmMKFvLMtibC1KvBHz\r\nmbmvhvn7UHAFa9P7gsAh/G1ajJ+2YyJqpUQUUDkyrqkpgeLQWEYFZyhOitbf\r\nD9eUdQHe9fVRkqKkMUKQH2UjnX1sd+g4PGkm73aCyZrkvC0AMpehDHwLvLvT\r\nINUMrAkfLS4JyJ0x4X5Ioumw3fIPB3jGQrw6PoJizmoDCji515SaHSpfKYPL\r\nmBydni/oJ+HPNksnZDRHEtxXfr1asDP7QFPZvpyXFL+zS40kAQJOabF8+Anu\r\nOf1F9cLSCyI/OBakK1Ge3jdkKOt+kuBFjsusjntcZKGSenoGWCfKiaTuphm6\r\n0YViRGUAdxVbgZbe9gvaDjVd+W+ZBSeb1XjX9XeEW34T0zcqfXk/BXzvX11V\r\n/YMeuC1NiLp+5SL+Id4sqaH/8F+TfTnVdCg1E3MnQSAqqQmHWXF/cxdGVgeX\r\ndrDefWQSUiQQAaToe1miZvvMCgSTqC7so6/C7l4avyyC/8rOQwCnPFQGc1QS\r\nafK27tn3yr55MkBPGigSW/G3e3Dushoj1i0OSAXyDpE1068ijixHvAQeyJ7l\r\nWu9jMeIZekPjCKl/5eJR4JrOTc2RB2rJ91V0bpc1T2paLy1+js3VlMTyMDZj\r\ntPD6Oy9QMygn9TkRq2xyZ3lwI0Zsp+Zk40c=\r\n=ifio\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"78d65b763866f1d5e94c8d245c6d4d2d17de4203","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.78d65b7","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.78d65b7","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.78d65b7_1682015952668_0.8364263650165729","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.7d785be":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.7d785be","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.7d785be","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8c78cc55f41eae80c5f88d6710e5cf21b69c9cf5","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.7d785be.tgz","fileCount":17,"integrity":"sha512-+r8Rr+1+D9WP+stl2VjxSEtXIbbwF4iVmEh9hmieDpzjWNcOi4HTWpWjkr7TTfGT6AhgRw3fcMF3wz+FhLykAw==","signatures":[{"sig":"MEYCIQCxJKwyBcw2qoWo4Wnj0kCDX01Zmb1I7ijftd3uVINW3wIhAIOvqphH3DprhXqyHDnFnr6GCNK5HYlbsG6NlxKRAv1U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQbRrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0VRAAiLCf6yU03NydwJhvxCIYaFOpIMA7TNP3YnilEb3SPDUFUjY2\r\nxNzobJnAhqotWgjQTO8SYCRdc7g/LmrW7pWyVpu4wRFNaOupv34szg9+7hoj\r\n/gPh3kkd6LHiIL8GFUR56ad1kfI73us5KNIiOPSEIf2q6SHUXIkmMmDVOBT+\r\nah/a9jDbR/b1V0V69bYchrOEK8zbrw/JGwThD6fCAbMPLNzTXFypEN41R2Ne\r\nrFDlxTnytrXfoxsQ0M0vP0wwHTFOrE6zNvJP7UBQkEHYN7SkqViFeLPdwwXT\r\n5slAubW2eUk4t8jMnSkP8lz3E0pkPk6+64+jbaSmsdYZnqHecv7Oh7eOW4W9\r\naCsW1liHsqfviQ4hMFqwm9iEuXQTZIbjy55SHu7y6oRffurCe0Mtlpi5rs/L\r\ntqsIeMaxUK6hAbJ3iBTHZyHHRD5U0ash6DL7Rnrsnh69/VZJj5c/fbnGrvYs\r\n/JGWEVbFIXud5xsmJnOkdHpGFQ8fwG+80uqxLkwnX44K1uemcL4bX6C+JwGI\r\nw/TeccBlcutuSzutIZ9VovDGAO3OFMTySFgRPbnNSbiWMc/LxT7WREdRcojy\r\n1QFKhTcFWIx+w7SdEOqRBhEM63E4gsJcsk6W1ZQlTV8qJaE2LnPuIxbgFXJs\r\nKrSpqTMNBfvVOYmvm720/3QLGIZO0N+lSOs=\r\n=kADp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"7d785be1c8482b0a8ad3f9444537c5c76eed5eed","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.7d785be","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.7d785be","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.7d785be_1682027626877_0.791469142595616","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.45f8631":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.45f8631","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.45f8631","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"16c2a7c9961f47680ef52feafe2ecd6d8f31566c","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.45f8631.tgz","fileCount":17,"integrity":"sha512-SdfLnXJFUYYQtk87AzELByda0+rdz7LLz77bvgDhCfj2JhB/2VqmGpPViRWjoY500HFGD6W4fgGA6exbSrONYA==","signatures":[{"sig":"MEYCIQD+y3ox6FvPWbHpIyX67aN4o9g7NO+5q4U2twmWCuLZhgIhAIW+osByC5Im3cuiyqgCK9JbmkEl5mPwqh3liYUFGDuN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQb4sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2Cg/+NltbKMLPkXrPeDez1uNgWxqAxiSNATa32FnJWymO9yABj6qi\r\ng1ltdCXCiuJIPc9ZD4b1i/BTT5dz03irvgTsN/KeoaIa/z6kGoK1fGodmSOi\r\nwUbUitHf/KoAoujVcfpXJyDeeVHv7+GQo5H3Q7E7IKo2i5E85hO1iuOoCLY9\r\nDc6t6OoPpM+q2Emy2uAe6GaFxd0IzdrQH70lNGZngEudmui3tuV7LeQkLt4I\r\nhu10E9tFNZyj3smSXE9pP9Q36s3j0j4+kGowYgL8NtD3xk2O5SwrUID2bZBm\r\n8rfYPjX4dkPqO2uVoeRxvdotm+MjvV+xnwdXhOU6wt6QZ18q0srtIXo8BYIv\r\nC6+oM6R8StUrlRgEPO96igjyVVXWmW9fN+O1D5tpbScCkO/jJk2+7aZPsJjy\r\nqf1kLTsb3agYQNenlQ9bdFWyVY8oVZ2aUN5uw4iz7uzB7aOB1VIzpgomMfBH\r\nCcZj+vkCXr6aunp0oeGA0LAdQE6XjxnDJ3KVfh0CofKzwFfJ7UdRzp5WDfYi\r\ndt3bjC+b1DXYmZkeWp1tpHOWfJAgdtdCGTlpEr8cKcsTajaa0Q8FHXnnSzuY\r\nWlacXNqoml04VWZE87efPhcgqSOGf9mINMJJaNNWruueNXN6BYsCjXL3M1EA\r\nWuw92ZhHnMYMgt+zx3U0WvxXBTbe7kynz4M=\r\n=bskd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"45f86318f86896bfedabcf98da5a7721a24b400a","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.45f8631","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.45f8631","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.45f8631_1682030124685_0.3922606510665718","host":"s3://npm-registry-packages"}},"2.10.1-preview.721dbe4":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.1-preview.721dbe4","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.1-preview.721dbe4","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8d87d0f92eb56eb201d8b29022e7d4d576178e4a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.1-preview.721dbe4.tgz","fileCount":18,"integrity":"sha512-RZNi1O/Q9ITvofh+BuUfpxobdvw2ERBNBBrYDSk+GQ8HhUr7kt3JRSCk+cVFd2ZXiS5VrbHLRgot8eM4m1cfnA==","signatures":[{"sig":"MEUCIQDr/raNWSBpgllPmB5mAgTO9ukNY2b9kH6arP0RFvTKfgIgbr6XTylEzn0UCXBAcN4peEaxFYRTW/YNnyjq6+chL5w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRkxLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0Zg//RrUjgBSazToTW8l7NG2uK7IsRzvJF70UXss/wcIgALr1nowd\r\nin7enXcyHe16+KHMT6kqXbLVlWlLL8kgvn8ogCTED64W9uTfwy9urNyWu3fp\r\nJjT7ONLGhqMy7cr9UELe9rRnm2NC6KpIZ5rB3/YEAszQfD69CoDhX6pEieGS\r\nsPckin7XlEZI7mnmbuvqihXBFy+taLUuaY8g6r3iUKh006vUfaEOLm0AiGjs\r\nL/yscsIV2KpusSPK6rObaYqTkwX21PTDF1Yu/rVdWHU4pkJQYBK0kK7tksIc\r\nB0U11FN8eEGkv+RxbSPovzU+stdBqyYGNPTBUqzvo1DmTf55s2wwlTR+9V4q\r\nvf+9GVjGWuhx3l3IJtCNyOuBKwk2JVdd0dGbjRzD34FH2q7CV/1wz+A0ltaM\r\ndryXKDk7qyD+m9DG/mn6u5yqu11ulN/V4nO1zuyjWyND7RD/oiRnB72f++XW\r\nK3UodLSBYmewQxfIjJwCB1QBPzfhvfkRBRAx//hzDzImaNe8qzbU62pqIvi0\r\ne7rHylyi6xBeOh8XUMIbsV0QF/X41nhRRBW+aBEV8GC4gOuORpdzqR7PXiN5\r\nhBPXcJB1Fthptj4uX1RL95Ns458sIrPN04r9CJdLhgZDJhUaL9HgLpA+IEXi\r\nRZOa2pQH3bJLlXJRDQOvJENcN0S8ButKLgs=\r\n=gLLT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.1-preview.721dbe4","@microsoft/mgt-msal2-provider":"2.10.1-preview.721dbe4","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.1-preview.721dbe4_1682328651017_0.7345828471776539","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.1ebb02f":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.1ebb02f","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.1ebb02f","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d70b723514146aae1822a45da271490b249b3e96","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.1ebb02f.tgz","fileCount":17,"integrity":"sha512-HxWiIK23CqzVg3qJHn1CcGyrpdfif4oiI6uqBXvcIe1R9QdQRu5jBSN94yrllkWKN2dOnArIHkUn+P/xfx93Eg==","signatures":[{"sig":"MEUCIQC2W+cA4Qs5CNGjuM3uYB5zfzbsATx6vk5dKJIrMvyKVQIgU2JU1s74nszh5iJFpJzxezc2etMZnZkwZE6jy1Ca9Pw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRn9lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqr1xAAlrkwnuSjeBHw22ArS9PB29j3J8kdhlkDgHNCTpsHUN/isnQ5\r\nsxHAUoHQzDwi6ZWn+RAhZYsiKb8t0ezz8fG7HVbD8Ys5JkqgjKhlwCgMNjdm\r\nJQZ7BJkvtyXSUpU5s/ejCnBWoxImfgwY2sEJ73CdDRuBi/s1EdJFdfRTAzei\r\nf5onEQ4Rqk7XqAsOi0I9a06izdRx40WCyyadLGLWLqw+Ofe6hRXhSe0mOken\r\nfT1v0x8lFTPMq+HbvPP0oWSyxDhbW42x0k1j2mvEUHCHEE55tG5GpvYDi1O9\r\n3Ece7/cemO0QeZfLMaKid6d1Mx8XzmIp8Eejx5Z804e4a+TUJl5HoEc9rXh7\r\nzUmtSHmQGerU6VWlIJ7Zh3nPc/SDNjMZzTnuA3SM0aoo9hNSlfcvQFumBIhK\r\nmRfoCssgpKHW2aqcb6h4id9EE5ek4joUEQsbgrYklwEjUexsJG6hfFGPk1Ib\r\nRzPFvNzKV3wFqpKr7kCUH0+DeWcxTFSJijJZ9ed7IYAZWuo3peBhiUHI7JWM\r\noXGdgvQlCKcFn13RIczxOTSpP89zrkVvTG3gblviAnWP1jcvVmny1947PtAp\r\npbnu1JUeFHKzr9xdMGoe9neiLwz/u+Jt0uAojmS79zijcNPr8tzD9zps0weH\r\nxp+1JVVvCB3/WN/xDZYIxcFyQee/qlh7+HY=\r\n=qY8n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"1ebb02f5f90c662316e2b9c457b635257b2c98f8","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.1ebb02f","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.1ebb02f","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.1ebb02f_1682341733650_0.19932543857370022","host":"s3://npm-registry-packages"}},"2.10.1-preview.c60567d":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.1-preview.c60567d","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.1-preview.c60567d","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6bff7108bda0edd32ee9d85fd8f4e04b0ac8c122","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.1-preview.c60567d.tgz","fileCount":18,"integrity":"sha512-sfj4xlfNVk6Qmr7S6aTh9NxoFoYcTZ6xu4UgXe7dGvsgHeOmoScnyqhnTvyO/UJjtaimwiYUK5dNeTdi6ne+pQ==","signatures":[{"sig":"MEYCIQC3GFlxIeyAPG40Qq+gaJSovLYCViarh8/kS8MwzMkY/AIhAI9vJvpvFHsWHcEyR1Fjnx9FfVcKZucddM7JHaXFY8Cp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRtucACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDgw/9G31eay9/VIAkL4oU8sJ1pIWEybRLNZ/8rjEWKhS6TM9XweAw\r\nNmCFZYybOkL1FXoZKn0rBjr+MIhDNWkKjkUkFB/Ye2m+ugOU4fquFSaWCW4Q\r\nLonqieIZUkQfX7ahSgw7fyQX0nj6USnDgS2STnc9Yq1Cd310sNCnLFGROclZ\r\n2WxlbRpE7TmrzWhW/cePY9Nijvr7wGi5DuGoPUHDWh4EDPI5GMbdmOQ+mLjs\r\nu6hgbMeRZEaIw1QHX5h1o/w4t+tNol4pHxtf9U0FW+rDMKowQbTVnCLUEzrS\r\nk3kg4Q+3JluHaqj430P7KUcPc/Iiv+YUc3am5BO+Hz6cuHuZ8TlXDekS6VUm\r\nK0u6tAyXKrgErROr+ZejWwqecJDtn45p0OohAtzfap7iGPkh98pIYvlEEKIT\r\n/wIA/PDUGo31+hB26Yuj0j/NZPy6fEmOSMe82OogYkjO+10oLu3plHo44Q2d\r\n26nOHDh08U33FL/frWdXdrWwdIX1nSu+8v6Rc9iesCM15yFIZN+uEIwgOfSm\r\niidUN8WLRvD1cIaq+N8pBeaCkWONcTasuRVNGUfuNaFn2SSa1zMWrmD9jbdk\r\nBkZmIAxGUuTgkKfNKQfD7ChebuAsEMvpserswOnyoH5yqNPkQkO8KIKtxlMW\r\nNG6n5YZ6lo3xrQyoEvGydieL67kathmZNCo=\r\n=sPhc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.1-preview.c60567d","@microsoft/mgt-msal2-provider":"2.10.1-preview.c60567d","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.1-preview.c60567d_1682365340643_0.39364653472339994","host":"s3://npm-registry-packages"}},"2.10.1-preview.711a233":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.1-preview.711a233","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.1-preview.711a233","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a5eb09bb154d6acbdb94b008db7a1b7b88c343d1","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.1-preview.711a233.tgz","fileCount":18,"integrity":"sha512-8yy8rzGB2aCPTJKnZRIdFccSmzLo71dTvkcEGqxvpcKkwLgW7oUzRo31ZWEnvLECXi6qGpYd72GUZjRus1Emeg==","signatures":[{"sig":"MEUCIGN6BYM1X15ire1VpBUI+MrqQOfGN4/QHSPHSb6NzSu9AiEAv684pbteuOpN9Q/8b+Yg+rBphjMUlQyRjiJgt2V8L0k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkR6DwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+sA//Yl8zbC/hVqcV4zZUX74Hsi9ljvfp1nkm4v/KLxElttkqxATS\r\nVUlf2LAqm1w4S44vKGMgIzhArcBmrIExiMf4OrMUxDCWX2ylLEiSYcWMisBI\r\nHNK5jb8SXD5bA9k2nbfoct5ZaxPm/uNLTOApN6R1YQu7gANRbGM0Ct8rxD1T\r\n5jU3feu5QduNhTwdfFUaeSJ5J3D/yWxMZJUjgtLQxHcCjH+z4ReE8BasggwL\r\nYI19XmNfAeNVp/Cwrwe3micvhnnafm9Q7iezC8wOXgOzfHK1g7v9LMzqpByq\r\nkkejbK/3shCy+TizSqDuTMoUboC/B0Ak+5ghHqFf5ErQ3dIzRwqbkA4wkENE\r\nd7tc5/w91wcBEWt0Y/zip14ACEXdI40E88MfjxRsdjNMm3skQWk4bUVGqt9H\r\nqTgXxh03D/yjSiTTfSTXTeAEOQrXPTehe9d09rnVg68A5P/YC4WjwLNP7mIy\r\nfaxpddY+Y9HyNv3BVzwbwzkdhEj2LnlViin9t+NBUGVM4wmvWQvRUccH+Kn4\r\nQiS8SpvOLbMuuf+wbY7+p3UESmZDuWW6NpqOltjmbjfLro0RYVvT+H8FJVaL\r\nZtBA86VBzis40Ve/kdW0q0466t2ObIe7iIcCeBCncg5kQ2ihnvQO4laW6jco\r\nt9NZnmiyI64qgf6A77Rx0jKZThAKUQyhssU=\r\n=GKdP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.1-preview.711a233","@microsoft/mgt-msal2-provider":"2.10.1-preview.711a233","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.1-preview.711a233_1682415855760_0.8891871478195759","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.fc4f1e0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.fc4f1e0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.fc4f1e0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"a30219e6f82d841390c214f2912d69b3eb73260d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.fc4f1e0.tgz","fileCount":17,"integrity":"sha512-yKcLj9GoSif9p5sKiOAqmA2CXigz/9pvcLxgu65ZXN4z2YeJgVPa1eO3j3Ik0xxy0uuge+HGIFeKqfSjNMOYBA==","signatures":[{"sig":"MEUCIAroGk0gE6yhmVqBxhpUed+PiAiwjKSYxmZHE/29P38jAiEA85MfnW1Pi//Qnn+rPWwUREic0CBZsx0BMxMEUyPlTlk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSBl5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKDQ//V+LnGrUI5RQRkjYVHz9NLnnlaT4ZRJWQH/X8FfG2UYCHmdWJ\r\nLBW7HjJMDsbicg033DcCjCkMKamQ7wTbKZ+IqKIZLSdoJo2sixAPqJTPMrzk\r\nG2CIXIbpnstefaVoNN9fh9aATG6kyw11zstvkcFRWxHJcKH9uquXvmrdSq2O\r\n7XIW0wAdVlJXHsfKg86+VTvvAz1jD0Me3yqbI3itwmMOlbX4lyGlu4sGWGSI\r\nKK+e3XgE+Ms8xJ+PscmKGl4tlMM31TCgBCqxLvskwj3ALW2C3lBUln5c2sfp\r\nmVjtQTafjglxo9A9S55ds/ploa3WJvZXgvn4tCDmsoCBREtzLLtLQPfwreQI\r\nB675QqvzaGWWM/CcV+XPZHAptuGx79oOTzGmTRHg6CeZD+aODMFimuEGcxOE\r\nYSwdQ2PqrmdUaip5tVahyhixLAxks5kSYQw1vGQS6N0w4vg2WqEWfupgehWg\r\nNZnzBbcq6Zv/XbkTQjoCK5rq7RcW/+wAQVoGwGyCOnbRYGWlTOfuVIXZ6qcY\r\nKU5ul2oObnBT0DvQbas+eoo1/NNSERzLIpitLePlMIvJhCCIjm56N6PHw3NT\r\nL6+9rdzOoB47AOATdUKz96fWpwdMJAOisAK9MWVkBJHZYseemsc8HXRjxwwP\r\nU2VSOvFcKTMHynK+erVo8NzZuXaN489imb0=\r\n=C8sS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"fc4f1e0aafbb9b8ccdd198593190b2b5dc2792f3","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.fc4f1e0","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.fc4f1e0","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.fc4f1e0_1682446713526_0.08488277685852963","host":"s3://npm-registry-packages"}},"2.10.1-preview.274af2c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.1-preview.274af2c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.1-preview.274af2c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1bf0519ac5cc4dac9e6aa106be7e988142fdf508","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.1-preview.274af2c.tgz","fileCount":18,"integrity":"sha512-sCbQwPMVlInXv9TcckuWu+9aNbhhQOFJtvgmrOH+6WvltX+pd2x6NusWpzGKAwB+xZtlTbnryTv+TwU5ExXyUg==","signatures":[{"sig":"MEYCIQDTGa7b1cPNkXqShy5grcsZZ88Em1hgOAWYd2QutSOTJwIhALxVp96YZopfm2yEwJb1tDMktR9q/mCZH+yQb0hrVHG+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSDdXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrunw//QG+Rf3upZ1AhD43t/NVaneywrC88XIuUT4WNPXF64bbJu2J6\r\nOFmmeVAzGxevng2LuPteHK7eFQMZKTaArUOAnMSnKRRVFjJPxIxUeq2ZuL3n\r\ntX2pjuR3QKRAfD45WJUSY/B4HuYoGdjSSe4X6HVfp+t3LDrpMxg0n+pw9Fyh\r\nM93yhWY99QRBDln407lY0CEuTyKSCH3ey5i2uBFTR10iiX1Cy1XBSKXf4BCj\r\nIsY7VlkAkBSpJaxwjGGssf0lfPAejh5TO6TheW/CQIIvfkaxgtJQP7b1aAHT\r\nOgo04lw+QIXt6q8AEpkDajNnEbi5b7SOadS00IQqNaAebINSS6vjkRC36qoe\r\nIECMx52d2sgqvea/yY9U+PFm/ud0Lc01meQBYZowqYNG5wNG5Gt1smlcOi2N\r\nmwUPe886feNOWtmMCLxIjSr4/he49Brp/4DpJxWDrCykfqXxFBId8PDpJE3p\r\n79KIU8uXZWZJcazAvulRf8YNRMXaeWgKTPViM4Zr3dHkz9f9xo6l5+mdrBK1\r\nycJjTGI8EycBRsKMeVFHVuKMVkVEbzDQ/zs0jhie1yc/MaU/ZSmoUutxBPfb\r\nJOAQQfXAIQHhwrpQ5+7HKIx04HR5UBeTqck01HVF5mt27ZIJfSLQZTZpMA13\r\n70kN5+FxRPUpjGsfiyRX3+27MFIS2m8Ux7g=\r\n=9Jbq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.1-preview.274af2c","@microsoft/mgt-msal2-provider":"2.10.1-preview.274af2c","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.1-preview.274af2c_1682454359383_0.2562490200317482","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.c7bf047":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.c7bf047","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.c7bf047","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7c3b6c5baac85b303566311815996e05ced5b695","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.c7bf047.tgz","fileCount":17,"integrity":"sha512-CWHVdDbo2hwCFZdOfgHr8GI3uTL/ZDb+8zmnMlsVU/a2rvrgSCfhN4GICe2UJ6bm6OV2ph78G0uN4TKeonksRw==","signatures":[{"sig":"MEYCIQDg4wSe4SBxD/TsFgcWoCh+16kEC+edj0IY8NHXMlDyWgIhAIvq7bj2jekLxssaIH7naSJpai0NBtFANYrqLvObZ8Jj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTBT0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqslg//d9NSCx7pUxjoWi9D6VAf/F+YUGGpOmhP7EPb7kTR5IswL4wt\r\ndJQgqNZXSaOpt0zZKDgG+Dwm5whuRpn6AdTWaJhiiX5+tOh7uFMoXpkiV4KN\r\nzLUze3YCo2n+cGsnGN2qEi/98LGDikPHRt4JzTFt/BAN1Wz9mLVckim8uWkq\r\niZGWK1S6PUdHyn+cmsnY3xFfagx7Xpw5uVE03ueXpOerbqFkG5bfkU7N+Hvv\r\niAeRlAqRYJMJEoimKRyrc4iry42Ithv1SjqM83tnY57563MWqW3ki5UhovfG\r\n+xzeLwJK2duizFG68wgiFTjqKq6jF+1Bv1Y2FXjIw7oNEcZyC+U2RK4NMhMV\r\nVTEGF9Foh327u/X8eGnqENmCgU4dp+ZR+4pu1CwuKSY1OgvyiaInRUyADuDM\r\nJ718VQGCdBsvH3CPv3fcuM5+Hz/g/jyQOtiz7sCMnW4n21t2MAgRdKfm1K3R\r\nGooKyRa86MVUdpxiWiMvMnDHIZ0ZSvnZ9YqCizOTeoiZAVp3oVYqO09Ot9IP\r\nXKxmOyn0ShPzJf4e/HTa+clWGo+TQganidU8ma/f9YevyNW/NLzlUBQalcbY\r\nJhdECMCvhmYX89ggkZ792yaDh6aM/2/KEQ7x2UVXhUgrDZNQJtkp/I7cPULC\r\nwaPCXCmu6BPl4azD5XicVsx8UmqC8auIfaU=\r\n=dq1/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"c7bf047e66df6472fe63299fae5c381047466f90","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.c7bf047","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.c7bf047","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.c7bf047_1682707700506_0.8931205514771023","host":"s3://npm-registry-packages"}},"2.10.1-preview.6488705":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.1-preview.6488705","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.1-preview.6488705","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"3d8c3d424de502162bea6117e13dd620035be8ab","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.1-preview.6488705.tgz","fileCount":18,"integrity":"sha512-m4KhV3udAos2T5b82Yz9jrKjAD2s2G7twJGNtKdbv0H01ijTgsouy+DlQt1faY38QMfBCRnGy7l8qCQdgszykw==","signatures":[{"sig":"MEUCIQDQw0rTqPQLXF5KvveYKCZvUqMbbn1fa2wuhjig2TxXbwIgR6Bdhf/2QQNXnfH99NN6QSQjJUh33WwVc62kIeQky8I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTENWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoB6Q//VMoqYb+SSHvD57817k5rCiOY9/YnlD1n+hoBFEvKFvAYvBPe\r\nSCAh5JlQ81Km64HkSejAIzugBbtPOVRkna8Ld09qES96F1yqpAepvXMPcvbh\r\noS3MIzmLB/+9KQGxCbmHUAEDFGbyeaiVmGE2V15NSPcPyOJ012ig3focrWM9\r\nZqyIPiGbSy/wsW+SFJaVjHv6MGqAZoIBjJe5Fa+O65UN5aFovsFGdAiQpuBZ\r\nXX/6pYr3/2rv5zPbv3JWeHB6O+AEjhhCKSAr7CxWyXEgWsAR8fwHxK7weRJ4\r\no+DLFeUMnBuWwyBPQtWZCiVlL5V9vrFJecW8b9OhM/CHqX8Ht9P4R3ougpwh\r\ncXV9QvxZwkNOziip9PNqYG2A1wKaPuQUVSym4WPBMvOYg1tE421rEeVz49i8\r\nUhG7fblGkCNgtYMLLXD4ZFau+wgRb50YTigyw/9LpP6x8eA2PjvStkfneD+0\r\nt10SMjS7PLWx8oyxSTBxI2h7qx4GHRcqz2ZIxydfZ6tRjcHi6EwdXs08cWKX\r\nXQDYufwaJVmWz7E+iZFbNUtd6igwYyV50zoVCWv6EutJX3yTiyYw4E9Mty3Y\r\nlYrIWchwzb+EBG59I0NYdMM7EtmT5lTGtPAEPKhtq+SVHYEyN6BNYaM5pgOB\r\nyej138LmsFNgiPRokSUqe3ZROQqBBR9JysQ=\r\n=u9uu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.1-preview.6488705","@microsoft/mgt-msal2-provider":"2.10.1-preview.6488705","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.1-preview.6488705_1682719574797_0.949367612021307","host":"s3://npm-registry-packages"}},"2.10.1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"40af99413ee00da173747d73150ff4cb0dfc2451","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.1.tgz","fileCount":18,"integrity":"sha512-l1BrF5jtwi6BMSFjaMu9lpuJ8KKoNDPp/vdBFDaF8ZeY9ovlW92fFTZ1wQ2DmDsyitPreHBiqzRJHb+FCscjdg==","signatures":[{"sig":"MEQCIHPjn99j3+S435/P9X+IARNOYyhOyO7Jg/amalqbjYngAiAXyPBtlKH9HXQlUjusvV7y1XKNvuzlPIZ1rSKac+F7XA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkT8pEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2hA//e9w1J36D+fI9wCGJaK+ByrchWAOLmtOOxjT4dOXrQdRpva8h\r\nJqghWEdC3hMT7EicLh/1tarcwQMLpOR4Zr81T/kYYAg0YBLZXI/dulg3o8fQ\r\nRKdtFbPKSHCJNbliC1mckjN0qMzDzcjdfOEc/bakHqMU+79XNijmWOEZa7xX\r\ng/vuiNG+rJ643JrWldkT79bds50BL3JC6Tgps05x5VLImAL11UAOvbtrez/D\r\n19Q6urjqhjc9WW5dh/Z5X2iMb2hzzqMfzFK9U4AE5deohclCkRbhXvL+Tidd\r\nISshsEegAuBW/cEQbiqUhIvtT0RyTjKFzFJ14Z1DYNgyb1hH3Js8czZy+rMG\r\n72d11a82szYLsgEQqja5NlsfUPVNYbOqPDdmyPSPGBASyyXc6xqLYc+AOt87\r\n1xqyZd5tdYGh3A/o7sZMM200bTIV8L47UP9ZVzkGljkAnOrPrg9EQdQ0lyvU\r\n976pe9hsZU3FAQYkPKLMjNaHjQNKnasbrttaWPq7om87bwu3ItKDKOyio/8m\r\nBVmMmVtDLY7ttpWR6NqfaC9EkXintqHlpDF5sA9mCfDNb289rpDSYHix5rZr\r\nGUIwnuEkRF6O7+VPyrVSRDP2wAudPltuzSH3dNQ33NoF+Z9ul1c5KI1JJyFR\r\nZV9I/l5EAL7u7VzSPO+PHdEfPOaiY3YCKMo=\r\n=H3bX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.1","@microsoft/mgt-msal2-provider":"2.10.1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.1_1682950723824_0.9609271981448293","host":"s3://npm-registry-packages"}},"2.10.2-preview.3c4d620":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.2-preview.3c4d620","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.2-preview.3c4d620","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"89c3ef5420e868315d5ba223c5e76d5bf12b1d73","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.2-preview.3c4d620.tgz","fileCount":18,"integrity":"sha512-lr6hjL0PYfcJNFfag5X6sudLAfv4hRvZpsBbGJmhoEmHQFMcWSqKmEtxbA8BCQOammL1pGYgttARlww4EYu3KA==","signatures":[{"sig":"MEQCIFD0vgMjWbdkgg7f8cBrAdPznUDHAsuWSaY+ZN2o0jicAiASHNdBSX3yeVKJCvrJMBF2aVg1hiCMHphlN6hkXBsEHA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":198520},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.2-preview.3c4d620","@microsoft/mgt-msal2-provider":"2.10.2-preview.3c4d620","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.2-preview.3c4d620_1683043548618_0.987441934807463","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.87e6c2f":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.87e6c2f","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.87e6c2f","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"8ea2ab47157e9939ee0f65cc01fe1699710c5fee","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.87e6c2f.tgz","fileCount":17,"integrity":"sha512-h2yQGHhxa8+cBwW/dHd53RmhgOpsJQoOmxyos4Qimi8J2eSksCPodUAPpOlL8UkG2ToxZwJIs63pv5A/bEtbOQ==","signatures":[{"sig":"MEUCIAHSZKxjOQ5EYrF9HWtcbHs0whBsFSkfXgwzZtDU5CZHAiEA4qI9DpY88on8KSggqCnQsWbZqcx9QYQPWaXFJm8935I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUV8KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2UxAAnTCQ1pU4vgCto8q5fDV8vkezudcBKpLu16PU5n+F3bA0GtSh\r\n5LYNai1wMLUf2AuLEG/AdZAe6ZPqZRTLDErQ5jnpXkvl3tCimuuc+4tLPCvk\r\nycD0iW2uidy4f+kzbdHTTXIop52SqVcd8zj0nmWc+VDPfkbZwKzvNFwWRtxU\r\ntyXwBzmgsFHIQiTIMiM2wBjc7hTtdUm49h0apF+ZqLV3fSJh6Lj16SZYD8ta\r\nzCDLtrXPadhsYi0TWfbMTHXp/ZOI0mPUxr3lonnu+YrNqUyI53KTqrdxeWAn\r\ndv56bD2K9tehWg0OH4xSePZwL3ZG8XauC+B7xh9l58ff7F01CWegxmvrzAu0\r\nNcP+/V97+oRi7kLl0BikaiuC+1uLpTWAbSdohdJKJCVDfriKqeodlDQzq40e\r\nbEgiYBLxt/8TCkocgE8x+iQ0ga7xH/dRgNz0pLAngB5NaAFm1FOVWOfZTUvi\r\nXKD5dCItzBe/bTH3kxbJbVMXig7oh7TS1BocmIIY5w1k6xyuDtlv/DcV2QV5\r\nc/6tBcY/PcVj1EeAOicrlIKTeorf9lNQMKZCeXz1KZc01Vy1+e/HcDSXaYhN\r\nDLveNPjYm2wqrTMJQjAnQsG4NaWSxM/SwoPqvYLTy1iqHEAF9aYAn+6IXKpv\r\nyU+RyXv/G001h0Xij2e64TkwiSebuTtVA78=\r\n=uOgV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"87e6c2f35a9916d26803f3772adc9647670c26fb","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.87e6c2f","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.87e6c2f","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.87e6c2f_1683054346028_0.528474270359109","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.f7f90d6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.f7f90d6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.f7f90d6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"72a02c20e933f08ef4ff817b69cd2824574e67a7","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.f7f90d6.tgz","fileCount":17,"integrity":"sha512-yPlTssdp29CBJ2hLL1yCzWIiZuAujdTHdscApWASITaf1adBJjBl0g47Jm0lecEuLxMUyK5yCkoKPABgt8/YVg==","signatures":[{"sig":"MEQCIFfU3tdhCf00GqOvIlHw6C/qphiEpvlTCJOCOwNScffxAiBFPPp8KSpWV80SIrro4QdQHky/IdgypbgvTvBvbJgO3g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUhogACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoG2xAAi9y4q7Yxn21A2a055hZGxwVnTvYsQMEYjm7358Vg5oQwcEDJ\r\nNgYJFrOcvZTYAk25Uw/noW1B1TvjOX+Yac3y/athOfHNBgL1VxcO6oDpCF5Z\r\n35MpLYSSvBe9HRpdow0hiVTvLj5CO5k6n7hCcqWm18x8pRBbkcBcydTa2wBP\r\nYPzHcXgSYSoHAZfOjOgqAxjbzvyKZ9TyX+xTsvp7X/etoaSL762h/B80l9v2\r\nk2r8Gu7dIe8MrSTLCEBDuuOhSl+zc7qEwgwE269qJpP1WBq3I3WwMNDT9rPT\r\nwLcFCw1RuwbdIW/cRJ7XhWFHnHa9MWBTzlnuYW8Ed7hzn6lmwXlKwo4HJXe+\r\n0dO9s2HjjmJhviHAcDD1u5bA9HkkqDipqJ4Dd5XeKrsnQSZIQn7oA+9EOL0n\r\n5yc7pUZUaLVdQSYy5uSMW+U8oBNhERks50RW1RIF5xYp4rx5REN0MyOcnt3k\r\ndpNFLKFkgVYwfq9PU2Ka0lKUZbW/Z2bWeIxuxUgWp6ZrV25/8Ir1XXDe70tt\r\nTktbJHEtAQ/xQXoMNQnrlPPXTGIccHAgZXqC4UcgpW1dbuwBT5p9DA1ATFvB\r\ntHa+aKM/0/z0tdl7/RwH/TOK9eHWYlzXyY4zCxNBqS/UDc/jEbHWU7vx4RXK\r\nnpS42dhyPH/HCigDHGF1o62HuQY4IabpOis=\r\n=3NW5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"f7f90d6fc89cdfd92dfc07c8fcbfdf6222c65121","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.f7f90d6","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.f7f90d6","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.f7f90d6_1683102239906_0.8754965780079771","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.4863995":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.4863995","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.4863995","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"85bf4b73e6cbf6f4b7ffc5e108746f7ed7a6316b","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.4863995.tgz","fileCount":17,"integrity":"sha512-XiJ86zSbu+J48nY3sBXQd2tP+Nxg39bYJvkjNfTo7bTySin/610wx90/JezIDMrS/7yKCI3HDSz1PxzczotVEw==","signatures":[{"sig":"MEQCIHAe2QxyvnNevquYxzUSbQRqRKfYEmg9b7y+tVjSteDAAiAq6/3x7a6WQ0xKb+LeTg1W0+gceD2qlMdt5w8APV/sYQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUm02ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBew//TmIYBu60KsLOLNRRTFwy/R6PZWr1SxIDzcrr7FT6owuSmHQP\r\nXc7uVVEqiAR70LY8loDIWjqS/zlkEvh2cwzWFcdZVfTYDmgs2rW4+bMUxT6g\r\ndTYJRmJuZ5xFQ+Q9RSL56Ugr5ZaL5zNh0Oylh+HjyDnFQl/YA87JYBZ17hLy\r\n2pBrLSHmpokKy1VSNF+mHwofYccjBbx8nRbxF6bY5DtG5ZHHFzM9YOzMPCVu\r\nyinbTkB6KFmd/m7/oWSDqOwrYRyRC0T9rQUY91d9mCXUVMrSrVIuUWUakljt\r\newz7ZeLfg482UcUML7R9xSNdh7JSpRKnJJQl+15k2J/IV094gY2Uz3uUG2IP\r\n+9BJnBaa9parzpTf158YAKxtk9c/UMN/uUNXdrxoGChkqIO46j+D7jo6Fitl\r\nSmQILneRW531Kg5ggKDjn//dwKw/Uf6EmGKoqu2UwXo1ZPknNxaz55AdLs2P\r\nE9tvS0YqGG7dIvALs4EZ3mfNM3oy0ulaoVYxfzLckV6l0Z2JjOz1roKAodz9\r\nQ60eqaUFUd1LeNfWPkpgu7xWBsPCSMRu0e/pGlaiAvYLWQC9tR5qtl8IySlE\r\nImSaMthycskhIGh5AWHrDl3OvkQvH1WQL+seermkdR4CYLf/Q1OIWD9MGGHY\r\nOPZ5AlMStolEdqiS+K+OcXo7LGO6PdXO4ks=\r\n=X3Ar\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"486399521951a9cb27161c94974c694237d5e4ee","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.4863995","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.4863995","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.4863995_1683123510568_0.8111610741337607","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.1c9face":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.1c9face","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.1c9face","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"10d470e92f065b7e8ac04cd8bf12164911714a95","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.1c9face.tgz","fileCount":17,"integrity":"sha512-kf6fFwLd6pdedX/JOxPIJ0E+P88EfsWgOh24L5FjfMBSDgwl3jP2qbhyzbiJCmAFfZM9lKalgkciqIUX0/UimA==","signatures":[{"sig":"MEUCIQCelQEzRO/zFKBAvNdaMBYlxD3GM4CXGFZ/hus1L2/jDAIgQK5qp0tlDcMSeVEV2QWjBoKrhOOr3Nkqu7X87be1+tA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUon/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpu9hAAnEz+labOZJSRzryA/HMQAASjEEJ978iJphskbmKEtsYHMxsP\r\n1o9+mx7UFuQxy1COI5NX89kpm5Eba+RuTwFXhADm+f7b2boum2GV1FgytoiW\r\nabAplJ1n0oitEfEV2DSQ5ajoGc331iFY8AbZc92KGjXQ6nPMuAYI2f5nZqoG\r\nkgho8Vby06Kg3s3SMhebTZylP7Rrbrm/xFm0A9PE+Mb9QT0Y4nd80Uxima+M\r\nGZoUTLK70iKiRZTClY9itIuJrcJWqnNA/GkI/tWpSeJ4q7V/djYWYwViu4xI\r\nQ2ve+6zhwxxScMzsw0OCcmQskiST4XHTaZ5Zb+7fKLQi/blTk8MILIR2+qCo\r\nwyOJW+KkcQkBrRr5dO/twsNqE6CtYCgAs5S9qURmKyW5RcyJGEMaHL2OJhM6\r\nQZkaeAW4SGqlGzNql8gIndo0FdkVhGu3SAroH/0ramzyuHZ6qrVS+85Dq8tT\r\nHMRs6Zdve8iV7+U0cYlX7bXqEDngjE1uQDNkViCAz6YzEavrQD9dXZAp0mxQ\r\nwdGSxzBOCzXI8t5HUysjOY5v3qgQc+4iReZwQ6TUMF1zBuzCfVXqv3f8pPSn\r\n4Ns32YNgfemaQLVibKsuCxCIJcJqVqE1CPTIcz3CFgegBP80qx3lD+eCf0fl\r\nb5n5oqK/fmtNf2km6BeL92sumrOLNEW1BhQ=\r\n=pqWn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"1c9facefa15720a3cc73fe2482cd7c9fee9c296e","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.1c9face","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.1c9face","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.1c9face_1683130879487_0.8108313622187295","host":"s3://npm-registry-packages"}},"2.10.2-preview.7b701d0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.2-preview.7b701d0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.2-preview.7b701d0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d0fb8ba8b6926d64046d88c090ed963abf7c14b4","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.2-preview.7b701d0.tgz","fileCount":18,"integrity":"sha512-nlsD+q036l1elRyM0eoeRqrhgN0/bGWPmOOKkJ5pyN3dIn0fzTzKuI2vkoVxAIQix+L/vgixNZes0Npn5lvbfw==","signatures":[{"sig":"MEQCIAaRQiTCp87EAXQT6oQtDGNs5HyJLc4NOWBJJD2grWLWAiBZzzYj8JpkJ8Rwav1qU44c3QjsMGOedf18n6WN8w9ENg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":199077},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.2-preview.7b701d0","@microsoft/mgt-msal2-provider":"2.10.2-preview.7b701d0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.2-preview.7b701d0_1683534641767_0.9841333088996354","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.5a03007":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.5a03007","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.5a03007","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"5b8b4c5a2b620fe5ca13363949584e19cea337f6","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.5a03007.tgz","fileCount":17,"integrity":"sha512-Y8WN64yrXCNq3bkeJ21GNO/tdYV5eqRUTNVe+cf4nfW26ywjdrrXye5BH2ysD4nmXnNvcbOe1C1HvfOpT2bwCw==","signatures":[{"sig":"MEUCIQDrnkjd8D3+5IWaWGx17gVgeuPPlEwAm0QJwrfGic4FfQIgDVgevwdvXNW8L1Iz2W+rC1MM89gSpLr66TYtK0vItOI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98064},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"5a030075382d91ab1da9e8f52fca386554384c2c","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.5a03007","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.5a03007","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.5a03007_1683554717346_0.67789228028869","host":"s3://npm-registry-packages"}},"2.10.2-preview.d27858c":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.2-preview.d27858c","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.2-preview.d27858c","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"4f5b8ae7cb0b4d558b536eeb892100d4493c4949","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.2-preview.d27858c.tgz","fileCount":18,"integrity":"sha512-NDeln+lbwPsIZxvl95soyrYivWYspNEk+SGbOuu7EGCPgFIzILkYkXavWhRLQTTPGJTdCyfDBH09GjrqRs1mHQ==","signatures":[{"sig":"MEYCIQCO79FR8rZhkXxqXKJp5pOIZDmjGehj9ugOza5y4ZtqnAIhALhiL7Ynd2V9okuai+zhPfeaY2SYe4pbT7/e59IsmaBp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":199077},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.2-preview.d27858c","@microsoft/mgt-msal2-provider":"2.10.2-preview.d27858c","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.2-preview.d27858c_1683643408571_0.5113955469320774","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.3677936":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.3677936","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.3677936","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7aaad9e9165a44ccbfeda0d80cd1359b756cfe76","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.3677936.tgz","fileCount":17,"integrity":"sha512-7zLHqA8qEUHG43gP04DOgJbvWMo23Lg416sRRHMuS0gVST7DdAtQi4vllATXWsUZqTrShIb32wR4qWcsyjJoTg==","signatures":[{"sig":"MEQCIA8vh6v26MneKCyMokMuD6xBovaSmzD2oMRAlkoFOIuoAiAvQLsYJO4j+LXTa83NKw1lMDg5g98n2VQOARjA4+RK4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98950},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph. \n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teams-provider/dist/es6/index.js\" />\n\n    <mgt-teams-msal2-provider client-id=\"<YOUR_CLIENT_ID>\"\n                        auth-popup-url=\"/AUTH-PATH\"\n                        scopes=\"user.read,people.read...\" \n                        authority=\"\"\n                        sso-url=\"/api/token\" \n                        http-method=\"POST\">\n                        ></mgt-teams-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"3677936e82c44cb59b7846fe2902da63b12ddea4","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.3677936","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.3677936","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.3677936_1683651286005_0.4744714309779512","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fluentui.4e3d898":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fluentui.4e3d898","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fluentui.4e3d898","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"62c82029361695638d78d90307781cf22746127a","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fluentui.4e3d898.tgz","fileCount":17,"integrity":"sha512-Ce8tBu1xP/Rnx7bMoDoNGmee2ddXTsGxQDCXEvNFjl/TtFUcz5cAw0HfK13+263ij2U51z8Q+Oau6C/MY6o3tQ==","signatures":[{"sig":"MEQCIE4JXha8pFpb/x8VQTVTq4t9gHk7ZWHwrXPZ62I11WANAiAzOZDofYehsxTC5JWOwZChtBIqH7t2OVnNZ6XNl1mUyQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99507},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"4e3d89816c8c93d3bbcb784bc060906b2a3f5517","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fluentui.4e3d898","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fluentui.4e3d898","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fluentui.4e3d898_1683656667098_0.8535956317510831","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.15a0fdb":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.15a0fdb","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.15a0fdb","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"7144fc87fd7dd407de8c19692b7d9b46eb666cd5","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.15a0fdb.tgz","fileCount":17,"integrity":"sha512-ElTpZhqaS5eii3urZRoXv/IV/y4OajEA/1gMsvDiLx76eWRQFtBs15lD7G09kdTIuwL9sHbrwu1ziLgXThL6cQ==","signatures":[{"sig":"MEUCIEWL568nT+1phY5OIbGTQXJlYM0CF3gv6t59rNiiKef9AiEA1ADqektjECwG2VLdI78JVaapDeREcm1MkHVz3JQN0Y0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98621},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"15a0fdb1f2f9f53189c5c2bd0bd2145478b3c17b","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.15a0fdb","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.15a0fdb","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.15a0fdb_1683666236889_0.5257848250597288","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.656f294":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.656f294","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.656f294","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"cdc7ec85d988564603a0b6e34a6e3059238494cc","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.656f294.tgz","fileCount":17,"integrity":"sha512-4RQDU9GKOU0M4hp0qhyu79riw3Y4kVl29ehn/J93QBoXhxgBmyDSR8gvQVnzphlXtq/6aQQrSG47pZGH18aV3A==","signatures":[{"sig":"MEUCIQD1U0LAk5dsNa8KGarqGtNbz86PzGfHIUV3aWjanXxZugIgTqN2ZqUSwE+CLka6HC5ElPB3tGnYo4D9o/n0lLHnVOc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99507},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"656f294f14b6db0cf402c596f703bb64e031df29","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.656f294","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.656f294","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.656f294_1683668334899_0.07171645138410021","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.fix-grid.a34c8fc":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.fix-grid.a34c8fc","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.fix-grid.a34c8fc","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"1ea185177f3db26ba1987c1ccfe08341e7b2c0be","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.fix-grid.a34c8fc.tgz","fileCount":17,"integrity":"sha512-10a7FlVFdN+MANrJCnk2TJDtH1oLPluyqhXzYc3ZlhN9MqWVrzfCrq0qOsa8uMor8oqlBye1PCM+d7vKP5Y8Nw==","signatures":[{"sig":"MEQCIGrzAytuYiz110I4+dX/1OJnnxeObmLkcEDbS0SifRYsAiBnfvxV9pC81ZUeqjXW13ts5g6NzcVIOoMBp/zyvs/xjg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99507},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"a34c8fc03ce094835c99488346e4a71b8556be1f","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.fix-grid.a34c8fc","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.fix-grid.a34c8fc","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.fix-grid.a34c8fc_1683670420502_0.10792191702426823","host":"s3://npm-registry-packages"}},"3.0.0-preview.2-next.fluentui.5dd2cad":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.2-next.fluentui.5dd2cad","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.2-next.fluentui.5dd2cad","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"9b80c7bb1e7ee3c993c34a8634f685f73489677d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.2-next.fluentui.5dd2cad.tgz","fileCount":17,"integrity":"sha512-V8mKCNv56KyAP7g0cl7qi30P/f/pZdxxEEVqfz9lRPjKFiZBPgwcddLpDvcSiAuQcSg9yPElyHgyG2fjnxVzxA==","signatures":[{"sig":"MEUCIB/a1rZ+QF780LBa2bEc2VaFhizgRDX8larhZwlD4peEAiEAmSKuFgfmQX7J7EPmf25KPOdntddDRA/d+CpbePZauw4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99506},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"5dd2cadd1d985b1b88d3bfe7fea5596e2636e1e9","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.2-next.fluentui.5dd2cad","@microsoft/mgt-msal2-provider":"3.0.0-preview.2-next.fluentui.5dd2cad","@microsoft/microsoft-graph-client":"3.0.2"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.2-next.fluentui.5dd2cad_1683670679954_0.7833873575582966","host":"s3://npm-registry-packages"}},"3.0.0-preview.2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"480a7ae66554209de9def3e80772546ec79d8952","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.2.tgz","fileCount":17,"integrity":"sha512-6axKpduvLYwAWfEhDBG2tv23YP2IPN+D/Y09UZhZoaeM8FMhCLbAj4hrD/uw+Ani9OtyOroXE3bzY0vKDhgYmw==","signatures":[{"sig":"MEUCIQDLHpz70gw8TYZmGLfYZLqMQCmKyKhfWpvuaFAi4NOHVgIgfm1OeyeGagOTrpmEBPMc0uJnUIe4NEm0pq9QfG10XBY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99440},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"5dd2cadd1d985b1b88d3bfe7fea5596e2636e1e9","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.2","@microsoft/mgt-msal2-provider":"3.0.0-preview.2","@microsoft/microsoft-graph-client":"3.0.2"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.2_1683671328532_0.44574854068311187","host":"s3://npm-registry-packages"}},"3.0.0-preview.1-next.mgt-chat.6a93d6b":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.1-next.mgt-chat.6a93d6b","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.1-next.mgt-chat.6a93d6b","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"983fc095789f923dd21f94d842d2b1cd265ed4ce","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.1-next.mgt-chat.6a93d6b.tgz","fileCount":17,"integrity":"sha512-i8dU54hDWn/B9xPZSt2hY89RR+2XD0e9AtZafXIyPTbSOR4siMHy7vAMQGT0plT9RKaUJNorZi8FNBLDz6ioRA==","signatures":[{"sig":"MEYCIQDKr7GKfebgu1LDZKL36lnaZIIq9tw4r2vgSCrPzheubwIhAOD3glqebUmV3uIRv0WK7Lijrc5qLExHWNjBhiYHyqWF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98621},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"6a93d6b4cf8261728a3100917c546c2e86f8b53e","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.1-next.mgt-chat.6a93d6b","@microsoft/mgt-msal2-provider":"3.0.0-preview.1-next.mgt-chat.6a93d6b","@microsoft/microsoft-graph-client":"^3.0.0"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.1-next.mgt-chat.6a93d6b_1683734004546_0.22146507070337718","host":"s3://npm-registry-packages"}},"3.0.0-preview.2-next.fluentui.ab2ddda":{"name":"@microsoft/mgt-teams-msal2-provider","version":"3.0.0-preview.2-next.fluentui.ab2ddda","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@3.0.0-preview.2-next.fluentui.ab2ddda","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"37899335a8ab06eaa1f94c7e6405573be310a9f3","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-3.0.0-preview.2-next.fluentui.ab2ddda.tgz","fileCount":17,"integrity":"sha512-q0AdCuZty4tRttTLdI/CIoUhVfH5b+kY9uuQf6pEALeDninOSH46CvhrI+W0HA2rEhUv3P6kj0NtxjKbMCHznA==","signatures":[{"sig":"MEUCIDglu3dXkbB9YMFdwv7Hq924pto/Bf6J9mZMbsgBIGcjAiEAksz2UIbhe+WTHoOLwNx+4yI+LLREtskYsEfG/e/V11g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99506},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","gitHead":"ab2dddae2f1dbbf7aff12a80b693b537047f31f1","scripts":{"lint":"eslint -c ../../../.eslintrc.js 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"8.19.4","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"16.20.0","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"3.0.0-preview.2-next.fluentui.ab2ddda","@microsoft/mgt-msal2-provider":"3.0.0-preview.2-next.fluentui.ab2ddda","@microsoft/microsoft-graph-client":"3.0.2"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_3.0.0-preview.2-next.fluentui.ab2ddda_1684232959563_0.2163507416771393","host":"s3://npm-registry-packages"}},"2.10.2-preview.071f3d5":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.2-preview.071f3d5","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.2-preview.071f3d5","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"6046e73f2c340fa8632e4e773b3c0b5c0628fa41","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.2-preview.071f3d5.tgz","fileCount":18,"integrity":"sha512-4MZljBZgim4z1qfV1bQayhPDZpf6t6TG8yv4MbySHj33Q1Pguszawr1VUsciCiU0YkrIu9+/oc1svnOixZlvvQ==","signatures":[{"sig":"MEUCIQDANZjPrvLNY2l3/1A0RqEiqgASipetCtU6FGbhCBBWhAIgRajbVT2oeQGXlHh/6TebztETZiKy8JW2B4A435T4O2M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200072},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.2-preview.071f3d5","@microsoft/mgt-msal2-provider":"2.10.2-preview.071f3d5","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.2-preview.071f3d5_1684752830560_0.8221428452696842","host":"s3://npm-registry-packages"}},"2.10.2-preview.9f8953a":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.2-preview.9f8953a","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.2-preview.9f8953a","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"abb420b109581b9e7cb92e4e0cdcae19d9cb4ce7","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.2-preview.9f8953a.tgz","fileCount":18,"integrity":"sha512-PX5z5q4aIiNZ2FT1VoquZwQVbkl3QJountMdRB/SXBrixh5szg2hloC9ioMErDrTd5NzOOL1Y5VVY5FWg2NUGA==","signatures":[{"sig":"MEUCICN61QmQDsXM+lQBbNemfhXFWl3dXOh8rjiDRSwjKAH3AiEAp3b3ID1Pr7IksVSTDc2b69KW/v7jbId5jkKeCKKIzTY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200072},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.2-preview.9f8953a","@microsoft/mgt-msal2-provider":"2.10.2-preview.9f8953a","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.2-preview.9f8953a_1685094061727_0.14045633864120655","host":"s3://npm-registry-packages"}},"2.10.2-preview.b095694":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.10.2-preview.b095694","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.10.2-preview.b095694","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"d1d3db61cdae9d899ef9efb7821d08cf4282c737","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.10.2-preview.b095694.tgz","fileCount":18,"integrity":"sha512-arD82AiYksQhfBMms/lAc66D6FjU0UzHt9aa1n2xyxyWgk3rxSSfmywQH8JXHT/jSUcVcHQstsV32720lUcGew==","signatures":[{"sig":"MEUCIAqdLWa8BLr5xSHE6596Ow+O5RiHcVlv09ouc7s/B0gNAiEApHKm95FDpGMxnVMtnnKw3zhFcXNeK9c7FVHb7OsMtJE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200072},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.10.2-preview.b095694","@microsoft/mgt-msal2-provider":"2.10.2-preview.b095694","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.10.2-preview.b095694_1685635295726_0.6334522380534928","host":"s3://npm-registry-packages"}},"2.11.0-preview.a8902ac":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.11.0-preview.a8902ac","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.11.0-preview.a8902ac","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"face3f860a85e1b3677577825bce845d63c455c2","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.11.0-preview.a8902ac.tgz","fileCount":18,"integrity":"sha512-T8d+7sj3dHtaXnk6jBgFUBZuEABykMaYSTYoFfvtD9O9rrRFdWH0wDp/62bcaU6I831cROAJpoqxwtW1TjePlw==","signatures":[{"sig":"MEQCIHKtgSEdsL2KqSaXfRqJejng/srSDcYb89ueATUIjOT8AiAsJoMgUEGSIvInHN3vegqwCpUy1AYlVh1XWp/1xZFskQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200072},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.11.0-preview.a8902ac","@microsoft/mgt-msal2-provider":"2.11.0-preview.a8902ac","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.11.0-preview.a8902ac_1685643126130_0.05398162815014618","host":"s3://npm-registry-packages"}},"2.11.0":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.11.0","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.11.0","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"b00207ab897c289d8be053db79421a3abc2a837e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.11.0.tgz","fileCount":18,"integrity":"sha512-6fgLePSabvCqCV1scriYBLbphAif6xQD7NdU5yFm90xNhrLEXy1UZSPUG55E9cFk6zR+RsxHYMS549jVnCLAuw==","signatures":[{"sig":"MEYCIQDDbHysHt7dHMXnSjogpmhsjU1TpcuDb8AExRAAa3iY4AIhALyi+oIqWWnkU1zeHHxpazJ/UMj6U3JuEhVvbmdu1I65","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200024},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.11.0","@microsoft/mgt-msal2-provider":"2.11.0","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.11.0_1685644417328_0.9643212808088895","host":"s3://npm-registry-packages"}},"2.11.1-preview.4025f6f":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.11.1-preview.4025f6f","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.11.1-preview.4025f6f","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"74ff309a87941b09195bef57a5a570674581ec86","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.11.1-preview.4025f6f.tgz","fileCount":18,"integrity":"sha512-xIizXjptW4ZYSsGEqdcxstWafyd1zrfKvyRry0YmkPtlTmYsTEZX+WnAEugR8D1UBWucEwkJLHEQ393Cg+keog==","signatures":[{"sig":"MEUCICswYdtfLqkieNVqhBCCpUye1gZs7rrzhsVk0p7J6OiQAiEAqo+Vgpse+en8D+4f8ERgSAy7UN2Wxbd7ctw4vhsY9GU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200072},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.11.1-preview.4025f6f","@microsoft/mgt-msal2-provider":"2.11.1-preview.4025f6f","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.11.1-preview.4025f6f_1685725720237_0.47564231771748244","host":"s3://npm-registry-packages"}},"2.11.1":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.11.1","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.11.1","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"f34470b1637afe909f67bf79959b70a2e2f79941","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.11.1.tgz","fileCount":18,"integrity":"sha512-zLygneIfUXtCGH+/KDe42sQVF99Ynxi6+jv3fKIdssacUd6L95qmfLhG/Z9wBMZsvEqvxUo7gwRjzEZXVAfMBA==","signatures":[{"sig":"MEYCIQCfLdA8rQYtehw6FZ69RAd1+590xVTQiDshTmUbJYO96AIhALYqgpsEn/K2BFiAoCL+uDyvu1FeFPzHNeUYjobiLA+j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200024},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.11.1","@microsoft/mgt-msal2-provider":"2.11.1","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.11.1_1685726766908_0.5613096979227807","host":"s3://npm-registry-packages"}},"2.11.1-preview.00b68e6":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.11.1-preview.00b68e6","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.11.1-preview.00b68e6","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"aaf5198dddd0506a260247447afee35bd50b6308","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.11.1-preview.00b68e6.tgz","fileCount":18,"integrity":"sha512-if8NU1lbVr1bTl4OVmcfPDH+NxVaqbOnLV8+vMzhhVIcZ+aLOX8SdPlGPXDmLKphsBZWzBZD/L3/LU5LUouMLA==","signatures":[{"sig":"MEYCIQCnLnLD3oRxknt3M73m4BtKS4ICxvxPEZx8KprJvXT9bQIhAOTpKVjROpY05OqH6/yPaD9raoWpqf9D4OM3zTktnisI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200072},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.11.1-preview.00b68e6","@microsoft/mgt-msal2-provider":"2.11.1-preview.00b68e6","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.11.1-preview.00b68e6_1686061684650_0.39489554947922256","host":"s3://npm-registry-packages"}},"2.11.2-preview.4dac3ba":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.11.2-preview.4dac3ba","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.11.2-preview.4dac3ba","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"85edafec14149adba33d6c6e2d2c04525717df5d","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.11.2-preview.4dac3ba.tgz","fileCount":18,"integrity":"sha512-C2JIpxOAZ2lZwVLOR2CPiu8rYMx1xUATx4+GRT0E8s2qY/5Xqb+MA3n6AIN0HOPGv//33RdmYlQopkmxhtLRkA==","signatures":[{"sig":"MEYCIQCDXJBiA6iHKGQ4toCbokuP5rFZc0CJR29AobWjl14ADQIhAJEGQRIxkjEcqsbxw99hn06xCY8N09xBCAhVnCOM48OJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200076},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.11.2-preview.4dac3ba","@microsoft/mgt-msal2-provider":"2.11.2-preview.4dac3ba","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.11.2-preview.4dac3ba_1687803756551_0.45116001058079935","host":"s3://npm-registry-packages"}},"2.11.2":{"name":"@microsoft/mgt-teams-msal2-provider","version":"2.11.2","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@microsoft/mgt-teams-msal2-provider@2.11.2","maintainers":[{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"dist":{"shasum":"5fbaea1ef226d06150ff29cc6355457a4ff5707e","tarball":"https://registry.npmjs.org/@microsoft/mgt-teams-msal2-provider/-/mgt-teams-msal2-provider-2.11.2.tgz","fileCount":18,"integrity":"sha512-GpR5OZSRxanOsIlXyXQuqMKMyzBbqMoR8UOkI6egcmr9VjdAuWPlpiRxOzJXd6StDoz7Py/DXxaPMCJrFUL94A==","signatures":[{"sig":"MEUCIBgy074kCvKYz+piYQ70EF5Hvyg71qS+okW/rGZedT16AiEA/Nw0RBVt5NR2QIcz0r7GXDkZ/Qb1vVpxYyjE3cO0WA8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200028},"main":"./dist/es6/index.js","types":"./dist/es6/index.d.ts","module":"./dist/es6/index.js","scripts":{"lint":"tslint -c ../../../tslint.json 'src/**/*.ts'","build":"npm run clean && npm run build:compile","clean":"shx rm -rf ./dist && shx rm -rf ./tsconfig.tsbuildinfo","compile":"tsc -b","postpack":"cpx *.tgz ../../../artifacts","build:watch":"npm run compile:watch","build:compile":"npm run compile","compile:watch":"tsc -w"},"_npmUser":{"name":"microsoft-graph-toolkit","email":"mgt-npm@microsoft.com"},"deprecated":"Please use @microsoft/mgt-teamsfx-provider instead","repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"_npmVersion":"6.14.18","description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","directories":{},"_nodeVersion":"14.21.3","dependencies":{"@azure/msal-browser":"^2.22.0","@microsoft/mgt-element":"2.11.2","@microsoft/mgt-msal2-provider":"2.11.2","@microsoft/microsoft-graph-client":"^2.2.1"},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mgt-teams-msal2-provider_2.11.2_1687804723912_0.8981062512729057","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-08-27T01:00:02.615Z","modified":"2026-07-16T15:45:45.211Z","2.3.0-preview.16b6ac0":"2021-08-27T01:00:03.886Z","2.3.0-preview.be732c6":"2021-08-27T16:58:00.984Z","2.3.0-preview.2385e24":"2021-08-30T21:07:49.720Z","2.3.0-preview.aaf6d02":"2021-09-01T19:23:41.524Z","2.3.0-preview.3877d84":"2021-09-01T21:23:13.284Z","3.0.0-next.fluentui.ea07a06":"2021-09-01T21:51:57.298Z","2.3.0":"2021-09-08T19:22:33.372Z","2.3.1-preview.8579fb6":"2021-09-08T19:44:28.347Z","2.3.1-preview.80de89a":"2021-09-14T16:44:14.673Z","3.0.0-next.fluentui.321e6fd":"2021-09-15T19:49:33.326Z","2.3.1-next.teamsfx.80de89a":"2021-09-15T20:07:43.766Z","2.3.1-preview.cc042b3":"2021-09-15T20:20:12.021Z","2.3.1-preview.4cea86c":"2021-09-15T21:32:31.766Z","2.3.1-preview.e68a1e6":"2021-09-21T17:03:30.062Z","2.3.1-preview.ebaf278":"2021-09-22T19:55:51.587Z","3.0.0-next.fluentui.51aa656":"2021-09-23T18:40:29.884Z","3.0.0-next.fluentui.e5e86bd":"2021-09-29T19:51:41.618Z","2.3.1-preview.c46de5d":"2021-10-07T00:28:38.129Z","2.3.1-preview.2193f2a":"2021-10-12T20:36:30.132Z","2.3.1-preview.d17a8f2":"2021-10-19T17:05:32.118Z","2.3.1-preview.1cd7291":"2021-10-21T16:17:58.030Z","2.3.1-next.groupTypeTest.5d84b38":"2021-10-21T17:42:28.135Z","3.0.0-next.fluentui.77e1b20":"2021-10-21T23:41:50.483Z","2.3.1-preview.ca31949":"2021-10-21T23:44:29.621Z","2.3.1-next.groupTypeTest.07d923a":"2021-10-21T23:44:59.743Z","2.3.1-preview.a25353a":"2021-10-28T16:39:21.136Z","3.0.0-next.fluentui.80494f5":"2021-11-02T16:56:56.980Z","2.3.1-preview.83d39ad":"2021-11-03T19:24:44.764Z","2.3.1-preview.d30ed97":"2021-11-04T15:15:35.619Z","2.3.1-preview.c34f024":"2021-11-04T15:17:23.609Z","2.3.1-preview.d92acdc":"2021-11-04T15:18:59.324Z","2.3.1-preview.7255a8e":"2021-11-04T15:31:15.175Z","2.3.1-preview.8f6b77e":"2021-11-04T15:32:25.244Z","2.3.1-preview.448db9a":"2021-11-04T15:34:27.919Z","2.3.1-preview.4e37983":"2021-11-04T15:56:30.894Z","2.3.1-next.groupTypeTest.e879764":"2021-11-04T15:59:43.623Z","2.3.1-preview.39c451e":"2021-11-04T16:09:19.652Z","3.0.0-next.fluentui.dc3193d":"2021-11-04T16:43:03.550Z","2.3.1-preview.ad6b37a":"2021-11-09T17:57:02.178Z","2.3.1-next.teamsfx.ad6b37a":"2021-11-15T22:01:11.910Z","2.3.1-next.teamsfx.a197188":"2021-11-15T22:29:13.471Z","2.3.1-preview.d7be81c":"2021-11-15T23:22:19.008Z","2.3.1-preview.9a3d2c5":"2021-11-18T23:39:29.047Z","2.3.1-preview.4c06fbb":"2021-11-19T19:58:04.088Z","2.3.1":"2021-11-19T20:01:44.568Z","2.3.2-preview.5526841":"2021-11-19T21:11:23.664Z","2.3.2-preview.4d255b9":"2021-11-23T17:46:20.239Z","2.3.2-next.teamsfx.7e81e81":"2021-11-26T16:12:44.592Z","2.3.2-next.teamsfx.58b042d":"2021-11-30T06:45:18.342Z","2.3.2-preview.fe9b274":"2021-12-01T16:11:36.869Z","2.3.2-preview.c3a8640":"2021-12-02T09:16:01.186Z","2.3.2-preview.021cf76":"2021-12-03T12:40:25.146Z","2.3.2-preview.28d74c8":"2021-12-07T14:39:08.319Z","2.3.2-preview.d9fd80d":"2021-12-07T17:37:03.791Z","2.3.2-preview.9601f9b":"2021-12-10T19:13:28.488Z","2.3.2-preview.43e9fcc":"2021-12-14T18:03:34.935Z","2.3.2-preview.4985b46":"2021-12-17T17:53:30.117Z","2.3.2-preview.644b051":"2021-12-17T18:08:17.604Z","2.3.2-next.teamsfx.54e0d43":"2021-12-30T15:17:57.103Z","2.3.2-next.teamsfx.4e8eb35":"2022-01-13T21:05:21.058Z","2.3.2-next.teamsfx.6f1c31e":"2022-01-17T16:31:56.045Z","2.3.2-preview.4568219":"2022-01-20T14:53:09.996Z","2.3.2-preview.d4facaf":"2022-01-20T16:04:00.039Z","2.3.2-preview.ec1a5bf":"2022-01-27T17:51:07.375Z","2.3.2-preview.95c8403":"2022-02-02T19:13:24.915Z","2.3.2-preview.0a4638a":"2022-02-02T21:17:08.541Z","2.3.2":"2022-02-04T16:29:19.439Z","2.3.2-next.teamsfx.f5fc7d2":"2022-02-09T22:51:57.044Z","2.3.3-preview.077f967":"2022-02-16T12:57:04.178Z","2.3.3-preview.65d69e8":"2022-02-16T16:56:20.532Z","2.3.3-preview.b8ef724":"2022-02-17T12:27:11.876Z","2.3.3-preview.d80c70d":"2022-02-21T11:23:33.179Z","2.3.3-preview.2476946":"2022-02-24T17:13:53.876Z","2.3.3-preview.e9be8b8":"2022-02-28T16:40:40.305Z","2.3.3-preview.ec0c375":"2022-02-28T16:58:06.142Z","2.3.3-preview.922affc":"2022-02-28T17:13:21.285Z","2.3.3-preview.74be0a1":"2022-03-01T18:45:22.722Z","2.3.3-preview.8cf1b74":"2022-03-03T17:55:50.562Z","2.3.3-preview.e9920ef":"2022-03-04T14:14:38.537Z","2.3.3-preview.ae546e2":"2022-03-04T16:16:05.144Z","2.3.3-preview.8217c1a":"2022-03-04T16:24:26.229Z","2.4.0":"2022-03-07T16:38:13.083Z","2.4.1-next.teamsfx.a559bcd":"2022-03-07T22:54:56.768Z","2.4.1-next.teamsfx.3511fba":"2022-03-08T16:53:35.605Z","2.4.1-preview.cad3584":"2022-03-14T17:02:17.346Z","2.4.1-next.teamsfx.053a600":"2022-03-16T11:45:07.874Z","2.4.1-preview.bb3ec27":"2022-04-25T08:38:19.966Z","2.4.1-next.teamsfx.c5a7f44":"2022-05-09T18:05:17.417Z","2.4.1-preview.6d73855":"2022-05-11T07:33:32.993Z","2.4.1-next.teamsfx.1552a26":"2022-05-11T17:05:09.756Z","2.4.1-preview.5709ebd":"2022-05-16T08:16:00.181Z","2.4.1-preview.3f6085a":"2022-05-16T11:35:58.795Z","2.4.1-preview.c1cd1af":"2022-05-16T12:25:43.906Z","2.4.1-preview.148aa7d":"2022-05-17T13:14:09.290Z","2.4.1-next.teamsfx.15637c7":"2022-05-17T19:58:11.321Z","2.4.1-preview.f78c398":"2022-05-19T07:19:10.229Z","2.4.1-preview.ef729c8":"2022-05-19T11:35:58.064Z","2.4.1-next.teamsfx.7b93d57":"2022-05-19T16:55:30.160Z","2.4.1-preview.30ec91b":"2022-05-19T18:00:20.010Z","2.4.1-preview.6c124f0":"2022-05-19T19:02:00.816Z","2.4.1-preview.26f8d31":"2022-05-19T19:24:58.181Z","2.4.1-preview.4936d97":"2022-05-19T20:10:43.399Z","2.4.1-next.teamsfx.7125261":"2022-05-19T20:13:04.151Z","2.4.1-preview.f33e416":"2022-05-20T13:25:42.819Z","2.4.1-next.teamsfx.5936a19":"2022-05-20T16:12:33.046Z","2.4.1-preview.6b037dc":"2022-05-20T16:22:59.513Z","2.5.0":"2022-05-20T16:52:12.274Z","2.5.1-preview.cf6141c":"2022-05-20T16:58:27.516Z","2.5.1-preview.dffa85d":"2022-05-23T11:29:44.645Z","2.4.1-next.teamsfx.8d56785":"2022-05-23T13:18:40.799Z","2.5.1":"2022-05-23T13:58:25.310Z","2.5.2-preview.d8554fb":"2022-05-24T09:42:50.080Z","2.5.2-preview.3b75893":"2022-05-24T11:19:59.750Z","2.5.2":"2022-05-24T13:58:05.518Z","2.5.3-preview.7e34648":"2022-05-26T07:17:47.332Z","2.5.3-preview.774b7f2":"2022-06-09T14:49:31.125Z","2.5.3-preview.600eaa6":"2022-06-13T17:01:07.067Z","2.5.3-preview.b339cab":"2022-06-20T13:59:01.745Z","2.5.3-preview.cd03a35":"2022-06-23T17:46:10.894Z","2.5.3-next.fluentui.fe24fe9":"2022-06-28T14:10:14.636Z","2.5.3-preview.c1307fe":"2022-06-30T18:24:31.904Z","2.5.3-preview.6b8ff09":"2022-07-04T16:05:39.641Z","2.5.3-preview.d26f83f":"2022-07-04T16:17:09.671Z","2.5.3-preview.40fc41e":"2022-07-13T10:21:08.099Z","2.5.3-preview.9a2fe66":"2022-07-14T10:41:08.082Z","2.5.3-preview.4877f5d":"2022-07-19T16:49:19.706Z","2.5.3-preview.884992a":"2022-07-20T13:15:18.065Z","2.6.0-preview.e984aed":"2022-07-20T16:14:30.879Z","2.6.0":"2022-07-20T16:16:58.169Z","2.6.1-preview.c46e418":"2022-07-20T22:55:47.956Z","2.6.1-next.fluent-deps.5690b07":"2022-07-29T16:27:14.930Z","2.6.1-preview.03eddcf":"2022-07-29T16:30:15.495Z","3.0.0-next.fluent-deps.4bc5741":"2022-07-29T19:15:34.757Z","3.0.0-next.fluentui.5063d12":"2022-08-01T21:21:04.213Z","2.6.1-preview.964204d":"2022-08-02T11:11:00.836Z","2.6.1-preview.32a71d6":"2022-08-04T18:41:39.671Z","3.0.0-next.fluentui.f570cf7":"2022-08-05T07:23:41.735Z","2.6.1-preview.be9c83e":"2022-08-05T17:31:32.407Z","3.0.0-next.login-design.005c735":"2022-08-16T18:33:36.603Z","3.0.0-next.login-design.7e06837":"2022-08-16T21:08:30.547Z","3.0.0-next.fluentui.4ad569b":"2022-08-16T21:15:34.271Z","3.0.0-next.login-design.8a19bd7":"2022-08-22T23:23:59.615Z","3.0.0-next.login-design.c873cc8":"2022-08-23T00:34:51.713Z","3.0.0-next.login-design.06300ed":"2022-08-23T17:14:19.611Z","3.0.0-next.login-design.f35bb03":"2022-08-23T17:55:49.271Z","2.6.1-preview.5606784":"2022-08-23T21:21:54.234Z","3.0.0-next.lit-element-update.c752368":"2022-08-25T15:38:41.942Z","3.0.0-next.fluentui.f074652":"2022-08-25T16:25:37.382Z","2.6.2-preview.fbce175":"2022-08-25T17:36:33.068Z","2.6.1":"2022-08-25T17:37:11.895Z","3.0.0-next.fluentui.069309d":"2022-08-29T13:01:28.470Z","3.0.0-next.login-design.17a198b":"2022-08-29T17:57:16.024Z","3.0.0-next.lit-element-update.b2049e0":"2022-08-29T22:47:45.936Z","3.0.0-next.fluentui.710d6b9":"2022-09-02T10:27:57.211Z","3.0.0-next.lit-element-update.9f5ae34":"2022-09-02T10:35:10.877Z","3.0.0-next.lit-element-update.dbb1f26":"2022-09-02T10:42:49.921Z","3.0.0-next.fluentui.7c782ff":"2022-09-02T10:43:01.746Z","3.0.0-next.fluentui.8c99782":"2022-09-02T10:43:31.682Z","2.6.2-preview.84d32e7":"2022-09-02T11:26:10.767Z","2.6.2-preview.7e6e7b1":"2022-09-02T12:01:46.994Z","3.0.0-next.fluentui.3bf6159":"2022-09-02T17:08:31.833Z","2.6.2-preview.652a6cc":"2022-09-07T12:21:15.653Z","2.6.2-preview.6dca0ba":"2022-09-08T11:01:47.897Z","2.6.2-preview.25175be":"2022-09-08T11:18:28.668Z","3.0.0-next.fluentui.a05b7aa":"2022-09-08T12:16:40.569Z","3.0.0-next.wc-registration.78ad2b0":"2022-09-08T23:27:16.745Z","3.0.0-next.wc-registration.2bfc7a4":"2022-09-09T16:02:13.052Z","3.0.0-next.wc-registration.6de1a26":"2022-09-09T22:21:41.773Z","3.0.0-next.wc-registration.6628282":"2022-09-12T07:43:34.759Z","2.6.2-preview.b8d6891":"2022-09-14T12:02:42.766Z","2.6.2-preview.2b4b09b":"2022-09-15T12:21:01.248Z","3.0.0-next.merge.cdd49dc":"2022-09-15T17:10:04.584Z","2.6.2-preview.240f756":"2022-09-15T20:41:50.160Z","3.0.0-next.fluentui.731bba4":"2022-09-15T20:44:23.463Z","3.0.0-next.wc-registration-samples.bfd19e8":"2022-09-16T00:03:33.736Z","2.6.2-preview.6b44779":"2022-09-21T02:19:44.935Z","3.0.0-next.wc-registration-samples.29dc0f9":"2022-09-22T00:48:52.983Z","3.0.0-next.wc-registration.38d8b01":"2022-09-22T00:54:22.126Z","3.0.0-next.wc-registration-samples.e987922":"2022-09-22T16:28:49.069Z","3.0.0-next.wc-registration-samples.6363b76":"2022-09-22T16:40:34.902Z","3.0.0-next.wc-registration.244b27c":"2022-09-22T17:02:48.357Z","2.6.2-preview.37b4cf2":"2022-09-27T08:39:19.952Z","3.0.0-next.fluentui.21549f8":"2022-10-05T11:33:42.511Z","2.6.2-preview.3ebaa98":"2022-10-11T10:23:52.131Z","2.6.2-preview.4164940":"2022-10-11T10:36:33.918Z","2.6.2-preview.73dc57e":"2022-10-13T14:16:07.858Z","2.6.3-preview.592c5fe":"2022-10-14T19:32:02.513Z","2.6.2":"2022-10-14T21:19:58.882Z","2.6.3-preview.20bd6cf":"2022-10-17T15:56:17.221Z","2.6.3-preview.cd06fe2":"2022-10-18T15:08:39.911Z","3.0.0-next.wc-registration.412c250":"2022-10-18T23:14:01.675Z","3.0.0-next.wc-registration.71a05b0":"2022-10-20T15:16:01.022Z","2.6.3-preview.41de8c4":"2022-10-21T15:37:08.400Z","2.6.3-preview.7bd958e":"2022-10-21T15:55:31.530Z","3.0.0-next.node16-support.f415340":"2022-10-21T21:49:06.554Z","3.0.0-next.wc-registration-utils.8b6e9e0":"2022-10-25T18:27:53.532Z","3.0.0-next.wc-registration.43194e0":"2022-10-25T21:51:40.456Z","2.6.3-preview.d93bde7":"2022-10-25T22:16:42.063Z","2.6.3-preview.9a98e07":"2022-10-25T22:29:00.962Z","2.6.3-preview.adcc63c":"2022-10-26T23:26:53.599Z","3.0.0-next.fluentui.a573bdf":"2022-10-26T23:27:42.709Z","3.0.0-next.wc-registration-utils.89e938e":"2022-10-27T22:28:46.798Z","2.7.1-preview.1b0bf78":"2022-10-27T22:49:55.841Z","2.7.0":"2022-10-28T17:56:13.962Z","2.7.1-next.fix-people-picker-flyout-a11y.b72c3c1":"2022-10-31T16:47:24.801Z","2.7.1-preview.3b1dfba":"2022-11-01T14:27:08.551Z","2.7.1-next.fix-people-picker-flyout-a11y.0210f09":"2022-11-01T17:38:38.908Z","2.7.1-preview.37d1add":"2022-11-01T21:53:14.049Z","3.0.0-next.wc-registration-utils.537a9a2":"2022-11-01T22:00:47.653Z","3.0.0-next.wc-registration-utils.0dde7ba":"2022-11-02T16:58:23.729Z","2.7.1":"2022-11-02T18:40:28.085Z","3.0.0-next.fix-msal2-provider.89cb1c3":"2022-11-02T23:59:57.006Z","2.7.1-preview.728e578":"2022-11-03T16:02:57.191Z","3.0.0-next.fluentui.dd41eb1":"2022-11-04T16:39:21.970Z","2.7.1-preview.ce9da92":"2022-11-09T21:32:51.035Z","2.7.1-preview.4e59158":"2022-11-10T22:54:29.396Z","2.7.1-preview.041c71e":"2022-11-14T08:27:27.429Z","2.7.1-preview.a5e3807":"2022-11-14T21:55:57.399Z","3.0.0-next.fluentui.47b4840":"2022-11-16T17:01:47.408Z","2.7.1-preview.4ac80bb":"2022-11-17T16:42:11.046Z","2.7.1-preview.1b67cf6":"2022-11-21T06:42:24.592Z","2.7.1-preview.22b204a":"2022-11-23T16:45:38.708Z","3.0.0-next.wip.b8de53b":"2022-11-28T23:21:38.881Z","2.7.1-preview.39774a0":"2022-11-29T06:57:28.717Z","3.0.0-next.wip.09a2115":"2022-11-29T15:38:07.826Z","2.7.1-preview.ab34e64":"2022-11-29T17:25:22.291Z","2.7.1-preview.ae3c0b1":"2022-11-30T18:01:48.153Z","2.7.1-preview.f9e2145":"2022-12-01T17:26:38.338Z","2.8.1-preview.ab8f39c":"2022-12-02T00:53:46.632Z","2.8.0":"2022-12-02T02:28:54.827Z","3.0.0-next.wip.31dfb9e":"2022-12-06T15:54:46.916Z","3.0.0-next.fluentui.1edf635":"2022-12-06T16:38:11.062Z","2.8.1-preview.b2cbbf2":"2022-12-14T19:00:24.144Z","2.8.1-preview.92206b9":"2022-12-14T23:11:07.527Z","2.8.1-preview.2f03ee5":"2022-12-15T17:36:42.084Z","2.8.1-preview.911c07c":"2022-12-15T18:19:43.406Z","2.9.1-preview.75d11a6":"2022-12-15T23:16:36.582Z","2.9.0":"2022-12-16T17:39:17.483Z","3.0.0-next.enhanced-file-list.02f4ec6":"2023-01-05T23:12:15.337Z","3.0.0-next.fluentui.d919752":"2023-01-24T18:56:57.482Z","3.0.0-next.fluentui.5ac2099":"2023-01-24T20:07:51.053Z","3.0.0-next.wc-registration-utils.fd01cf2":"2023-01-24T22:23:05.215Z","2.9.1-preview.5b32c5f":"2023-01-24T22:59:37.779Z","3.0.0-next.wc-registration-utils.5e5069a":"2023-01-25T22:18:59.999Z","3.0.0-next.enhanced-file-list.49c3edd":"2023-01-25T23:25:53.081Z","3.0.0-next.fluentui.9e00738":"2023-01-26T18:43:35.353Z","3.0.0-next.wc-registration-utils.050527a":"2023-01-30T23:43:41.210Z","3.0.0-next.wc-registration-utils.0509e40":"2023-01-31T22:27:09.301Z","3.0.0-next.wc-registration-utils.6ca9b59":"2023-02-02T20:53:42.798Z","3.0.0-next.fluentui.6317ccf":"2023-02-02T21:00:32.787Z","3.0.0-next.fluentui.42c7be8":"2023-02-06T16:15:43.615Z","3.0.0-next.fluentui.bbd5da4":"2023-02-06T16:43:56.363Z","3.0.0-next.fluentui.d7247a0":"2023-02-08T16:32:06.102Z","3.0.0-next.fluentui.21e4246":"2023-02-09T18:17:18.774Z","3.0.0-next.dark-toggle.badd280":"2023-02-09T21:36:39.082Z","3.0.0-next.dark-toggle.1d08034":"2023-02-09T21:48:17.280Z","2.9.1-preview.b38f17f":"2023-02-10T10:47:48.530Z","3.0.0-next.dark-toggle.a302768":"2023-02-10T10:49:44.583Z","3.0.0-next.fluentui.11e6807":"2023-02-14T15:39:05.150Z","3.0.0-next.dark-toggle.5e7a689":"2023-02-15T08:09:29.178Z","3.0.0-next.fluentui.9961926":"2023-02-15T08:22:53.540Z","3.0.0-next.fluentui.e105885":"2023-02-15T19:58:41.698Z","3.0.0-next.disambiguation-util-fixes.4e42078":"2023-02-23T04:57:08.581Z","3.0.0-next.fluentui.66c2e6c":"2023-02-23T15:41:27.512Z","3.0.0-next.disambiguation-util-fixes.1d8e4c2":"2023-02-23T15:53:19.066Z","3.0.0-next.fluentui.b2e5d8b":"2023-02-23T18:16:30.533Z","3.0.0-next.disambiguation-util-fixes.aecf062":"2023-02-23T18:17:31.495Z","3.0.0-next.fluentui.e8531bd":"2023-02-23T18:33:32.350Z","3.0.0-next.fluentui.2771544":"2023-02-24T08:55:47.951Z","3.0.0-next.fix-grid.b9de2aa":"2023-02-27T18:49:30.636Z","3.0.0-next.fix-grid.0fb1ed9":"2023-02-27T20:00:02.453Z","3.0.0-preview.1-next.preview-pipeline.98f942f":"2023-03-01T04:30:48.684Z","3.0.0-preview.1-next.preview-pipeline.2fbf258":"2023-03-01T20:38:05.611Z","3.0.0-preview.1-next.preview-pipeline.8bf3848":"2023-03-01T21:06:15.363Z","2.9.1":"2023-03-02T02:06:21.790Z","3.0.0-preview.1-next.fluentui.840b6b6":"2023-03-02T15:23:45.486Z","3.0.0-preview.1-next.fluentui.96740ab":"2023-03-02T15:44:14.367Z","2.9.2-preview.7a233db":"2023-03-02T18:40:22.016Z","3.0.0-preview.1-next.fluentui.94e390b":"2023-03-02T19:01:17.869Z","3.0.0-preview.1":"2023-03-02T19:25:00.253Z","2.9.2":"2023-03-02T19:58:16.945Z","3.0.0-preview.1-next.mgt-chat.187d652":"2023-03-09T15:42:21.465Z","3.0.0-preview.1-next.fix-grid.2de2c03":"2023-03-10T17:31:51.751Z","2.9.2-preview.0f68f60":"2023-03-13T16:58:28.393Z","3.0.0-preview.1-next.fluentui.89b79e9":"2023-03-14T15:47:56.112Z","3.0.0-preview.1-next.mgt-chat.aff9384":"2023-03-15T04:36:46.619Z","3.0.0-preview.1-next.mgt-chat.8fc20a0":"2023-03-17T10:47:10.055Z","3.0.0-preview.1-next.mgt-chat.97255fa":"2023-03-21T20:08:36.976Z","3.0.0-preview.1-next.fix-grid.e6fdc87":"2023-03-22T23:11:20.386Z","3.0.0-preview.1-next.fix-grid.c4830fa":"2023-03-27T23:26:32.910Z","3.0.0-preview.1-next.fix-grid.48046d0":"2023-03-28T19:50:13.418Z","3.0.0-preview.1-next.fix-grid.3757af9":"2023-03-28T21:58:06.704Z","2.9.2-preview.59301ab":"2023-03-29T19:31:09.705Z","2.9.2-preview.8f7eac6":"2023-03-31T18:11:13.578Z","2.9.2-preview.9b600de":"2023-04-03T15:03:48.216Z","2.10.0":"2023-04-06T17:31:29.710Z","2.10.0-preview.4ffcb44":"2023-04-06T17:39:37.857Z","2.10.1-preview.a1e61f1":"2023-04-06T17:54:08.887Z","3.0.0-preview.1-next.fluentui.2970a44":"2023-04-14T18:28:48.649Z","2.10.1-preview.aafdc5e":"2023-04-18T06:20:20.145Z","3.0.0-preview.1-next.fluentui.ae05e3f":"2023-04-18T06:30:46.143Z","3.0.0-preview.1-next.mgt-chat.8d2c8ef":"2023-04-19T09:26:14.407Z","3.0.0-preview.1-next.fluentui.40b87f9":"2023-04-20T13:36:15.497Z","3.0.0-preview.1-next.fix-grid.78d65b7":"2023-04-20T18:39:12.902Z","3.0.0-preview.1-next.fix-grid.7d785be":"2023-04-20T21:53:47.095Z","3.0.0-preview.1-next.fix-grid.45f8631":"2023-04-20T22:35:24.889Z","2.10.1-preview.721dbe4":"2023-04-24T09:30:51.216Z","3.0.0-preview.1-next.fluentui.1ebb02f":"2023-04-24T13:08:53.859Z","2.10.1-preview.c60567d":"2023-04-24T19:42:20.880Z","2.10.1-preview.711a233":"2023-04-25T09:44:15.978Z","3.0.0-preview.1-next.fluentui.fc4f1e0":"2023-04-25T18:18:33.681Z","2.10.1-preview.274af2c":"2023-04-25T20:25:59.609Z","3.0.0-preview.1-next.fluentui.c7bf047":"2023-04-28T18:48:20.718Z","2.10.1-preview.6488705":"2023-04-28T22:06:14.959Z","2.10.1":"2023-05-01T14:18:44.014Z","2.10.2-preview.3c4d620":"2023-05-02T16:05:48.793Z","3.0.0-preview.1-next.fluentui.87e6c2f":"2023-05-02T19:05:46.271Z","3.0.0-preview.1-next.mgt-chat.f7f90d6":"2023-05-03T08:24:00.133Z","3.0.0-preview.1-next.fluentui.4863995":"2023-05-03T14:18:30.750Z","3.0.0-preview.1-next.fluentui.1c9face":"2023-05-03T16:21:19.655Z","2.10.2-preview.7b701d0":"2023-05-08T08:30:41.943Z","3.0.0-preview.1-next.mgt-chat.5a03007":"2023-05-08T14:05:17.521Z","2.10.2-preview.d27858c":"2023-05-09T14:43:28.731Z","3.0.0-preview.1-next.fluentui.3677936":"2023-05-09T16:54:46.184Z","3.0.0-preview.1-next.fluentui.4e3d898":"2023-05-09T18:24:27.298Z","3.0.0-preview.1-next.mgt-chat.15a0fdb":"2023-05-09T21:03:57.102Z","3.0.0-preview.1-next.fix-grid.656f294":"2023-05-09T21:38:55.062Z","3.0.0-preview.1-next.fix-grid.a34c8fc":"2023-05-09T22:13:40.720Z","3.0.0-preview.2-next.fluentui.5dd2cad":"2023-05-09T22:18:00.169Z","3.0.0-preview.2":"2023-05-09T22:28:48.691Z","3.0.0-preview.1-next.mgt-chat.6a93d6b":"2023-05-10T15:53:24.733Z","3.0.0-preview.2-next.fluentui.ab2ddda":"2023-05-16T10:29:19.739Z","2.10.2-preview.071f3d5":"2023-05-22T10:53:50.802Z","2.10.2-preview.9f8953a":"2023-05-26T09:41:01.863Z","2.10.2-preview.b095694":"2023-06-01T16:01:35.918Z","2.11.0-preview.a8902ac":"2023-06-01T18:12:06.328Z","2.11.0":"2023-06-01T18:33:37.485Z","2.11.1-preview.4025f6f":"2023-06-02T17:08:40.494Z","2.11.1":"2023-06-02T17:26:07.086Z","2.11.1-preview.00b68e6":"2023-06-06T14:28:04.847Z","2.11.2-preview.4dac3ba":"2023-06-26T18:22:36.759Z","2.11.2":"2023-06-26T18:38:44.088Z"},"bugs":{"url":"https://github.com/microsoftgraph/microsoft-graph-toolkit/issues"},"author":{"name":"Microsoft"},"license":"MIT","homepage":"https://github.com/microsoftgraph/microsoft-graph-toolkit","keywords":["microsoft graph","microsoft graph toolkit","microsoft teams","teams","mgt","msal","msal 2.0","auth","authentication","sso"],"repository":{"url":"git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git","type":"git"},"description":"The Microsoft Graph Toolkit Teams Msal2 Provider based on Msal2 for interactive authentication on the client. The provider also supports Single Sign-On(SSO) via a dev provided backend","maintainers":[{"email":"npmjs@microsoft.com","name":"microsoft1es"},{"email":"microsoft-oss-publishing@microsoft.com","name":"microsoft-oss-releases"},{"email":"mgt-npm@microsoft.com","name":"microsoft-graph-toolkit"}],"readme":"# Microsoft Graph Toolkit Microsoft Teams Msal2 Provider\n\n[![npm](https://img.shields.io/npm/v/@microsoft/mgt-teams-msal2-provider?style=for-the-badge)](https://www.npmjs.com/package/@microsoft/mgt-teams-msal2-provider)\n\n\n⚠️⚠️⚠️ This package is no longer receiving new features and will only receive critical bug and security fixes. All new applications should use [`@microsoft/mgt-teamsfx-provider`](https://learn.microsoft.com/graph/toolkit/providers/teamsfx) instead. ⚠️⚠️⚠️\n\nThe `@microsoft/mgt-teams-msal2-provider` package exposes the `TeamsMsal2Provider` class to be used inside your Microsoft Teams tab applications to authenticate users, to call Microsoft Graph, and to power the Microsoft Graph Toolkit components. The provider is built on top of [msal-browser](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser) and supports both the interactive sign in flow on the client and Single Sign-On (SSO) flow via your own backend. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n[See the full documentation of the TeamsMsal2Provider](https://learn.microsoft.com/graph/toolkit/providers/teams-msal2)\n\nThe [Microsoft Graph Toolkit (mgt)](https://aka.ms/mgt) library is a collection of authentication providers and UI components powered by Microsoft Graph.\n\n## Usage\n\nThe TeamsMsal2Provider requires the usage of the Microsoft Teams SDK which is not automatically installed.\n\n1. Install the packages\n\n    ```bash\n    npm install @microsoft/teams-js @microsoft/mgt-element @microsoft/mgt-teams-msal2-provider\n    ```\n\n1. Before initializing the provider, create a new page in your application (ex: https://mydomain.com/auth) that will handle the auth redirect. Call the `handleAuth` function to handle all client side auth or permission consent.\n\n    ```ts\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n    TeamsMsal2Provider.handleAuth();\n    ```\n\n3. Initialize the provider in your main code (not on your auth page). The provider can be used in \"client side auth\" mode or SSO mode. SSO mode is enabled by setting `ssoUrl` \\ `sso-url` and requires a backend service to handle the on-behalf-of flow.\n\n    ```ts\n    import {Providers} from '@microsoft/mgt-element';\n    import {TeamsMsal2Provider} from '@microsoft/mgt-teams-msal2-provider';\n    import * as MicrosoftTeams from \"@microsoft/teams-js/dist/MicrosoftTeams\";\n\n    TeamsMsal2Provider.microsoftTeamsLib = MicrosoftTeams;\n\n    Providers.globalProvider = new TeamsMsal2Provider({\n      clientId: string;\n      authPopupUrl: string; // ex: \"https://mydomain.com/auth\" or \"/auth\"\n      scopes?: string[];\n      msalOptions?: Configuration;\n      ssoUrl?: string; // ex: '/api/token',\n      autoConsent?: boolean,\n      httpMethod: HttpMethod; //ex HttpMethod.POST\n    })\n    ```\n\n3. Alternatively, initialize the provider in html (only `client-id` and `auth-popup-url` is required):\n\n    ```html\n    <script type=\"module\" src=\"../node_modules/@microsoft/mgt-teamsfx-provider/dist/es6/index.js\" />\n\n    <mgt-teamsfx-provider\n        client-id=\"<YOUR_CLIENT_ID>\"\n        auth-popup-url=\"/AUTH-PATH\"\n        scopes=\"user.read,people.read...\"\n        authority=\"\"\n        sso-url=\"/api/token\"\n        http-method=\"POST\">\n    ></mgt-teamsfx-provider>\n    ```\n\nSee [provider usage documentation](https://learn.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.\n\n## Sea also\n* [Microsoft Graph Toolkit docs](https://aka.ms/mgt-docs)\n* [Microsoft Graph Toolkit repository](https://aka.ms/mgt)\n* [Microsoft Graph Toolkit playground](https://mgt.dev)\n","readmeFilename":"README.md"}