@flipdish/authorization 0.0.6-rc.1766091435 → 0.0.6-rc.1779812558

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/README.md CHANGED
@@ -69,18 +69,6 @@ describe("Authorization Tests", () => {
69
69
  );
70
70
  });
71
71
 
72
- test("List Feature Based Roles", async () => {
73
- const featureBasedRolesResponse =
74
- await configurationData.listFeatureBasedRoles();
75
- expect(featureBasedRolesResponse.status).toBe(200);
76
- expect(featureBasedRolesResponse.data.roles).toBeDefined();
77
- expect(featureBasedRolesResponse.data.roles.length).toBeGreaterThan(0);
78
- expect(featureBasedRolesResponse.data.roles).toContainEqual({
79
- name: "OrgViewer",
80
- permissions: ["ViewOrg"],
81
- });
82
- });
83
-
84
72
  test("List named roles", async () => {
85
73
  const namedRolesResponse = await configurationData.listRoles();
86
74
  expect(namedRolesResponse.status).toBe(200);
@@ -215,7 +203,7 @@ describe("Authorization Tests", () => {
215
203
  roles: ["Admin"],
216
204
  });
217
205
  expect(isInRoleResponse.status).toBe(200);
218
- expect(isInRoleResponse.data.authorized).toBe(false);
206
+ expect(isInRoleResponse.data.authorized).toBe(true);
219
207
  });
220
208
 
221
209
  it("should authenticate and check if a user is in a role with a valid Bearer token", async () => {
@@ -227,7 +215,7 @@ describe("Authorization Tests", () => {
227
215
  roles: ["Admin"],
228
216
  });
229
217
  expect(isInRoleResponse.status).toBe(200);
230
- expect(isInRoleResponse.data.authorized).toBe(false);
218
+ expect(isInRoleResponse.data.authorized).toBe(true);
231
219
  });
232
220
  });
233
221
  });