From 89e0367f6f6806dcd289ddc794adf26220a367f9 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 17 Apr 2025 19:56:26 -0400 Subject: [PATCH] Infini-DL360/hedgedoc: configure oauth --- hosts/Infini-DL360/hedgedoc.nix | 12 ++++++++++++ hosts/Infini-DL360/secrets/hedgedoc.age | Bin 553 -> 787 bytes 2 files changed, 12 insertions(+) diff --git a/hosts/Infini-DL360/hedgedoc.nix b/hosts/Infini-DL360/hedgedoc.nix index 61c988c..9dec1cd 100644 --- a/hosts/Infini-DL360/hedgedoc.nix +++ b/hosts/Infini-DL360/hedgedoc.nix @@ -25,6 +25,18 @@ in allowFreeURL = true; requireFreeURLAuthentication = true; + + oauth2 = { + baseURL = "https://auth.inx.moe"; + userProfileURL = "https://auth.inx.moe/application/o/userinfo/"; + userProfileUsernameAttr = "preferred_username"; + userProfileDisplayNameAttr = "name"; + userProfileEmailAttr = "email"; + tokenURL = "https://auth.inx.moe/application/o/token/"; + authorizationURL = "https://auth.inx.moe/application/o/authorize/"; + clientID = "W1nhnUi43GweNljV4ADGfZ9VKuH4aoN1cwCUNlFp"; + scope = "openid email profile"; + }; }; }; diff --git a/hosts/Infini-DL360/secrets/hedgedoc.age b/hosts/Infini-DL360/secrets/hedgedoc.age index d91986495e7bf588e8411f00ef276334db74fdb2..76dc2801bf35d575b1becea91b59ec71138c27f4 100644 GIT binary patch delta 740 zcmZ37v1!t)WqUch3Y~x zw+vMUmmG!6kXkGC>~yZm!n7psddCo_OryfI3~+4`s!TbqB-?T%8jDalhGF(an`^B9#=d>E#c1o}J>e5= z=AKsgn5N`9IiSI_OOc1&IPS>>9lqmEmy#-vBvtN<{^S1U$oB%FH5V^9xP9dKUiDC2Ts zIrVkh&-$qb(HAQw9Wv3_eeR{G{rc?k1DiMBZa7*q;i^N@1r?DD|Cmqj`Jpd@C!SJm1>S_G-Z!``x0-o5WV0xbTkS;pL_q sQ>v!lbQERnIbNTrgtJz$0H&yS?VN%!(033xv-2eap delta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