
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@nrk/pin-delta-auth-dev
Advanced tools
Development plugin providing OIDC authentication for testing @nrk/pin-delta-auth locally.
npm install -D @nrk/pin-delta-auth-dev
// vite.config.ts
import { pinAuth } from '@nrk/pin-delta-auth-dev/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [
pinAuth({
issuer: 'https://preprod-innlogging.nrk.no',
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
serverOrigin: 'http://localhost:3000', // optional, auto-detected
}),
],
server: {
port: 3000,
},
});
// server.js
import express from 'express';
import pinAuth from '@nrk/pin-delta-auth-dev/connect';
const app = express();
app.use(
'/_auth',
pinAuth({
issuer: 'https://preprod-innlogging.nrk.no',
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
serverOrigin: 'http://localhost:3000',
})
);
app.listen(3000);
/_auth/login, overridable via testUsersBoth plugins accept an optional testUsers map keyed by the button label
shown on /_auth/login. Each entry carries the email and password to send
in the password-grant request, so the accounts must already exist in your OIDC
issuer with matching credentials.
pinAuth({
issuer: 'https://preprod-innlogging.nrk.no',
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
testUsers: {
alice: { email: 'alice@test.example.no', password: 'AlicePass!' },
bob: { email: 'bob@test.example.no', password: 'BobPass!' },
},
});
/_auth/login - Login page with test users/_auth/logout - Logout and clear session/_auth/session - Session info endpoint (used by browser client)/_auth/goto?page=profile - Profile management// Vite plugin - serverOrigin is optional (auto-detected from Vite server config)
interface ViteOptions {
issuer: string; // OIDC issuer URL
clientId: string; // OIDC client ID
clientSecret: string; // OIDC client secret
serverOrigin?: string; // Your app URL (auto-detected)
testUsers?: Record<string, { email: string; password: string }>; // Override login-page users (label -> credentials)
}
// Connect middleware - serverOrigin is required
interface ConnectOptions {
issuer: string; // OIDC issuer URL
clientId: string; // OIDC client ID
clientSecret: string; // OIDC client secret
serverOrigin: string; // Your app URL
testUsers?: Record<string, { email: string; password: string }>; // Override login-page users (label -> credentials)
}
FAQs
Development plugin providing OIDC authentication for local testing
We found that @nrk/pin-delta-auth-dev demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 197 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.