Scan your whole stack
From OX Research Newsroom
Are you using pigeonidp?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.3
pigeonidp was last scanned on 29 Nov 2026 at version 1.0.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.3 LATEST | 29 Nov 2026 | No rules fired |
| 1.0.2 | 22 Nov 2026 | No rules fired |
| 1.0.1 | 21 Nov 2026 | No rules fired |
| 1.0.0 | 21 Nov 2026 | Not shown |
Findings for v1.0.3. 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.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
P2P SAML Identity Provider using PeerPigeon and UnSEA
A decentralized identity provider (IdP) solution that works in browsers using PeerPigeon's replicated storage and UnSEA for cryptographic operations. Supports custom namespaces.
Built with PeerPigeon 1.2 and UnSEA 3 (post-quantum hybrid keys).
npm install pigeonidp
import { PigeonIdP } from 'pigeonidp';
// Create an IdP instance with custom namespace
const idp = new PigeonIdP({
namespace: 'my-app-namespace'
// signalingServers: ['wss://your-relay.example/ws'] (default: PeerPigeon's relays)
});
// Initialize the IdP
await idp.init();
// Create a new identity
const keys = await idp.createIdentity('alice', 'secure-password');
// Sign a message
const signature = await idp.sign('Hello World');
// Generate an authentication token
const token = await idp.generateAuthToken({
username: 'alice',
role: 'user'
}, 3600); // expires in 1 hour
// Verify the token
const verification = await idp.verifyAuthToken(token);
console.log('Token valid:', verification.valid);
// Disconnect when done
await idp.disconnect();
<!DOCTYPE html>
<html>
<head>
<title>PigeonIdP Demo</title>
</head>
<body>
<script type="module">
import { PigeonIdP } from './node_modules/pigeonidp/index.js';
const idp = new PigeonIdP({
namespace: 'my-namespace'
});
await idp.init();
await idp.createIdentity('user1', 'password123');
const token = await idp.generateAuthToken({ user: 'user1' });
console.log('Token:', token);
</script>
</body>
</html>
See examples/browser-example.html for a full interactive demo.
Note on Password Storage: The password parameter for createIdentity() enables encrypted key storage using IndexedDB, which is only available in browsers. In Node.js environments, omit the password parameter or keys will not be persisted. For server-side key persistence, implement your own storage solution using the exportKeys() and importKeys() methods.
Accounts are kept on the mesh's storage servers (PigeonFS), not on relays, so
any PeerPigeon app finds any account whatever relay it is on
(pigeonidp/accounts):
import { createAccountRecord, openAccountRecord } from 'pigeonidp/records';
import { createAccountStore } from 'pigeonidp/accounts';
// A PeerPigeonNode's storage rooms, kept on the storage servers.
const accounts = createAccountStore({ open: (room, options) => node.openStorage(room, options) });
// Register: the record carries the private keys sealed with the password,
// and is signed with the account's own key.
const record = await createAccountRecord({ alias: 'alice', namespace: 'my-app', keys, password });
await accounts.publish(record, keys); // 'ok', or 'taken' when the name is another key's
// Log in on another device: find the record, then open it.
const found = await accounts.find('my-app', 'alice', { waitMs: 15000 });
const keys = await openAccountRecord(found, password); // throws on a wrong password
pigeonidp/accounts)
holding the account's first record. The first claim is the only one: the
storage servers keep a write-once record as first written. A claim proves
itself (the record in it is signed by the account's key), so a record can be
moved over from elsewhere without its keys: accounts.publish(record).pigeonidp/relay (accounts kept by a relay, in identities.json) is from
before this and is kept only so old stores can be moved over.
Records are version 2: the account's key pair (unsea 3) carries ML-DSA-65 and ML-KEM-768 keys next to its P-256 ones, the record is signed with both (a hybrid signature), and the keys inside are sealed with Argon2id. A quantum computer that breaks P-256 cannot forge or take over such an account.
upgradeAccountRecord(record, password) turns one into a version 2 record
with the same pub, signed by both keys; publish it and keep the returned
keys. Do it at login, while P-256 is still unbroken.qpub replace it, so it can be neither downgraded nor handed to another
post-quantum key.PigeonIdP includes full SAML 2.0 support for enterprise Single Sign-On integration.
import { PigeonIdP } from 'pigeonidp';
import { PigeonIdPSAML } from 'pigeonidp/saml';
const idp = new PigeonIdP({ namespace: 'my-org' });
await idp.init();
await idp.createIdentity('admin');
// Add SAML support
const saml = new PigeonIdPSAML(idp, {
entityId: 'https://myidp.example.com',
ssoUrl: 'https://myidp.example.com/saml/sso',
organizationName: 'My Organization'
});
// Generate SAML assertion for user
const user = {
id: 'alice@company.com',
username: 'alice',
attributes: {
email: 'alice@company.com',
roles: ['admin']
}
};
const assertion = await saml.generateAssertion(
user,
'https://sp.example.com/acs',
'https://sp.example.com'
);
IDP_ENTITY_ID=https://idp.example.com npm start
# SAML Metadata URL:
# https://idp.example.com/saml/metadata
Run it behind HTTPS at the address you set as IDP_ENTITY_ID.
See SAML.md for complete guide including:
Deploy PigeonIdP as a server with REST API and SAML endpoints.
npm install
IDP_ENTITY_ID=https://idp.example.com PORT=3000 npm start
Or as a container, with the included Dockerfile:
docker build -t pigeonidp .
docker run -p 3000:3000 -e IDP_ENTITY_ID=https://idp.example.com pigeonidp
GET /health - Health checkGET /api/info - Server informationGET /api/identity/:alias - Lookup identity from DHTPOST /api/verify - Verify a signaturePOST /api/verify-token - Verify auth tokenGET /saml/metadata - SAML IdP metadataGET /saml/sso - SAML Single Sign-OnPOST /saml/sso - SAML authenticationnew PigeonIdP(options)
Options:
namespace (string, default: 'default') - Custom namespace for the IdPsignalingServers (array, default: PeerPigeon's relays) - FreeRTC signaling relays for WebRTCmeshOptions (object) - Additional options for PeerPigeonNodeinit()Start a PeerPigeon node in the namespace's room, with replicated storage.
await idp.init();
createIdentity(alias, password)Create a new identity with cryptographic keypair.
const keys = await idp.createIdentity('alice', 'secure-password');
Parameters:
alias (string) - Alias for the identitypassword (string, optional) - Password for encrypted storageReturns: Keypair object with pub, priv, epub, epriv
loadIdentity(alias, password)Load an existing identity from encrypted storage.
const keys = await idp.loadIdentity('alice', 'secure-password');
sign(message)Sign a message or authentication token.
const signature = await idp.sign('Hello World');
verify(message, signature, publicKey)Verify a signed message.
const isValid = await idp.verify('Hello World', signature, publicKey);
encrypt(message, recipientKeys)Encrypt a message for a recipient.
const encrypted = await idp.encrypt('Secret message', recipientKeys);
decrypt(encryptedMessage)Decrypt a message.
const decrypted = await idp.decrypt(encrypted);
generateAuthToken(claims, expiresIn)Generate an authentication token (JWT-like).
const token = await idp.generateAuthToken({
username: 'alice',
role: 'user'
}, 3600); // expires in 1 hour
Parameters:
claims (object) - Claims to include in the tokenexpiresIn (number, default: 3600) - Expiration time in secondsReturns: Token object with claims and signature
verifyAuthToken(token)Verify an authentication token.
const result = await idp.verifyAuthToken(token);
if (result.valid) {
console.log('User:', result.claims.username);
}
Returns: Object with valid (boolean), claims (if valid), or error (if invalid)
registerIdentity(profile)Register an identity in the DHT for discovery.
await idp.registerIdentity({
username: 'alice',
displayName: 'Alice Wonderland',
email: 'alice@example.com'
});
lookupIdentity(publicKey)Lookup an identity from the DHT.
const identity = await idp.lookupIdentity(publicKey);
console.log('Profile:', identity.profile);
authenticateWithHub(hubNamespace, credentials)Authenticate with a PigeonHub namespace.
const result = await idp.authenticateWithHub('my-hub', {
username: 'alice'
});
console.log('Auth token:', result.token);
exportKeys()Export keys to JWK format.
const jwkKeys = await idp.exportKeys();
importKeys(jwkKeys)Import keys from JWK format.
await idp.importKeys(jwkKeys);
clearIdentity(alias)Clear stored identity.
await idp.clearIdentity('alice');
getPublicKeys()Get current identity public keys.
const pubKeys = idp.getPublicKeys();
// Returns { pub, epub }
disconnect()Disconnect from the mesh network.
await idp.disconnect();
See examples/basic-usage.js for a comprehensive example covering:
Run with:
node examples/basic-usage.js
See examples/pigeonhub-integration.js for:
Run with:
node examples/pigeonhub-integration.js
See examples/browser-example.html for an interactive browser demo with UI controls.
PigeonIdP is built on three key technologies:
User Identity
↓
UnSEA (Key Generation)
↓
Local Storage (Encrypted with Password)
↓
PeerPigeon storage (Public Keys & Profiles)
↓
PeerPigeon Mesh (P2P Network)
PigeonIdP is designed to integrate seamlessly with PigeonHub:
Namespace Isolation - Each PigeonHub server can have its own namespace
Authentication Flow:
Discovery - Users can discover other users in the same namespace through DHT lookups
unsea (^3.1.0) - Cryptographypeerpigeon (peer dependency) - Mesh networking and storageexpress, cors (peer dependencies) - Only for server.jsRequires WebRTC and WebCrypto API support.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
For issues and questions:
PigeonIdP is part of the PeerPigeon ecosystem.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.