Commit 1be77a9
committed
fix(bb-auth-cognito): admin createUser attr-prefix + getUser groups (AWS parity)
Live sandbox e2e for the new admin runtime paths surfaced two mock-vs-AWS
parity bugs the unit tests couldn't:
- AWS admin.createUser passed custom attributes unprefixed, so Cognito rejected
them ('attribute department is not defined in schema'). Now runs them through
prefixCustomAttrs like signUp and the mock do.
- AWS admin.getUser never populated AdminUser.groups (AdminGetUser doesn't return
memberships), so the typed groups field was always empty on AWS. Now fetches
them via AdminListGroupsForUser, matching the mock.
Adds sandbox e2e coverage for the new surface: getUser attribute+group round-trip
(Gap 1) and scan() with a Cognito ListUsers Filter (Gap 4), plus the backend
routes they drive. Verified live (us-west-2): all 7 admin e2e tests pass.1 parent 8d2027b commit 1be77a9
3 files changed
Lines changed: 81 additions & 1 deletion
File tree
- packages/bb-auth-cognito/src
- test-apps/comprehensive
- aws-blocks
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
778 | 781 | | |
779 | 782 | | |
780 | 783 | | |
| |||
837 | 840 | | |
838 | 841 | | |
839 | 842 | | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
840 | 855 | | |
841 | 856 | | |
842 | 857 | | |
843 | 858 | | |
844 | 859 | | |
| 860 | + | |
845 | 861 | | |
846 | 862 | | |
847 | 863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
972 | 997 | | |
973 | 998 | | |
974 | 999 | | |
| |||
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
113 | 152 | | |
114 | 153 | | |
0 commit comments