0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

chore: add M2M RBAC changeset for @logto/core and update changelog (#4618)

This commit is contained in:
Darcy Ye 2023-10-07 17:54:14 +08:00 committed by GitHub
parent 765cfd652f
commit 03bc7888b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 3 deletions

View file

@ -0,0 +1,31 @@
---
"@logto/core": minor
---
machine-to-machine (M2M) role-based access control (RBAC)
### Summary
This feature enables Logto users to apply role-based access control (RBAC) to their machine-to-machine (M2M) applications.
With the update, Logto users can now effectively manage permissions for their M2M applications, resulting in improved security and flexibility.
Following new APIs are added for M2M role management:
**Applications**
- `POST /applications/:appId/roles` assigns role(s) to the M2M application
- `DELETE /applications/:appId/roles/:roleId` deletes the role from the M2M application
- `GET /applications/:appId/roles` lists all roles assigned to the M2M application
**Roles**
- `POST /roles/:roleId/applications` assigns the role to multiple M2M applications
- `DELETE /roles/:roleId/applications/:appId` removes the M2M application assigned to the role
- `GET /roles/:roleId/applications` lists all M2M applications granted with the role
Updated following API:
**Roles**
- `POST /roles` to specify the role type (either `user` or `machine-to-machine` role)
**Users**
- `POST /users/:userId/roles` to prevent assigning M2M roles to end-users

View file

@ -10,9 +10,7 @@
This feature enables Logto users to apply role-based access control (RBAC) to their machine-to-machine (M2M) applications.
In Logto, we have enabled Logto users to utilize RBAC to manage their own end-users. However, the methods for M2M connections and authorization are even more prevalent and critical across various use cases than end-user access management.
From now on, Logto enables it's users to manage their M2M applications using RBAC.
With the update, Logto users can now effectively manage permissions for their M2M applications, resulting in improved security and flexibility.
#### New role type: machine-to-machine