Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@nauth-toolkit/social-microsoft

Latest version: v0.8.5

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: noorix
4 Stars
0 Forks
4 Versions
415 Downloads
TypeScript Repo language

Scan summary

@nauth-toolkit/social-microsoft was last scanned on 30 Nov 2026 at version 0.8.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest 2 were published on 30 Nov 2026.
  • Findings: No rules fired in version 0.8.5.
  • Downloads: 415 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.8.5 LATEST 30 Nov 2026 No rules fired
0.8.4 30 Nov 2026 No rules fired
0.8.2 25 Sep 2026 No rules fired
0.8.1 15 Sep 2026 Not shown

No rules fired in 0.8.5

Findings

Findings for v0.8.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.8.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@nauth-toolkit/social-microsoft

Microsoft Entra ID (Azure AD) provider for nauth-toolkit.

Adds Microsoft sign-in for both populations the Microsoft identity platform serves: personal accounts (outlook.com, hotmail.com, live.com) and work or school accounts from a Microsoft 365 tenant. An Office 365 subscription includes Entra ID as its identity provider, so organisational SSO is the same OIDC flow against the same endpoints — which population is admitted depends on one config value.

Documentation · GitHub

Part of nauth-toolkit. Requires @nauth-toolkit/core.


Install

npm install @nauth-toolkit/social-microsoft

Public sign-in, like any other social provider:

const authConfig = {
  social: {
    microsoft: {
      enabled: true,
      clientId: process.env.MS_CLIENT_ID,
      clientSecret: process.env.MS_CLIENT_SECRET,
      callbackUrl: `${process.env.API_BASE_URL}/auth/social/microsoft/callback`,
      tenant: 'common',
    },
  },
};

One organisation's Microsoft 365 tenant, gated on an app role:

microsoft: {
  enabled: true,
  clientId: process.env.MS_CLIENT_ID,
  clientSecret: process.env.MS_CLIENT_SECRET,
  callbackUrl: `${process.env.API_BASE_URL}/auth/social/microsoft/callback`,
  tenant: '9f4c2a10-1b3c-4d5e-8f70-2a1b3c4d5e6f',
  requiredRoles: ['nauth.access'],
}

NestJS — import the module and it auto-registers:

import { MicrosoftSocialAuthModule } from '@nauth-toolkit/social-microsoft/nestjs';

@Module({
  imports: [NAuthModule.forRoot(authConfig), MicrosoftSocialAuthModule],
})
export class AuthModule {}

Tenant values

Value Who can sign in
common Work/school accounts from any directory, plus personal accounts
organizations Work/school accounts from any directory
consumers Personal Microsoft accounts only
A directory GUID or verified domain That one organisation only

The app registration's Supported account types must match this value.


Restricting access

Prefer Entra's own Assignment required toggle (Enterprise Applications → your app → Properties). Microsoft then refuses unassigned users at the identity provider and they never reach your callback — no code, and the customer's administrator manages access in their own portal.

For finer, in-token control, requiredRoles matches app roles and requiredGroups matches security group object ids. Both are checked on every sign-in, so revoking access takes effect at the user's next login. Prefer roles: the groups claim carries GUIDs rather than names, and Entra omits it entirely once a user belongs to more than roughly 200 groups — sign-in is denied in that case rather than treated as "member of nothing".


Related packages

Package Purpose
@nauth-toolkit/social-google Google Sign-In
@nauth-toolkit/social-apple Sign in with Apple
@nauth-toolkit/social-facebook Facebook Login

See the full package list in the core README.


MIT licensed. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @nauth-toolkit/social-microsoft

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229