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

@adonis-agora/authkit-testing

Latest version: v1.0.0

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: dudousxd
5 Stars
0 Forks
14 Versions
1.9K Downloads
TypeScript Repo language

Scan summary

@adonis-agora/authkit-testing was last scanned on 26 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest 2 were published within 5 days (22–26 Nov 2026).
  • Findings: No rules fired in version 1.0.0.
  • Downloads: 1,858 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 26 Nov 2026 No rules fired
1.0.0-rc.6 22 Nov 2026 No rules fired
1.0.0-rc.4 15 Nov 2026 No rules fired
1.0.0-rc.3 12 Nov 2026 Not shown
1.0.0-rc.2 12 Nov 2026 Not shown

No rules fired in 1.0.0

Findings

Findings for v1.0.0. 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 1.0.0; other versions have their own rules, not their own score.

README

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

@adonis-agora/authkit-testing

Test helpers so host apps built on AuthKit can test auth flows without booting an IdP. Mint real signed ID tokens validated by a local JWKS, fake the ctx.authkit authenticator, fake an account store, and build valid identities.

pnpm add -D @adonis-agora/authkit-testing

API

createTestIdentity(overrides?)

Returns a valid Identity with sane defaults.

import { createTestIdentity } from '@adonis-agora/authkit-testing'

const identity = createTestIdentity({ globalRoles: ['ADMIN'] })
mintTestIdToken({ issuer, clientId, claims?, key?, expiresInSeconds? })

Mints a real RS256-signed JWT plus the public JWKS that validates it. Returns { token, key, jwks }.

import { mintTestIdToken, serveJwks } from '@adonis-agora/authkit-testing'
import { conventionEndpoints, resolvers } from '@adonis-agora/authkit-client'

const { token, jwks } = await mintTestIdToken({
  issuer: 'https://idp.test',
  clientId: 'my-app',
  claims: { sub: 'user-42', email: 'jane@test.dev', roles: ['ADMIN'] },
})

// Serve the JWKS in-process so resolvers.jwt({ jwksUri }) can validate it.
const served = await serveJwks(jwks)
const factory = resolvers.jwt({ jwksUri: served.jwksUri })
const resolver = await factory.resolver({
  issuer: 'https://idp.test',
  clientId: 'my-app',
  sessionKey: 'authkit',
  globalRolesClaim: 'roles',
  endpoints: async () => conventionEndpoints('https://idp.test'),
  logger: { warn: () => {} },
})
// ... use resolver in your host test, then:
await served.close()

The JwtResolver uses createRemoteJWKSet, so it needs a URL — serveJwks() provides one locally with no external network. You can also reuse a single keypair across tokens via generateTestKeyPair() + the key option, or get the raw public JWKS object with jwksFromKey(key) / testJwks(key).

fakeAuthenticator({ identity?, user? })

Object satisfying the client's Authenticator surface, for injecting into ctx.authkit in controller tests. O AuthKit só autentica — autorização por role é do @adonis-agora/authz, então o fake expõe só hasGlobalRole (roles do token). O authkitClientGuard lê o ctx.authkit da request, então o mesmo fake também autentica ctx.auth: com user, ctx.auth.user é esse usuário; sem user, o guard pede ao provider pelo userId da identidade.

import { fakeAuthenticator } from '@adonis-agora/authkit-testing'

const authkit = fakeAuthenticator({
  identity: createTestIdentity({ globalRoles: ['ADMIN'] }),
})
authkit.hasGlobalRole('ADMIN') // true

Pass identity: null to simulate an anonymous request.

fakeAccountStore(options?)

A capability-aware fake AccountStore. The core methods are always present; MFA, passkeys and account-security capabilities are opt-in so you can exercise the server's supportsMfa / supportsPasskeys / supportsAccountSecurity type guards.

import { fakeAccountStore } from '@adonis-agora/authkit-testing'

const store = fakeAccountStore({
  account: { id: 'u1', email: 'a@b.com', globalRoles: ['ADMIN'] },
  withMfa: true,
  overrides: { findById: async () => null },
})

License

MIT

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 @adonis-agora/authkit-testing

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PolinRider Returns
Research

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

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