@camstack/addon-auth 1.1.1

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/package.json ADDED
@@ -0,0 +1,130 @@
1
+ {
2
+ "name": "@camstack/addon-auth",
3
+ "version": "1.1.1",
4
+ "description": "CamStack authentication bundle — magic-link, OIDC, and WebAuthn/passkey. Multi-entry npm package shipping 3 addons under a single bundle; each addon keeps its own id, capabilities, and runner.",
5
+ "keywords": [
6
+ "camstack",
7
+ "addon",
8
+ "camstack-addon",
9
+ "auth",
10
+ "magic-link",
11
+ "oidc",
12
+ "sso",
13
+ "webauthn",
14
+ "passkey"
15
+ ],
16
+ "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/camstack/server"
20
+ },
21
+ "main": "./dist/magic-link/auth-magic-link.addon.js",
22
+ "exports": {
23
+ "./magic-link": {
24
+ "import": "./dist/magic-link/auth-magic-link.addon.mjs",
25
+ "require": "./dist/magic-link/auth-magic-link.addon.js"
26
+ },
27
+ "./oidc": {
28
+ "import": "./dist/oidc/auth-oidc.addon.mjs",
29
+ "require": "./dist/oidc/auth-oidc.addon.js"
30
+ },
31
+ "./webauthn": {
32
+ "import": "./dist/webauthn/auth-webauthn.addon.mjs",
33
+ "require": "./dist/webauthn/auth-webauthn.addon.js"
34
+ },
35
+ "./package.json": "./package.json"
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "assets"
40
+ ],
41
+ "camstack": {
42
+ "displayName": "Authentication",
43
+ "bundle": {
44
+ "displayName": "Authentication",
45
+ "description": "Magic-link, OIDC SSO, and WebAuthn/passkey login providers."
46
+ },
47
+ "addons": [
48
+ {
49
+ "id": "auth-magic-link",
50
+ "execution": {
51
+ "group": "auth"
52
+ },
53
+ "category": "system",
54
+ "name": "Magic Link",
55
+ "description": "Passwordless email login. Sends a one-time link to the user's email; clicking it logs them in. SMTP delivery is configured per-deployment.",
56
+ "entry": "./dist/magic-link/auth-magic-link.addon.js",
57
+ "capabilities": [
58
+ {
59
+ "name": "auth-provider"
60
+ },
61
+ {
62
+ "name": "addon-routes"
63
+ }
64
+ ],
65
+ "protected": true
66
+ },
67
+ {
68
+ "id": "auth-oidc",
69
+ "execution": {
70
+ "group": "auth"
71
+ },
72
+ "category": "system",
73
+ "name": "OpenID Connect",
74
+ "description": "Standards-compliant OIDC authentication. Configure issuer URL + client credentials to enable SSO via Google, Microsoft, Okta, Keycloak, etc. In-process on hub root — pure HTTP/JWT, no native deps.",
75
+ "entry": "./dist/oidc/auth-oidc.addon.js",
76
+ "icon": "assets/oidc/icon.svg",
77
+ "capabilities": [
78
+ {
79
+ "name": "auth-provider"
80
+ },
81
+ {
82
+ "name": "addon-routes"
83
+ }
84
+ ],
85
+ "protected": true
86
+ },
87
+ {
88
+ "id": "auth-webauthn",
89
+ "execution": {
90
+ "group": "auth"
91
+ },
92
+ "category": "system",
93
+ "name": "Passkey",
94
+ "description": "Phishing-resistant passwordless 2FA via the WebAuthn standard. Users enroll a passkey (Touch ID, Windows Hello, YubiKey, …) and authenticate with the browser's native prompt — no codes to type.",
95
+ "entry": "./dist/webauthn/auth-webauthn.addon.js",
96
+ "icon": "assets/webauthn/icon.svg",
97
+ "capabilities": [
98
+ {
99
+ "name": "auth-provider"
100
+ },
101
+ {
102
+ "name": "user-passkeys"
103
+ }
104
+ ],
105
+ "protected": true
106
+ }
107
+ ]
108
+ },
109
+ "scripts": {
110
+ "build": "vite build",
111
+ "typecheck": "tsc --noEmit",
112
+ "test": "vitest run --passWithNoTests",
113
+ "validate": "tsx ../../scripts/validate-addon.ts .",
114
+ "publish": "npm publish --access public"
115
+ },
116
+ "peerDependencies": {
117
+ "@camstack/types": "*"
118
+ },
119
+ "dependencies": {
120
+ "@simplewebauthn/server": "11.0.0",
121
+ "jose": "^6.2.3"
122
+ },
123
+ "devDependencies": {
124
+ "@camstack/types": "*",
125
+ "tsx": "^4.0.0",
126
+ "typescript": "~6.0.3",
127
+ "vite": "^8.0.11",
128
+ "vitest": "^3.2.4"
129
+ }
130
+ }