bcgov / bcgov/wps

HFI Calculator: Admin interface for permissions

Open
#3,544 0 comments 0 reactions 0 assignees View on GitHub
User Story
Dominant language
Python
Stars
65
Forks
11
Avg merge
21h 25m
Merged PRs (30d)
70

Description

**As a** Fire Centre admin (TBD)

**I need** to assign and unassign hfi calculator roles to idirs

**So That** users are able to prep hfi sheets when necessary

**Acceptance Criteria**
- [ ] Given an HFI admin chooses a role to assign to an idir, When submitted, Then idir has the role(s) associated
- [ ] Given an HFI admin chooses to unassign role(s) to an idir, When submitted, Then idir does not have the role(s) associated anymore

**Blocked by**
- https://github.com/bcgov/wps/issues/3545

**Additional Context**
- Can we leverage FAM?
- Can we leverage the SSO admin panel?
- Get list of users: https://api.loginproxy.gov.bc.ca/openapi/swagger#/Users/get__environment__idir_users
- Assign role to user: https://api.loginproxy.gov.bc.ca/openapi/swagger#/Role-Mapping/get_integrations__integrationId___environment__roles__roleName__users
- Unassign role to user: https://api.loginproxy.gov.bc.ca/openapi/swagger#/Role-Mapping/delete_integrations__integrationId___environment__users__username__roles__roleName_
- Assign initial list of users + privileges
- SSO OpenAPI docs: https://api.loginproxy.gov.bc.ca/openapi/swagger
- https://bcgov.sharepoint.com/:f:/r/teams/01324/Shared%20Documents/General/_Preparedness%20Products%20(HFI,%20Prep)/HFI%20Calculator/Roles%20and%20Permissions?csf=1&web=1&e=W7X0SU

**Definition of Done**
https://github.com/bcgov/wps/wiki/Definition-of-Done

Contributor guide

Open the contributing guide

Research direction

First resolve the dependency on issue #3545, then review the SSO OpenAPI documentation and the listed user and role-mapping endpoints. Confirm whether FAM or the SSO admin panel should be used, define the initial users and privileges, and verify that the acceptance criteria for assigning and unassigning roles are met.

Written by the indexing model from the issue text.

Assessment

Domain
api, authentication, authorization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.