mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 06:29:23 +02:00
api for set resource password and auth with resource password
This commit is contained in:
parent
b9ff0b5de6
commit
6044213b9b
10 changed files with 432 additions and 88 deletions
|
@ -275,6 +275,18 @@ authenticated.post(
|
|||
resource.setResourceUsers
|
||||
);
|
||||
|
||||
authenticated.post(
|
||||
`/resource/:resourceId/password`,
|
||||
verifyResourceAccess,
|
||||
verifyUserHasAction(ActionsEnum.setResourceAuthMethods),
|
||||
resource.setResourcePassword
|
||||
);
|
||||
|
||||
unauthenticated.post(
|
||||
"/resource/:resourceId/auth/password",
|
||||
resource.authWithPassword
|
||||
);
|
||||
|
||||
// authenticated.get(
|
||||
// "/role/:roleId/resources",
|
||||
// verifyRoleAccess,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue