mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
api for set resource password and auth with resource password
This commit is contained in:
parent
c565c14aa0
commit
e802d061ba
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