summaryrefslogtreecommitdiff
path: root/bin/idp
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-02 18:44:34 -0600
committermo khan <mo@mokhan.ca>2025-04-02 18:44:34 -0600
commit064d14bfb1be7a3ed758eae2200eb73c5250e5fa (patch)
tree80e7026bcb6e79a19197145a32a5275a8344b949 /bin/idp
parent96f7120703a46bcd26bf0bf140d7127adc1ade4a (diff)
refactor: switch from casbin to cedar
Diffstat (limited to 'bin/idp')
-rwxr-xr-xbin/idp9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/idp b/bin/idp
index c2c5311..62462de 100755
--- a/bin/idp
+++ b/bin/idp
@@ -167,7 +167,14 @@ module Authn
end
def to_global_id
- ::GlobalID.create(self, app: "example").to_s
+ ::GlobalID.new(
+ ::URI::GID.build(
+ app: "example",
+ model_name: "User",
+ model_id: id,
+ params: {}
+ )
+ ).to_s
end
end