@absolutejs/auth 0.30.0-beta.3 → 0.30.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fingerprint-client/index.d.ts +26 -0
- package/dist/fingerprint-client/index.js +183 -0
- package/dist/fingerprint-client/index.js.map +10 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +78 -3
- package/dist/index.js.map +8 -7
- package/dist/oidc/clientAuth.d.ts +7 -0
- package/dist/oidc/jar.d.ts +14 -0
- package/dist/oidc/postgresStores.d.ts +34 -0
- package/dist/oidc/routes.d.ts +1 -0
- package/dist/oidc/types.d.ts +1 -0
- package/package.json +6 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type FingerprintSignals = {
|
|
2
|
+
audio?: number;
|
|
3
|
+
canvas?: string;
|
|
4
|
+
deviceMemory?: number;
|
|
5
|
+
fonts?: string[];
|
|
6
|
+
hardwareConcurrency?: number;
|
|
7
|
+
languages?: readonly string[];
|
|
8
|
+
pixelRatio?: number;
|
|
9
|
+
platform?: string;
|
|
10
|
+
screen?: {
|
|
11
|
+
colorDepth: number;
|
|
12
|
+
height: number;
|
|
13
|
+
width: number;
|
|
14
|
+
};
|
|
15
|
+
timezone?: string;
|
|
16
|
+
userAgent?: string;
|
|
17
|
+
webgl?: {
|
|
18
|
+
renderer?: string;
|
|
19
|
+
vendor?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type DeviceFingerprint = {
|
|
23
|
+
deviceId: string;
|
|
24
|
+
signals: FingerprintSignals;
|
|
25
|
+
};
|
|
26
|
+
export declare const collectDeviceFingerprint: () => Promise<DeviceFingerprint>;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
// src/fingerprint-client/index.ts
|
|
2
|
+
var CANVAS_TEXT = "absoluteAuth-fp \uD83D\uDD10";
|
|
3
|
+
var CANVAS_WIDTH = 280;
|
|
4
|
+
var CANVAS_HEIGHT = 60;
|
|
5
|
+
var AUDIO_SAMPLES_COUNT = 4500;
|
|
6
|
+
var AUDIO_OSC_FREQ = 1e4;
|
|
7
|
+
var AUDIO_COMPRESSOR_THRESHOLD = -50;
|
|
8
|
+
var AUDIO_COMPRESSOR_KNEE = 40;
|
|
9
|
+
var AUDIO_COMPRESSOR_RATIO = 12;
|
|
10
|
+
var AUDIO_COMPRESSOR_ATTACK = 0;
|
|
11
|
+
var AUDIO_COMPRESSOR_RELEASE = 0.25;
|
|
12
|
+
var AUDIO_SAMPLE_RATE = 44100;
|
|
13
|
+
var FONT_PROBE = "mmmmmmmmmlli";
|
|
14
|
+
var FONT_PROBE_PX = "72px";
|
|
15
|
+
var FONT_PROBE_OFFSCREEN_PX = -9999;
|
|
16
|
+
var FONT_BASE_FAMILIES = ["monospace", "sans-serif", "serif"];
|
|
17
|
+
var POPULAR_FONTS = [
|
|
18
|
+
"Arial",
|
|
19
|
+
"Arial Black",
|
|
20
|
+
"Comic Sans MS",
|
|
21
|
+
"Courier New",
|
|
22
|
+
"Georgia",
|
|
23
|
+
"Helvetica",
|
|
24
|
+
"Impact",
|
|
25
|
+
"Lucida Console",
|
|
26
|
+
"Times New Roman",
|
|
27
|
+
"Trebuchet MS",
|
|
28
|
+
"Verdana",
|
|
29
|
+
"monospace",
|
|
30
|
+
"sans-serif",
|
|
31
|
+
"serif"
|
|
32
|
+
];
|
|
33
|
+
var readCanvas = () => {
|
|
34
|
+
try {
|
|
35
|
+
const canvas = document.createElement("canvas");
|
|
36
|
+
canvas.width = CANVAS_WIDTH;
|
|
37
|
+
canvas.height = CANVAS_HEIGHT;
|
|
38
|
+
const context = canvas.getContext("2d");
|
|
39
|
+
if (context === null)
|
|
40
|
+
return;
|
|
41
|
+
context.textBaseline = "top";
|
|
42
|
+
context.font = "14px Arial";
|
|
43
|
+
context.fillStyle = "#f60";
|
|
44
|
+
context.fillRect(125, 1, 62, 20);
|
|
45
|
+
context.fillStyle = "#069";
|
|
46
|
+
context.fillText(CANVAS_TEXT, 2, 15);
|
|
47
|
+
context.fillStyle = "rgba(102, 204, 0, 0.7)";
|
|
48
|
+
context.fillText(CANVAS_TEXT, 4, 17);
|
|
49
|
+
return canvas.toDataURL();
|
|
50
|
+
} catch {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var resolveOfflineAudioContextCtor = () => {
|
|
55
|
+
if (typeof OfflineAudioContext !== "undefined")
|
|
56
|
+
return OfflineAudioContext;
|
|
57
|
+
const legacy = globalThis;
|
|
58
|
+
return legacy.webkitOfflineAudioContext;
|
|
59
|
+
};
|
|
60
|
+
var sumAbs = (samples) => {
|
|
61
|
+
let total = 0;
|
|
62
|
+
for (const sample of samples)
|
|
63
|
+
total += Math.abs(sample);
|
|
64
|
+
return total;
|
|
65
|
+
};
|
|
66
|
+
var readAudio = async () => {
|
|
67
|
+
try {
|
|
68
|
+
const ContextCtor = resolveOfflineAudioContextCtor();
|
|
69
|
+
if (ContextCtor === undefined)
|
|
70
|
+
return;
|
|
71
|
+
const context = new ContextCtor(1, AUDIO_SAMPLES_COUNT, AUDIO_SAMPLE_RATE);
|
|
72
|
+
const oscillator = context.createOscillator();
|
|
73
|
+
oscillator.type = "triangle";
|
|
74
|
+
oscillator.frequency.value = AUDIO_OSC_FREQ;
|
|
75
|
+
const compressor = context.createDynamicsCompressor();
|
|
76
|
+
compressor.threshold.value = AUDIO_COMPRESSOR_THRESHOLD;
|
|
77
|
+
compressor.knee.value = AUDIO_COMPRESSOR_KNEE;
|
|
78
|
+
compressor.ratio.value = AUDIO_COMPRESSOR_RATIO;
|
|
79
|
+
compressor.attack.value = AUDIO_COMPRESSOR_ATTACK;
|
|
80
|
+
compressor.release.value = AUDIO_COMPRESSOR_RELEASE;
|
|
81
|
+
oscillator.connect(compressor);
|
|
82
|
+
compressor.connect(context.destination);
|
|
83
|
+
oscillator.start(0);
|
|
84
|
+
const buffer = await context.startRendering();
|
|
85
|
+
return sumAbs(buffer.getChannelData(0));
|
|
86
|
+
} catch {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
var readWebgl = () => {
|
|
91
|
+
try {
|
|
92
|
+
const canvas = document.createElement("canvas");
|
|
93
|
+
const context = canvas.getContext("webgl") ?? canvas.getContext("experimental-webgl");
|
|
94
|
+
if (context === null || !("getExtension" in context) || !("getParameter" in context)) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const debug = context.getExtension("WEBGL_debug_renderer_info");
|
|
98
|
+
if (debug === null)
|
|
99
|
+
return;
|
|
100
|
+
return {
|
|
101
|
+
renderer: String(context.getParameter(debug.UNMASKED_RENDERER_WEBGL) ?? ""),
|
|
102
|
+
vendor: String(context.getParameter(debug.UNMASKED_VENDOR_WEBGL) ?? "")
|
|
103
|
+
};
|
|
104
|
+
} catch {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
var measureFamily = (span, family) => {
|
|
109
|
+
span.style.fontFamily = family;
|
|
110
|
+
return span.offsetWidth;
|
|
111
|
+
};
|
|
112
|
+
var detectFontPresent = (span, font, baseline) => FONT_BASE_FAMILIES.some((family) => measureFamily(span, `'${font}', ${family}`) !== baseline[family]);
|
|
113
|
+
var readFonts = () => {
|
|
114
|
+
try {
|
|
115
|
+
const span = document.createElement("span");
|
|
116
|
+
span.style.position = "absolute";
|
|
117
|
+
span.style.left = `${FONT_PROBE_OFFSCREEN_PX}px`;
|
|
118
|
+
span.style.fontSize = FONT_PROBE_PX;
|
|
119
|
+
span.textContent = FONT_PROBE;
|
|
120
|
+
document.body.appendChild(span);
|
|
121
|
+
const baseline = Object.fromEntries(FONT_BASE_FAMILIES.map((family) => [family, measureFamily(span, family)]));
|
|
122
|
+
const present = POPULAR_FONTS.filter((font) => detectFontPresent(span, font, baseline));
|
|
123
|
+
document.body.removeChild(span);
|
|
124
|
+
return present;
|
|
125
|
+
} catch {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
var readScreen = () => {
|
|
130
|
+
if (typeof screen === "undefined")
|
|
131
|
+
return;
|
|
132
|
+
return {
|
|
133
|
+
colorDepth: screen.colorDepth,
|
|
134
|
+
height: screen.height,
|
|
135
|
+
width: screen.width
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
var readTimezone = () => {
|
|
139
|
+
try {
|
|
140
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
141
|
+
} catch {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
var canonical = (signals) => JSON.stringify(signals, (_key, value) => value === null || typeof value !== "object" || Array.isArray(value) ? value : Object.fromEntries(Object.entries(value).sort((left, right) => left[0].localeCompare(right[0]))));
|
|
146
|
+
var sha256Base64Url = async (input) => {
|
|
147
|
+
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(input));
|
|
148
|
+
const binary = String.fromCharCode(...new Uint8Array(bytes));
|
|
149
|
+
return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
150
|
+
};
|
|
151
|
+
var collectDeviceFingerprint = async () => {
|
|
152
|
+
if (typeof window === "undefined" || typeof document === "undefined") {
|
|
153
|
+
throw new Error("collectDeviceFingerprint must run in a browser — server-side use the @absolutejs/auth fingerprintDevice helper instead");
|
|
154
|
+
}
|
|
155
|
+
const [canvas, audio, webgl, fonts] = await Promise.all([
|
|
156
|
+
Promise.resolve(readCanvas()),
|
|
157
|
+
readAudio(),
|
|
158
|
+
Promise.resolve(readWebgl()),
|
|
159
|
+
Promise.resolve(readFonts())
|
|
160
|
+
]);
|
|
161
|
+
const deviceMemory = "deviceMemory" in navigator ? Reflect.get(navigator, "deviceMemory") : undefined;
|
|
162
|
+
const signals = {
|
|
163
|
+
audio,
|
|
164
|
+
canvas,
|
|
165
|
+
deviceMemory: typeof deviceMemory === "number" ? deviceMemory : undefined,
|
|
166
|
+
fonts,
|
|
167
|
+
hardwareConcurrency: navigator.hardwareConcurrency,
|
|
168
|
+
languages: navigator.languages,
|
|
169
|
+
pixelRatio: window.devicePixelRatio,
|
|
170
|
+
platform: navigator.platform,
|
|
171
|
+
screen: readScreen(),
|
|
172
|
+
timezone: readTimezone(),
|
|
173
|
+
userAgent: navigator.userAgent,
|
|
174
|
+
webgl
|
|
175
|
+
};
|
|
176
|
+
return { deviceId: await sha256Base64Url(canonical(signals)), signals };
|
|
177
|
+
};
|
|
178
|
+
export {
|
|
179
|
+
collectDeviceFingerprint
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
//# debugId=0B8B6C4FD47EEDE764756E2164756E21
|
|
183
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/fingerprint-client/index.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"// Browser-side device fingerprint collector.\n//\n// `collectDeviceFingerprint()` reads ~10 signals from the browser (canvas render,\n// AudioContext, WebGL renderer, font enumeration, screen geometry, navigator.languages,\n// timezone, hardware concurrency, device memory, pixel ratio), normalizes them, and\n// hashes the canonical JSON into a stable base64url SHA-256 `deviceId`.\n//\n// Self-hosted equivalent of FingerprintJS's open-source library. Each individual signal\n// is weak on its own — but their combination is highly stable across sessions for the\n// same browser+device, and varies sharply across different browsers/devices. The same\n// algorithms underpin every commercial fingerprinter; only the proprietary data network\n// (cross-customer reputation) is what SaaS vendors charge for, and that's a non-goal here.\n//\n// Imported via `@absolutejs/auth/fingerprint-client` — server bundle does NOT pull this in\n// (browser globals like `window` would explode there). The client SDK + your sign-in form\n// call this, send the result as `x-client-fingerprint`, and the server (riskConfig / adaptive)\n// uses it as the deviceId instead of the weak UA+IP fallback.\n\nconst CANVAS_TEXT = 'absoluteAuth-fp 🔐';\nconst CANVAS_WIDTH = 280;\nconst CANVAS_HEIGHT = 60;\nconst AUDIO_SAMPLES_COUNT = 4500;\nconst AUDIO_OSC_FREQ = 10_000;\nconst AUDIO_COMPRESSOR_THRESHOLD = -50;\nconst AUDIO_COMPRESSOR_KNEE = 40;\nconst AUDIO_COMPRESSOR_RATIO = 12;\nconst AUDIO_COMPRESSOR_ATTACK = 0;\nconst AUDIO_COMPRESSOR_RELEASE = 0.25;\nconst AUDIO_SAMPLE_RATE = 44_100;\nconst FONT_PROBE = 'mmmmmmmmmlli';\nconst FONT_PROBE_PX = '72px';\nconst FONT_PROBE_OFFSCREEN_PX = -9999;\nconst FONT_BASE_FAMILIES = ['monospace', 'sans-serif', 'serif'] as const;\nconst POPULAR_FONTS = [\n\t'Arial',\n\t'Arial Black',\n\t'Comic Sans MS',\n\t'Courier New',\n\t'Georgia',\n\t'Helvetica',\n\t'Impact',\n\t'Lucida Console',\n\t'Times New Roman',\n\t'Trebuchet MS',\n\t'Verdana',\n\t'monospace',\n\t'sans-serif',\n\t'serif'\n];\n\nexport type FingerprintSignals = {\n\taudio?: number;\n\tcanvas?: string;\n\tdeviceMemory?: number;\n\tfonts?: string[];\n\thardwareConcurrency?: number;\n\tlanguages?: readonly string[];\n\tpixelRatio?: number;\n\tplatform?: string;\n\tscreen?: { colorDepth: number; height: number; width: number };\n\ttimezone?: string;\n\tuserAgent?: string;\n\twebgl?: { renderer?: string; vendor?: string };\n};\n\nexport type DeviceFingerprint = {\n\tdeviceId: string;\n\tsignals: FingerprintSignals;\n};\n\n// Canvas hash: render text + a curve + a couple of rectangles + return the data URL\n// (its pixel content hashes differently across GPUs, drivers, browser versions, font\n// renderers). Wrapped in try/catch because privacy-mode browsers throw on getContext.\nconst readCanvas = () => {\n\ttry {\n\t\tconst canvas = document.createElement('canvas');\n\t\tcanvas.width = CANVAS_WIDTH;\n\t\tcanvas.height = CANVAS_HEIGHT;\n\t\tconst context = canvas.getContext('2d');\n\t\tif (context === null) return undefined;\n\t\tcontext.textBaseline = 'top';\n\t\tcontext.font = '14px Arial';\n\t\tcontext.fillStyle = '#f60';\n\t\tcontext.fillRect(125, 1, 62, 20);\n\t\tcontext.fillStyle = '#069';\n\t\tcontext.fillText(CANVAS_TEXT, 2, 15);\n\t\tcontext.fillStyle = 'rgba(102, 204, 0, 0.7)';\n\t\tcontext.fillText(CANVAS_TEXT, 4, 17);\n\n\t\treturn canvas.toDataURL();\n\t} catch {\n\t\treturn undefined;\n\t}\n};\n\ntype LegacyOfflineCtxGlobal = {\n\twebkitOfflineAudioContext?: typeof OfflineAudioContext;\n};\n\nconst resolveOfflineAudioContextCtor = () => {\n\tif (typeof OfflineAudioContext !== 'undefined') return OfflineAudioContext;\n\t// eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- vendor-prefixed legacy API; no TS type ships for it\n\tconst legacy = globalThis as LegacyOfflineCtxGlobal;\n\n\treturn legacy.webkitOfflineAudioContext;\n};\n\nconst sumAbs = (samples: Float32Array) => {\n\tlet total = 0;\n\tfor (const sample of samples) total += Math.abs(sample);\n\n\treturn total;\n};\n\n// Audio hash: instantiate an offline audio context, push a brief oscillator + dynamics\n// compressor through it, read back the rendered buffer's sum. Different audio stacks\n// produce subtly different floating-point outputs.\nconst readAudio = async () => {\n\ttry {\n\t\tconst ContextCtor = resolveOfflineAudioContextCtor();\n\t\tif (ContextCtor === undefined) return undefined;\n\t\tconst context = new ContextCtor(1, AUDIO_SAMPLES_COUNT, AUDIO_SAMPLE_RATE);\n\t\tconst oscillator = context.createOscillator();\n\t\toscillator.type = 'triangle';\n\t\toscillator.frequency.value = AUDIO_OSC_FREQ;\n\t\tconst compressor = context.createDynamicsCompressor();\n\t\tcompressor.threshold.value = AUDIO_COMPRESSOR_THRESHOLD;\n\t\tcompressor.knee.value = AUDIO_COMPRESSOR_KNEE;\n\t\tcompressor.ratio.value = AUDIO_COMPRESSOR_RATIO;\n\t\t// `reduction` is read-only on the modern spec (the constant exists for the\n\t\t// outdated browsers that originally exposed it as a writable AudioParam;\n\t\t// we don't bother setting it — the fingerprint is plenty stable without).\n\t\tcompressor.attack.value = AUDIO_COMPRESSOR_ATTACK;\n\t\tcompressor.release.value = AUDIO_COMPRESSOR_RELEASE;\n\t\toscillator.connect(compressor);\n\t\tcompressor.connect(context.destination);\n\t\toscillator.start(0);\n\t\tconst buffer = await context.startRendering();\n\n\t\treturn sumAbs(buffer.getChannelData(0));\n\t} catch {\n\t\treturn undefined;\n\t}\n};\n\n// WebGL hash: the renderer + vendor strings include GPU model + driver — highly stable,\n// highly distinctive. Behind the WEBGL_debug_renderer_info extension on most browsers.\nconst readWebgl = () => {\n\ttry {\n\t\tconst canvas = document.createElement('canvas');\n\t\tconst context =\n\t\t\tcanvas.getContext('webgl') ?? canvas.getContext('experimental-webgl');\n\t\tif (\n\t\t\tcontext === null ||\n\t\t\t!('getExtension' in context) ||\n\t\t\t!('getParameter' in context)\n\t\t) {\n\t\t\treturn undefined;\n\t\t}\n\t\tconst debug = context.getExtension('WEBGL_debug_renderer_info');\n\t\tif (debug === null) return undefined;\n\n\t\treturn {\n\t\t\trenderer: String(\n\t\t\t\tcontext.getParameter(debug.UNMASKED_RENDERER_WEBGL) ?? ''\n\t\t\t),\n\t\t\tvendor: String(context.getParameter(debug.UNMASKED_VENDOR_WEBGL) ?? '')\n\t\t};\n\t} catch {\n\t\treturn undefined;\n\t}\n};\n\n// Width of `probe` rendered in `family` on the given span — used to detect installed\n// fonts (different widths than the fallback ⇒ font is present).\nconst measureFamily = (span: HTMLSpanElement, family: string) => {\n\tspan.style.fontFamily = family;\n\n\treturn span.offsetWidth;\n};\n\nconst detectFontPresent = (\n\tspan: HTMLSpanElement,\n\tfont: string,\n\tbaseline: Record<string, number>\n) =>\n\tFONT_BASE_FAMILIES.some(\n\t\t(family) =>\n\t\t\tmeasureFamily(span, `'${font}', ${family}`) !== baseline[family]\n\t);\n\n// Font enumeration: a font is \"installed\" if the rendered width of a probe string differs\n// from the same string in a known fallback. Compares against monospace + sans-serif +\n// serif and counts a match if any of them produce a different width.\nconst readFonts = () => {\n\ttry {\n\t\tconst span = document.createElement('span');\n\t\tspan.style.position = 'absolute';\n\t\tspan.style.left = `${FONT_PROBE_OFFSCREEN_PX}px`;\n\t\tspan.style.fontSize = FONT_PROBE_PX;\n\t\tspan.textContent = FONT_PROBE;\n\t\tdocument.body.appendChild(span);\n\n\t\tconst baseline: Record<string, number> = Object.fromEntries(\n\t\t\tFONT_BASE_FAMILIES.map((family) => [family, measureFamily(span, family)])\n\t\t);\n\t\tconst present = POPULAR_FONTS.filter((font) =>\n\t\t\tdetectFontPresent(span, font, baseline)\n\t\t);\n\n\t\tdocument.body.removeChild(span);\n\n\t\treturn present;\n\t} catch {\n\t\treturn undefined;\n\t}\n};\n\nconst readScreen = () => {\n\tif (typeof screen === 'undefined') return undefined;\n\n\treturn {\n\t\tcolorDepth: screen.colorDepth,\n\t\theight: screen.height,\n\t\twidth: screen.width\n\t};\n};\n\nconst readTimezone = () => {\n\ttry {\n\t\treturn Intl.DateTimeFormat().resolvedOptions().timeZone;\n\t} catch {\n\t\treturn undefined;\n\t}\n};\n\n// Canonical JSON identical to the server-side `fingerprintDevice` canonicalizer: keys\n// sorted at every depth so identical signals produce identical hashes regardless of\n// insertion order. Inlined here to keep the client bundle free of server-side imports.\nconst canonical = (signals: FingerprintSignals) =>\n\tJSON.stringify(signals, (_key, value) =>\n\t\tvalue === null || typeof value !== 'object' || Array.isArray(value)\n\t\t\t? value\n\t\t\t: Object.fromEntries(\n\t\t\t\t\tObject.entries(value).sort((left, right) =>\n\t\t\t\t\t\tleft[0].localeCompare(right[0])\n\t\t\t\t\t)\n\t\t\t\t)\n\t);\n\nconst sha256Base64Url = async (input: string) => {\n\tconst bytes = await crypto.subtle.digest(\n\t\t'SHA-256',\n\t\tnew TextEncoder().encode(input)\n\t);\n\tconst binary = String.fromCharCode(...new Uint8Array(bytes));\n\n\treturn btoa(binary)\n\t\t.replace(/\\+/g, '-')\n\t\t.replace(/\\//g, '_')\n\t\t.replace(/=+$/, '');\n};\n\n// Collect every signal we can, hash them, return both so the caller can persist the raw\n// signals (for debugging / drift detection) while sending just the deviceId on the wire.\nexport const collectDeviceFingerprint = async (): Promise<DeviceFingerprint> => {\n\tif (typeof window === 'undefined' || typeof document === 'undefined') {\n\t\tthrow new Error(\n\t\t\t'collectDeviceFingerprint must run in a browser — server-side use the @absolutejs/auth fingerprintDevice helper instead'\n\t\t);\n\t}\n\tconst [canvas, audio, webgl, fonts] = await Promise.all([\n\t\tPromise.resolve(readCanvas()),\n\t\treadAudio(),\n\t\tPromise.resolve(readWebgl()),\n\t\tPromise.resolve(readFonts())\n\t]);\n\n\tconst deviceMemory =\n\t\t'deviceMemory' in navigator\n\t\t\t? Reflect.get(navigator, 'deviceMemory')\n\t\t\t: undefined;\n\tconst signals: FingerprintSignals = {\n\t\taudio,\n\t\tcanvas,\n\t\tdeviceMemory: typeof deviceMemory === 'number' ? deviceMemory : undefined,\n\t\tfonts,\n\t\thardwareConcurrency: navigator.hardwareConcurrency,\n\t\tlanguages: navigator.languages,\n\t\tpixelRatio: window.devicePixelRatio,\n\t\tplatform: navigator.platform,\n\t\tscreen: readScreen(),\n\t\ttimezone: readTimezone(),\n\t\tuserAgent: navigator.userAgent,\n\t\twebgl\n\t};\n\n\treturn { deviceId: await sha256Base64Url(canonical(signals)), signals };\n};\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";AAkBA,IAAM,cAAc;AACpB,IAAM,eAAe;AACrB,IAAM,gBAAgB;AACtB,IAAM,sBAAsB;AAC5B,IAAM,iBAAiB;AACvB,IAAM,6BAA6B;AACnC,IAAM,wBAAwB;AAC9B,IAAM,yBAAyB;AAC/B,IAAM,0BAA0B;AAChC,IAAM,2BAA2B;AACjC,IAAM,oBAAoB;AAC1B,IAAM,aAAa;AACnB,IAAM,gBAAgB;AACtB,IAAM,0BAA0B;AAChC,IAAM,qBAAqB,CAAC,aAAa,cAAc,OAAO;AAC9D,IAAM,gBAAgB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAA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AAE;AAAA;AAKb,IAAM,2BAA2B,YAAwC;AAAA,EAC/E,IAAI,OAAO,WAAW,eAAe,OAAO,aAAa,aAAa;AAAA,IACrE,MAAM,IAAI,MACT,wHACD;AAAA,EACD;AAAA,EACA,OAAO,QAAQ,OAAO,OAAO,SAAS,MAAM,QAAQ,IAAI;AAAA,IACvD,QAAQ,QAAQ,WAAW,CAAC;AAAA,IAC5B,UAAU;AAAA,IACV,QAAQ,QAAQ,UAAU,CAAC;AAAA,IAC3B,QAAQ,QAAQ,UAAU,CAAC;AAAA,EAC5B,CAAC;AAAA,EAED,MAAM,eACL,kBAAkB,YACf,QAAQ,IAAI,WAAW,cAAc,IACrC;AAAA,EACJ,MAAM,UAA8B;AAAA,IACnC;AAAA,IACA;AAAA,IACA,cAAc,OAAO,iBAAiB,WAAW,eAAe;AAAA,IAChE;AAAA,IACA,qBAAqB,UAAU;AAAA,IAC/B,WAAW,UAAU;AAAA,IACrB,YAAY,OAAO;AAAA,IACnB,UAAU,UAAU;AAAA,IACpB,QAAQ,WAAW;AAAA,IACnB,UAAU,aAAa;AAAA,IACvB,WAAW,UAAU;AAAA,IACrB;AAAA,EACD;AAAA,EAEA,OAAO,EAAE,UAAU,MAAM,gBAAgB,UAAU,OAAO,CAAC,GAAG,QAAQ;AAAA;",
|
|
8
|
+
"debugId": "0B8B6C4FD47EEDE764756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -13454,6 +13454,7 @@ export declare const auth: <UserType>({ providersConfiguration, authorizeRoute,
|
|
|
13454
13454
|
scope?: string | undefined;
|
|
13455
13455
|
claims?: string | undefined;
|
|
13456
13456
|
nonce?: string | undefined;
|
|
13457
|
+
request?: string | undefined;
|
|
13457
13458
|
redirect_uri?: string | undefined;
|
|
13458
13459
|
acr_values?: string | undefined;
|
|
13459
13460
|
code_challenge?: string | undefined;
|
|
@@ -15120,7 +15121,9 @@ export { generateSigningKey, jwkThumbprint, signJwt, toPublicJwk, verifyJwt } fr
|
|
|
15120
15121
|
export type { SigningKey } from './oidc/keys';
|
|
15121
15122
|
export { extractDpopNonceClaim, mintDpopNonce, verifyDpopNonce, verifyDpopProof } from './oidc/dpop';
|
|
15122
15123
|
export type { DpopResult } from './oidc/dpop';
|
|
15123
|
-
export { CLIENT_ASSERTION_TYPE, verifyClientAssertion } from './oidc/clientAuth';
|
|
15124
|
+
export { CLIENT_ASSERTION_TYPE, verifyClientAssertion, verifyJwtSignedByClient } from './oidc/clientAuth';
|
|
15125
|
+
export { parseSignedRequestObject } from './oidc/jar';
|
|
15126
|
+
export type { JarParseResult } from './oidc/jar';
|
|
15124
15127
|
export { createInMemoryAuthorizationCodeStore, createInMemoryClientAssertionJtiStore, createInMemoryClientRegistrationTokenStore, createInMemoryDeviceAuthorizationStore, createInMemoryInitialAccessTokenStore, createInMemoryLogoutDeliveryStore, createInMemoryOAuthClientStore, createInMemoryOidcRefreshTokenStore, createInMemoryPushedAuthorizationRequestStore } from './oidc/inMemoryStores';
|
|
15125
15128
|
export { consumePushedRequest, pushAuthorizationRequest, DEFAULT_PAR_TTL_MS, REQUEST_URI_PREFIX } from './oidc/par';
|
|
15126
15129
|
export { fetchUserInfo, readUserInfoBearer, userInfoChallengeHeader } from './oidc/userinfo';
|
package/dist/index.js
CHANGED
|
@@ -4623,6 +4623,12 @@ var verifyAgainstAny = async (assertion, candidates) => {
|
|
|
4623
4623
|
}
|
|
4624
4624
|
return;
|
|
4625
4625
|
};
|
|
4626
|
+
var verifyJwtSignedByClientImpl = async (client, jwt) => {
|
|
4627
|
+
const candidates = await resolveClientJwks(client);
|
|
4628
|
+
if (candidates === undefined || candidates.length === 0)
|
|
4629
|
+
return;
|
|
4630
|
+
return verifyAgainstAny(jwt, candidates);
|
|
4631
|
+
};
|
|
4626
4632
|
var verifyClientAssertion = async ({
|
|
4627
4633
|
assertion,
|
|
4628
4634
|
expectedAudience,
|
|
@@ -4677,6 +4683,10 @@ var verifyClientAssertion = async ({
|
|
|
4677
4683
|
}
|
|
4678
4684
|
return client;
|
|
4679
4685
|
};
|
|
4686
|
+
var verifyJwtSignedByClient = ({
|
|
4687
|
+
jwt,
|
|
4688
|
+
client
|
|
4689
|
+
}) => verifyJwtSignedByClientImpl(client, jwt);
|
|
4680
4690
|
|
|
4681
4691
|
// src/oidc/dpop.ts
|
|
4682
4692
|
var DEFAULT_MAX_AGE_MS = 60000;
|
|
@@ -4893,6 +4903,40 @@ var fanOutBackchannelLogout = async ({
|
|
|
4893
4903
|
return reachable.map(({ client }) => client.clientId);
|
|
4894
4904
|
};
|
|
4895
4905
|
|
|
4906
|
+
// src/oidc/jar.ts
|
|
4907
|
+
var MS_PER_SECOND2 = 1000;
|
|
4908
|
+
var numberClaim = (value) => typeof value === "number" ? value : undefined;
|
|
4909
|
+
var stringClaim = (value) => typeof value === "string" ? value : undefined;
|
|
4910
|
+
var arrayClaim = (value) => Array.isArray(value) && value.every((entry) => typeof entry === "string") ? value : undefined;
|
|
4911
|
+
var parseSignedRequestObject = async ({
|
|
4912
|
+
client,
|
|
4913
|
+
expectedIssuer,
|
|
4914
|
+
jwt,
|
|
4915
|
+
now = Date.now()
|
|
4916
|
+
}) => {
|
|
4917
|
+
const verified = await verifyJwtSignedByClient({ client, jwt });
|
|
4918
|
+
if (verified === undefined) {
|
|
4919
|
+
return { error: "invalid_request_object", ok: false };
|
|
4920
|
+
}
|
|
4921
|
+
const { payload } = verified;
|
|
4922
|
+
const { aud } = payload;
|
|
4923
|
+
const iss = stringClaim(payload.iss);
|
|
4924
|
+
const exp = numberClaim(payload.exp);
|
|
4925
|
+
if (iss !== client.clientId) {
|
|
4926
|
+
return { error: "invalid_request_object", ok: false };
|
|
4927
|
+
}
|
|
4928
|
+
const audMatches = typeof aud === "string" && aud === expectedIssuer || (arrayClaim(aud)?.includes(expectedIssuer) ?? false);
|
|
4929
|
+
if (!audMatches) {
|
|
4930
|
+
return { error: "invalid_request_object", ok: false };
|
|
4931
|
+
}
|
|
4932
|
+
if (exp !== undefined && exp * MS_PER_SECOND2 <= now) {
|
|
4933
|
+
return { error: "invalid_request_object", ok: false };
|
|
4934
|
+
}
|
|
4935
|
+
const envelope = new Set(["aud", "exp", "iat", "iss", "jti", "nbf"]);
|
|
4936
|
+
const params = Object.fromEntries(Object.entries(payload).filter((entry) => typeof entry[1] === "string" && !envelope.has(entry[0])));
|
|
4937
|
+
return { ok: true, params };
|
|
4938
|
+
};
|
|
4939
|
+
|
|
4896
4940
|
// src/oidc/par.ts
|
|
4897
4941
|
var REQUEST_URI_BYTES = 32;
|
|
4898
4942
|
var DEFAULT_PAR_TTL_SECONDS = 90;
|
|
@@ -5467,6 +5511,9 @@ var oidcProviderRoutes = (config) => {
|
|
|
5467
5511
|
introspection_endpoint: `${issuer}${introspectRoute}`,
|
|
5468
5512
|
issuer,
|
|
5469
5513
|
jwks_uri: `${issuer}${jwksRoute}`,
|
|
5514
|
+
request_object_signing_alg_values_supported: ["ES256"],
|
|
5515
|
+
request_parameter_supported: true,
|
|
5516
|
+
require_signed_request_object_supported: true,
|
|
5470
5517
|
response_types_supported: ["code"],
|
|
5471
5518
|
revocation_endpoint: `${issuer}${revokeRoute}`,
|
|
5472
5519
|
subject_types_supported: ["public"],
|
|
@@ -5549,6 +5596,22 @@ var oidcProviderRoutes = (config) => {
|
|
|
5549
5596
|
} else if (query.request_uri !== undefined && query.request_uri.startsWith(REQUEST_URI_PREFIX)) {
|
|
5550
5597
|
return jsonResponse({ error: "invalid_request_uri" }, HTTP_BAD_REQUEST2);
|
|
5551
5598
|
}
|
|
5599
|
+
const initialClientId = effectiveQuery.client_id;
|
|
5600
|
+
const initialClient = initialClientId === undefined ? undefined : await clientStore.findClient(initialClientId);
|
|
5601
|
+
if (effectiveQuery.request !== undefined && initialClient !== undefined) {
|
|
5602
|
+
const parsed = await parseSignedRequestObject({
|
|
5603
|
+
client: initialClient,
|
|
5604
|
+
expectedIssuer: issuer,
|
|
5605
|
+
jwt: effectiveQuery.request
|
|
5606
|
+
});
|
|
5607
|
+
if (!parsed.ok) {
|
|
5608
|
+
return jsonResponse({ error: parsed.error }, HTTP_BAD_REQUEST2);
|
|
5609
|
+
}
|
|
5610
|
+
effectiveQuery = {
|
|
5611
|
+
...parsed.params,
|
|
5612
|
+
client_id: initialClientId
|
|
5613
|
+
};
|
|
5614
|
+
}
|
|
5552
5615
|
const {
|
|
5553
5616
|
client_id: clientId,
|
|
5554
5617
|
code_challenge: codeChallenge,
|
|
@@ -5559,8 +5622,8 @@ var oidcProviderRoutes = (config) => {
|
|
|
5559
5622
|
scope,
|
|
5560
5623
|
state
|
|
5561
5624
|
} = effectiveQuery;
|
|
5562
|
-
const client =
|
|
5563
|
-
if (client === undefined || redirectUri === undefined || !client.redirectUris.includes(redirectUri)) {
|
|
5625
|
+
const client = initialClient;
|
|
5626
|
+
if (client === undefined || clientId !== client.clientId || redirectUri === undefined || !client.redirectUris.includes(redirectUri)) {
|
|
5564
5627
|
return jsonResponse({ error: "invalid_client" }, HTTP_BAD_REQUEST2);
|
|
5565
5628
|
}
|
|
5566
5629
|
const errorRedirect = (error) => {
|
|
@@ -5572,6 +5635,9 @@ var oidcProviderRoutes = (config) => {
|
|
|
5572
5635
|
if (client.requirePushedAuthorizationRequests === true && query.request_uri === undefined) {
|
|
5573
5636
|
return errorRedirect("invalid_request");
|
|
5574
5637
|
}
|
|
5638
|
+
if (client.requireSignedRequestObject === true && query.request === undefined && query.request_uri === undefined) {
|
|
5639
|
+
return errorRedirect("invalid_request_object");
|
|
5640
|
+
}
|
|
5575
5641
|
if (responseType !== "code") {
|
|
5576
5642
|
return errorRedirect("unsupported_response_type");
|
|
5577
5643
|
}
|
|
@@ -5652,6 +5718,7 @@ var oidcProviderRoutes = (config) => {
|
|
|
5652
5718
|
nonce: t12.Optional(t12.String()),
|
|
5653
5719
|
prompt: t12.Optional(t12.String()),
|
|
5654
5720
|
redirect_uri: t12.Optional(t12.String()),
|
|
5721
|
+
request: t12.Optional(t12.String()),
|
|
5655
5722
|
request_uri: t12.Optional(t12.String()),
|
|
5656
5723
|
response_type: t12.Optional(t12.String()),
|
|
5657
5724
|
scope: t12.Optional(t12.String()),
|
|
@@ -21415,6 +21482,8 @@ var oauthClientsTable = pgTable("auth_oauth_clients", {
|
|
|
21415
21482
|
name: varchar("name", { length: ID_LENGTH7 }).notNull(),
|
|
21416
21483
|
post_logout_redirect_uris: text("post_logout_redirect_uris").array(),
|
|
21417
21484
|
redirect_uris: text("redirect_uris").array().notNull(),
|
|
21485
|
+
require_pushed_authorization_requests: boolean("require_pushed_authorization_requests"),
|
|
21486
|
+
require_signed_request_object: boolean("require_signed_request_object"),
|
|
21418
21487
|
scopes: text("scopes").array().notNull()
|
|
21419
21488
|
});
|
|
21420
21489
|
var oauthCodesTable = pgTable("auth_oauth_codes", {
|
|
@@ -21487,6 +21556,8 @@ var toClient2 = (row) => ({
|
|
|
21487
21556
|
name: row.name,
|
|
21488
21557
|
postLogoutRedirectUris: row.post_logout_redirect_uris ?? undefined,
|
|
21489
21558
|
redirectUris: row.redirect_uris,
|
|
21559
|
+
requirePushedAuthorizationRequests: row.require_pushed_authorization_requests ?? undefined,
|
|
21560
|
+
requireSignedRequestObject: row.require_signed_request_object ?? undefined,
|
|
21490
21561
|
scopes: row.scopes
|
|
21491
21562
|
});
|
|
21492
21563
|
var toLogoutDelivery = (row) => ({
|
|
@@ -21686,6 +21757,8 @@ var toClientValues2 = (client) => ({
|
|
|
21686
21757
|
name: client.name,
|
|
21687
21758
|
post_logout_redirect_uris: client.postLogoutRedirectUris ?? null,
|
|
21688
21759
|
redirect_uris: client.redirectUris,
|
|
21760
|
+
require_pushed_authorization_requests: client.requirePushedAuthorizationRequests ?? null,
|
|
21761
|
+
require_signed_request_object: client.requireSignedRequestObject ?? null,
|
|
21689
21762
|
scopes: client.scopes
|
|
21690
21763
|
});
|
|
21691
21764
|
var createPostgresOAuthClientStore = (db) => ({
|
|
@@ -23169,6 +23242,7 @@ export {
|
|
|
23169
23242
|
verifyRecaptcha,
|
|
23170
23243
|
verifyPkce,
|
|
23171
23244
|
verifyPassword,
|
|
23245
|
+
verifyJwtSignedByClient,
|
|
23172
23246
|
verifyJwt,
|
|
23173
23247
|
verifyIdTokenHint,
|
|
23174
23248
|
verifyHcaptcha,
|
|
@@ -23238,6 +23312,7 @@ export {
|
|
|
23238
23312
|
pkceProviderOptions,
|
|
23239
23313
|
passwordlessTokensTable,
|
|
23240
23314
|
passwordlessRoutes,
|
|
23315
|
+
parseSignedRequestObject,
|
|
23241
23316
|
parseSchema,
|
|
23242
23317
|
organizationsTable,
|
|
23243
23318
|
organizationRoutes,
|
|
@@ -23515,5 +23590,5 @@ export {
|
|
|
23515
23590
|
AuthIdentityConflictError
|
|
23516
23591
|
};
|
|
23517
23592
|
|
|
23518
|
-
//# debugId=
|
|
23593
|
+
//# debugId=36AE5503DAE3C8E864756E2164756E21
|
|
23519
23594
|
//# sourceMappingURL=index.js.map
|