
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
Teams cloud SDK
Run npm run build to build the library
Add teamscloud.js file to the html page:
<script src="./teamscloud.min.js" ></script>
API samples:
// Initialize the teams cloud SDK, throw Error when not in teams
await TeamsCloud.init();
// Get basic user info from SSO token
var userInfo = TeamsCloud.getUserInfo();
// Get microsoft graph client
var graphClient = TeamsCloud.getMicrosoftGraphClient();
/** Get microsoft graph auth provider, you can use this auth provider for the graph client by yourself
* For example as below
* var authProvider = TeamsCloud.getMicrosoftGraphAuthProvider();
* Client.init({
defaultVersion: "v1.0",
debugLogging: true,
authProvider: authProvider
})
*/
var authProvider = TeamsCloud.getMicrosoftGraphAuthProvider();
/** Call graph api
* When call graph API, it would first try to get access token from memory and localStorage
* If no token exists, it would acquire the token from teams cloud
* If teams cloud also doesn't have the token, it would throw an error, and you need to call the function below to get a new token:
* TeamsCloud.popupLogInPage();
**/
try {
var profile = await graphClient.api("/me").get();
var photoBlob = await graphClient.api("/me/photos('120x120')/$value").get();
} catch (err) {
if (err.message.indexOf("Access token is expired or invalid") >= 0) {
// Popup login page to get Microsoft Graph access token
// The access token would be managed by the SDK and cached in localStorage
TeamsCloud.popupLogInPage();
//... use graph client
}
}
FAQs
Client SDK for MODS
The npm package teamsauth receives a total of 7 weekly downloads. As such, teamsauth popularity was classified as not popular.
We found that teamsauth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.