tracker.org
This commit is contained in:
parent
9c4edf9428
commit
7049370a43
1 changed files with 24 additions and 0 deletions
24
tracker.org
24
tracker.org
|
@ -2253,6 +2253,30 @@ There should be a CRUD API restricted to the ~admin/user-mgmt/org-requests~ scop
|
|||
- ~GET /iroh/user-mgmt/org-requests/<id>~ read a single org access request
|
||||
- ~PATCH /iroh/user-mgmt/org-requests/<id>~ Grant or Reject the access
|
||||
|
||||
****** schemas
|
||||
|
||||
#+begin_src clojure
|
||||
(s/defschema OrgAccessRequestStatus
|
||||
(s/enum :pending :accepted :rejected))
|
||||
|
||||
(s/defschema OrgAccessRequest
|
||||
(st/merge
|
||||
{:id UUID
|
||||
:idp-mapping IdPMapping
|
||||
:user-email s/Str
|
||||
:org-id s/Str
|
||||
:status OrgAccessRequestStatus
|
||||
:created-at DateTime}
|
||||
(st/optional-keys
|
||||
{:user-name s/Str
|
||||
:user-nick s/Str
|
||||
:granted-role Role ;; the role granted if the request is accepted
|
||||
:approver-id UserId
|
||||
:approver-email UserEmail ;; email of the approver
|
||||
:updated-at DateTime
|
||||
})))
|
||||
#+end_src
|
||||
|
||||
****** List
|
||||
|
||||
~GET /iroh/user-mgmt/org-requests~
|
||||
|
|
Loading…
Reference in a new issue