From 7049370a437fca8e052ebf8e771870adf1b4e5be Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Fri, 21 Jan 2022 15:11:36 +0100 Subject: [PATCH] tracker.org --- tracker.org | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tracker.org b/tracker.org index fc653d1c..c5a46fa2 100644 --- a/tracker.org +++ b/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/~ read a single org access request - ~PATCH /iroh/user-mgmt/org-requests/~ 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~