Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account: Role and Claims management #66

Open
komdil opened this issue Sep 4, 2023 · 0 comments
Open

Account: Role and Claims management #66

komdil opened this issue Sep 4, 2023 · 0 comments
Assignees
Labels

Comments

@komdil
Copy link
Owner

komdil commented Sep 4, 2023

ROLE:

In AccountService an administrator should be able to manage Roles for users

User Stories:

There should be a Role (RoleManager) in system that has access to manage roles
If I haven't this role, I should not be able to manage roles
If I am RoleManager I can get, create, delete, and update roles

Requirements:
Create RolesController
Authorize with RoleManager role
GET: List of roles which contains just Name
Get single Role: Use slug based query, for example /api/roles/applicant. Here applicant the Name of role
Create: It should provide just Name
Update: It should provide slug of updating claim in request route, and Name
Delete: Delete it using slug

Create UserRolesController
Authorize with RoleManager role
GET: List of roles which contains just UserName, Role (Filter Role, UserName)
Get single Role: Use slug based query, for example /api/userroles/komdil-admin.
Create: It should provide just RoleId, UserId
Delete: Delete it using slug

Add integration tests

CLAIMS:
In AccountService an administrator should be able to manage Claims for users

User Stories:

If I am not a ClaimsManager, I should not be able to manage claims
If I am ClaimsManager I can get, create, delete, and update claims
I am a user in MRA Jobs and I should have Id claim by default. It will be used to insert user related data in MRA Jobs (The same with OnlinePlatform)
Requirements:
Create ClaimsController
Authorize with super admin role
GET: List of claims which contains (UserName, ClaimType, ClaimValue) (Except of Id,) Filter (Username,ClaimType)
Get single Claim: Use slug based query, for example /api/claims/komdil-application. Here komdil is username and application is claim type
Create: It should provide UserId, ClaimType and ClaimValue
Update:It should provide slug of updating claim in request route, ClaimType and ClaimValue
Delete: Delete it using slug

USERS:
In AccountService an administrator should be able to manage Users

User Stories:

There should be a Role (UserManager) in system that has access to manage users
If I haven't this role, I should not be able to manage users

Requirements:
Create UsersController
Authorize with UserManager role
GET: List of users which contains Id, UserName, Email, PhoneNumber,EmailConfirmed, PhoneNumberConfirmed
Get single User: Use slug based query, for example /api/users/komdil. Here komdil is the UserName of the user

It will be ready on 26/09/2023
It will be ready on 28/09/2023
It will be ready on 03/10/2023
It will be ready on 05/10/2023
It will be ready on 10/10/2023

@komdil komdil added the Task label Sep 4, 2023
@komdil komdil added this to itrun-erp Sep 4, 2023
@komdil komdil moved this to 📋 Backlog in itrun-erp Sep 4, 2023
@QulmatovBehzod02 QulmatovBehzod02 moved this from 📋 Backlog to 🏗 In progress in itrun-erp Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants