@friggframework/schemas 2.0.0--canary.461.651659d.0 → 2.0.0--canary.461.d74bc46.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/schemas",
|
|
3
|
-
"version": "2.0.0--canary.461.
|
|
3
|
+
"version": "2.0.0--canary.461.d74bc46.0",
|
|
4
4
|
"description": "Canonical JSON Schema definitions for Frigg Framework",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"validators/",
|
|
40
40
|
"index.js"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "d74bc4663a37599d6f1924b84a265bf54cae948f"
|
|
43
43
|
}
|
|
@@ -49,13 +49,84 @@
|
|
|
49
49
|
},
|
|
50
50
|
"user": {
|
|
51
51
|
"type": "object",
|
|
52
|
-
"description": "User management configuration",
|
|
52
|
+
"description": "User management and authentication configuration",
|
|
53
53
|
"properties": {
|
|
54
|
+
"usePassword": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"description": "Enable password-based authentication for user login",
|
|
57
|
+
"default": true
|
|
58
|
+
},
|
|
54
59
|
"password": {
|
|
55
60
|
"type": "boolean",
|
|
56
|
-
"description": "Enable password-based authentication",
|
|
61
|
+
"description": "DEPRECATED: Use 'usePassword' instead. Enable password-based authentication",
|
|
62
|
+
"default": true
|
|
63
|
+
},
|
|
64
|
+
"primary": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Primary user type for authentication",
|
|
67
|
+
"enum": ["individual", "organization"],
|
|
68
|
+
"default": "individual"
|
|
69
|
+
},
|
|
70
|
+
"individualUserRequired": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"description": "Require individual user for authentication",
|
|
57
73
|
"default": true
|
|
58
74
|
},
|
|
75
|
+
"organizationUserRequired": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Require organization user for authentication",
|
|
78
|
+
"default": false
|
|
79
|
+
},
|
|
80
|
+
"authModes": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"description": "Authentication mode configuration - enables multiple authentication strategies",
|
|
83
|
+
"properties": {
|
|
84
|
+
"friggToken": {
|
|
85
|
+
"type": "boolean",
|
|
86
|
+
"description": "Enable Frigg native bearer token authentication (from /user/login)",
|
|
87
|
+
"default": true
|
|
88
|
+
},
|
|
89
|
+
"xFriggHeaders": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"description": "Enable backend-to-backend authentication using x-frigg-appUserId and x-frigg-appOrgId headers",
|
|
92
|
+
"default": false
|
|
93
|
+
},
|
|
94
|
+
"adopterJwt": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"description": "Enable custom JWT authentication from adopter's auth system (NOT YET IMPLEMENTED)",
|
|
97
|
+
"default": false
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
},
|
|
102
|
+
"jwtConfig": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"description": "JWT configuration for adopter JWT authentication mode (when authModes.adopterJwt is true)",
|
|
105
|
+
"properties": {
|
|
106
|
+
"secret": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"description": "JWT secret key for signature validation (should be set via environment variable)"
|
|
109
|
+
},
|
|
110
|
+
"userIdClaim": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"description": "JWT claim name containing the user ID",
|
|
113
|
+
"default": "sub"
|
|
114
|
+
},
|
|
115
|
+
"orgIdClaim": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "JWT claim name containing the organization ID",
|
|
118
|
+
"default": "org_id"
|
|
119
|
+
},
|
|
120
|
+
"algorithm": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "JWT signing algorithm",
|
|
123
|
+
"enum": ["HS256", "HS384", "HS512", "RS256", "RS384", "RS512"],
|
|
124
|
+
"default": "HS256"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": ["secret"],
|
|
128
|
+
"additionalProperties": false
|
|
129
|
+
},
|
|
59
130
|
"fields": {
|
|
60
131
|
"type": "array",
|
|
61
132
|
"description": "Additional user fields",
|