{"_id":"@cheellipadi/mock-oidc-provider","name":"@cheellipadi/mock-oidc-provider","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@cheellipadi/mock-oidc-provider","version":"0.1.0","description":"Local OIDC provider for development and testing.","license":"MIT","keywords":["oidc","oauth2","mock","local-development","pkce"],"type":"module","bin":{"mock-oidc-provider":"dist/cli.js"},"dependencies":{"oauth2-mock-server":"^8.2.3"},"devDependencies":{"@types/node":"^24.10.1","jose":"^6.1.3","tsx":"^4.20.6","typescript":"^5.9.3","vitest":"^4.0.13"},"engines":{"node":">=22"},"scripts":{"build":"tsc -p tsconfig.json","dev":"tsx src/cli.ts","test":"vitest run","typecheck":"tsc --noEmit","pack:dry-run":"pnpm pack --dry-run"},"_id":"@cheellipadi/mock-oidc-provider@0.1.0","_integrity":"sha512-xeEiyyltu5wRxhC4v+T97Lnb0OPO9LmVRyv1421ULFfVRgc1yHCEzzjBhRIozd+PB/+g23K9nNsUbwijajZ0tA==","_resolved":"/private/var/folders/82/jvx00n9x1c16shsjs65tymrw0000gn/T/3a8e2927543264676fac0a0ea984a4d1/cheellipadi-mock-oidc-provider-0.1.0.tgz","_from":"file:cheellipadi-mock-oidc-provider-0.1.0.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-xeEiyyltu5wRxhC4v+T97Lnb0OPO9LmVRyv1421ULFfVRgc1yHCEzzjBhRIozd+PB/+g23K9nNsUbwijajZ0tA==","shasum":"c453e4f254ff6cd5808c2ddcf6c88ea306324bf7","tarball":"https://registry.npmjs.org/@cheellipadi/mock-oidc-provider/-/mock-oidc-provider-0.1.0.tgz","fileCount":12,"unpackedSize":19789,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDtWDsXemYAAcumI7G0NgYNMmE/5mUabSqMkUSRjAudSgIhAI2saRVd3lFJPlggVY87NYYDB5CwdEuSB6MV3it+i96W"}]},"_npmUser":{"name":"cheellipadi","email":"tehcheeyang@gmail.com"},"directories":{},"maintainers":[{"name":"cheellipadi","email":"tehcheeyang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mock-oidc-provider_0.1.0_1781057252375_0.800409266726742"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-10T02:07:32.178Z","0.1.0":"2026-06-10T02:07:32.518Z","modified":"2026-06-10T02:07:32.732Z"},"maintainers":[{"name":"cheellipadi","email":"tehcheeyang@gmail.com"}],"description":"Local OIDC provider for development and testing.","keywords":["oidc","oauth2","mock","local-development","pkce"],"license":"MIT","readme":"# mock-oidc-provider\n\nGeneric local OIDC provider for development and testing.\n\nThis is a proof-of-concept package. It is intended to let local applications exercise\ntheir normal OIDC authorization-code callback flow without depending on a real\nidentity provider account.\n\nIt is not a production identity provider and must not be deployed as one.\n\n## Usage\n\nRun the provider from npm in one terminal:\n\n```bash\npnpm dlx mock-oidc-provider --claim preferred_username=test.user --claim name=\"Test User\"\n```\n\nOr, after installing the package, run the binary directly:\n\n```bash\nmock-oidc-provider --claim preferred_username=test.user --claim name=\"Test User\"\n```\n\nRun the client application in another terminal.\n\nBy default the provider uses:\n\n```text\nhost: 127.0.0.1\nport: 4010\nissuer: http://localhost:4010/mock/v2.0\nclientId: mock-oidc-client\n```\n\nThe provider prints copy-pasteable client application configuration on startup.\n\n## Options\n\n```text\n--host <host>              Bind host. Default: 127.0.0.1\n--port <port>              Bind port. Default: 4010\n--issuer <url>             Issuer URL. Default: http://localhost:<port>/mock/v2.0\n--client-id <id>           Client ID. Default: mock-oidc-client\n--redirect-uri <uri>       Additional allowed localhost redirect URI.\n--claim <key=value>        Add or override an ID token claim. Repeatable.\n-h, --help                 Show help.\n```\n\nThe authorization code flow also supports optional PKCE with\n`code_challenge_method=S256`. Non-PKCE local clients continue to work.\n\n## Local package testing\n\nPrefer the tarball flow before publishing. It best matches how consumers will run the package:\n\n```bash\npnpm build\npnpm pack\npnpm dlx \"$(pwd)/mock-oidc-provider-0.1.0.tgz\" --claim preferred_username=test.user\n```\n\n## Safety defaults\n\n- Runs in the foreground.\n- Allows only localhost or 127.0.0.1 redirect URIs.\n- Uses fake local issuer and client defaults.\n- Does not set cookies or sessions in consuming applications.\n- Does not store or dictate where client applications store tokens.\n","readmeFilename":"README.md","_rev":"1-95f6253daf31da61aa741c0fd87d06f0"}