@checkstack/auth-common 0.4.0 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @checkstack/auth-common
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [83557c7]
8
+ - @checkstack/common@0.4.0
9
+
10
+ ## 0.5.0
11
+
12
+ ### Minor Changes
13
+
14
+ - d94121b: Add group-to-role mapping for SAML and LDAP authentication
15
+
16
+ **Features:**
17
+
18
+ - SAML and LDAP users can now be automatically assigned Checkstack roles based on their directory group memberships
19
+ - Configure group mappings in the authentication strategy settings with dynamic role dropdowns
20
+ - Managed role sync: roles configured in mappings are fully synchronized (added when user gains group, removed when user leaves group)
21
+ - Unmanaged roles (manually assigned, not in any mapping) are preserved during sync
22
+ - Optional default role for all users from a directory
23
+
24
+ **Bug Fix:**
25
+
26
+ - Fixed `x-options-resolver` not working for fields inside arrays with `.default([])` in DynamicForm schemas
27
+
3
28
  ## 0.4.0
4
29
 
5
30
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/auth-common",
3
- "version": "0.4.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -68,6 +68,10 @@ const UpsertExternalUserInputSchema = z.object({
68
68
  accountId: z.string(),
69
69
  password: z.string(),
70
70
  autoUpdateUser: z.boolean().optional(),
71
+ /** Role IDs to assign based on current directory group membership */
72
+ syncRoles: z.array(z.string()).optional(),
73
+ /** All role IDs that are managed by directory mappings (used to remove roles when user leaves groups) */
74
+ managedRoleIds: z.array(z.string()).optional(),
71
75
  });
72
76
 
73
77
  const UpsertExternalUserOutputSchema = z.object({