tracker.org

This commit is contained in:
Yann Esposito (Yogsototh) 2022-01-21 15:11:36 +01:00
parent 9c4edf9428
commit 7049370a43
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -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~