TruBudget
TruBudget copied to clipboard
#1755 api: fetch user groups from server
Checklist
- [x] I have followed (at least) the PR section of the contributing guide.
- [x] I fixed all necessary PR warnings
- [x] The commit history is clean
- [x] The E2E tests are passing
- [x] If possible, the issue has been divided into more subtasks
- [x] I did a self review before requesting a review from another team member
Description
How to test
To test if these changes prevent the fault of disabling authentication, you need to reproduce the bug:
- On main branch:
- Create lots of groups with long names, so so the token cookie will exceed the limit of ~4kBs, with user XYZ assigned to each (example below, add to groups.json and rebuild provisioning image)
- Login as XYZ
- You should not be able to login (browser ignores set-sookie header if it's over 5000 characters)
- Switch to MR branch, same setup. You should be able to login
Closes #1755
Warnings | |
---|---|
:warning: | No CHANGELOG added. |
Generated by :no_entry_sign: dangerJS against 0689a2ad02e96969438fabd10b0eb6f0c2595810
Notes | Time | |
---|---|---|
:grey_exclamation: | Note for Reviewer: E2E tests on pipeline 58568 on remote server started | Tue, 16 Apr 2024 11:21:29 +0000 |
Generated by E2E-Test
{ "id": "1NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Developers", "users": ["mstein"] }, { "id":"2NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Testers", "users": ["mstein"] }, { "id":"3NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Jesters", "users": ["mstein"] }, { "id":"4NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName":"QA", "users":["mstein"] }, { "id":"5NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Pesters", "users": ["mstein"] }, { "id":"6NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Festers", "users": ["mstein"] }, { "id":"7NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Mobsters", "users": ["mstein"] }, { "id": "8NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Sisters", "users": ["mstein"] }, { "id":"9NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Bistros", "users": ["mstein"] }, { "id":"10V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Kestrels", "users": ["mstein"] }, { "id":"11V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName":"Nesters", "users":["mstein"] }, { "id":"12V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Westers", "users": ["mstein"] }, { "id":"13V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Osters", "users": ["mstein"] }, { "id":"14V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Mobsters", "users": ["mstein"] }, { "id": "15V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Developers", "users": ["mstein"] }, { "id":"16V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Testers", "users": ["mstein"] }, { "id":"17V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Jesters", "users": ["mstein"] }, { "id":"18V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName":"QA", "users":["mstein"] }, { "id":"19V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Pesters", "users": ["mstein"] }, { "id":"20V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Festers", "users": ["mstein"] }, { "id":"21V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Mobsters", "users": ["mstein"] }, { "id": "22V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Sisters", "users": ["mstein"] }, { "id":"23V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Bistros", "users": ["mstein"] }, { "id":"24V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Kestrels", "users": ["mstein"] }, { "id":"25V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName":"Nesters", "users":["mstein"] }, { "id":"26V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Westers", "users": ["mstein"] }, { "id":"27V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Osters", "users": ["mstein"] }, { "id":"28V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Mobsters", "users": ["mstein"] }, { "id": "29V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Developers", "users": ["mstein"] }, { "id":"30V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Testers", "users": ["mstein"] }, { "id":"31V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Jesters", "users": ["mstein"] }, { "id":"32V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName":"QA", "users":["mstein"] }, { "id":"33V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Pesters", "users": ["mstein"] }, { "id":"34V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Festers", "users": ["mstein"] }, { "id":"35V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Mobsters", "users": ["mstein"] }, { "id": "36V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Sisters", "users": ["mstein"] }, { "id":"37V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Bistros", "users": ["mstein"] }, { "id":"38V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Kestrels", "users": ["mstein"] }, { "id":"39V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName":"Nesters", "users":["mstein"] }, { "id":"40V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Westers", "users": ["mstein"] }, { "id":"41V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Osters", "users": ["mstein"] }, { "id":"422FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Mobsters", "users": ["mstein"] }, { "id": "43V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Developers", "users": ["mstein"] }, { "id":"44FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Testers", "users": ["mstein"] }, { "id":"452FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Jesters", "users": ["mstein"] }, { "id":"462FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName":"QA", "users":["mstein"] }, { "id":"47FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Pesters", "users": ["mstein"] }, { "id":"48V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Festers", "users": ["mstein"] }, { "id":"49V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Mobsters", "users": ["mstein"] }, { "id": "50V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N4", "displayName": "Sisters", "users": ["mstein"] }, { "id": "51NV2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N", "displayName": "Bistros", "users": ["mstein"] }, { "id":"522FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N", "displayName": "Kestrels", "users": ["mstein"] }, { "id":"53V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9", "displayName":"Nesters", "users":["mstein"] }, { "id":"542FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9N", "displayName": "Westers", "users": ["mstein"] }, { "id":"55V2FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9", "displayName": "Osters", "users": ["mstein"] }, { "id":"562FjlBawKKSSYFq0qbetZfkocwMQrsRwr3daaZn153Zl0gJl2g1NYex8lfe9", "displayName": "Mobsters", "users": ["mstein"] }