app/matrix/matrix.hackerspace.pl: migrate to matrix-ng
Change-Id: I131049da1037d9501a21a900d46929242fd5cba5
diff --git a/app/matrix/matrix.hackerspace.pl.jsonnet b/app/matrix/matrix.hackerspace.pl.jsonnet
index 0a34a04..7e6deea 100644
--- a/app/matrix/matrix.hackerspace.pl.jsonnet
+++ b/app/matrix/matrix.hackerspace.pl.jsonnet
@@ -1,4 +1,4 @@
-local matrix = import "lib/matrix.libsonnet";
+local matrix = import "lib/matrix-ng.libsonnet";
local irc = import "lib/appservice-irc.libsonnet";
local telegram = import "lib/appservice-telegram.libsonnet";
@@ -9,15 +9,15 @@
namespace: "matrix",
webDomain: "matrix.hackerspace.pl",
serverName: "hackerspace.pl",
- cas: {
+ oidc+: {
enable: true,
- oauth2: {
- clientID: "matrix",
- clientSecret: { secretKeyRef: { name: "oauth2-cas-proxy", key: "oauth2_secret" } },
- scope: "profile:read",
- authorizeURL: "https://sso.hackerspace.pl/oauth/authorize",
- tokenURL: "https://sso.hackerspace.pl/oauth/token",
- userinfoURL: "https://sso.hackerspace.pl/api/1/profile",
+ config+: {
+ allow_existing_users: true,
+ issuer: "https://sso.hackerspace.pl",
+ client_id: "matrix",
+ client_secret: { secretKeyRef: { name: "oauth2-cas-proxy", key: "oauth2_secret" } },
+ user_profile_method: "userinfo_endpoint",
+ client_auth_method: "client_secret_post",
},
},
},