mirror of
https://github.com/YunoHost-Apps/outline_ynh.git
synced 2024-09-03 19:56:12 +02:00
Test update visitor patch
This commit is contained in:
parent
d33e56bb74
commit
f95a1a5268
2 changed files with 12 additions and 17 deletions
|
@ -155,26 +155,19 @@ index 872709a30..52ef90de6 100644
|
||||||
"prosemirror-dropcursor": "^1.8.1",
|
"prosemirror-dropcursor": "^1.8.1",
|
||||||
diff --git a/plugins/req/plugin.json b/plugins/req/plugin.json
|
diff --git a/plugins/req/plugin.json b/plugins/req/plugin.json
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000..ae7c40333
|
index 000000000..bf4c23043
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/req/plugin.json
|
+++ b/plugins/req/plugin.json
|
||||||
@@ -0,0 +1,4 @@
|
@@ -0,0 +1,6 @@
|
||||||
+{
|
+{
|
||||||
|
+ "id": "visiteur",
|
||||||
+ "name": "visiteur",
|
+ "name": "visiteur",
|
||||||
|
+ "priority": 30,
|
||||||
+ "description": "Adds an req compatible authentication provider."
|
+ "description": "Adds an req compatible authentication provider."
|
||||||
+}
|
+}
|
||||||
diff --git a/plugins/req/server/.babelrc b/plugins/req/server/.babelrc
|
|
||||||
new file mode 100644
|
|
||||||
index 000000000..c87001bc4
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/plugins/req/server/.babelrc
|
|
||||||
@@ -0,0 +1,3 @@
|
|
||||||
+{
|
|
||||||
+ "extends": "../../../server/.babelrc"
|
|
||||||
+}
|
|
||||||
diff --git a/plugins/req/server/auth/req.ts b/plugins/req/server/auth/req.ts
|
diff --git a/plugins/req/server/auth/req.ts b/plugins/req/server/auth/req.ts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000..bc03fc6d3
|
index 000000000..6fca14d54
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/req/server/auth/req.ts
|
+++ b/plugins/req/server/auth/req.ts
|
||||||
@@ -0,0 +1,70 @@
|
@@ -0,0 +1,70 @@
|
||||||
|
@ -185,7 +178,6 @@ index 000000000..bc03fc6d3
|
||||||
+import { Strategy as ReqStrategy } from "passport-req";
|
+import { Strategy as ReqStrategy } from "passport-req";
|
||||||
+import { slugifyDomain } from "@shared/utils/domains";
|
+import { slugifyDomain } from "@shared/utils/domains";
|
||||||
+import accountProvisioner from "@server/commands/accountProvisioner";
|
+import accountProvisioner from "@server/commands/accountProvisioner";
|
||||||
+import env from "@server/env";
|
|
||||||
+import passportMiddleware from "@server/middlewares/passport";
|
+import passportMiddleware from "@server/middlewares/passport";
|
||||||
+import { User } from "@server/models";
|
+import { User } from "@server/models";
|
||||||
+import { AuthenticationResult } from "@server/types";
|
+import { AuthenticationResult } from "@server/types";
|
||||||
|
@ -194,6 +186,7 @@ index 000000000..bc03fc6d3
|
||||||
+ getTeamFromContext,
|
+ getTeamFromContext,
|
||||||
+ getClientFromContext,
|
+ getClientFromContext,
|
||||||
+} from "@server/utils/passport";
|
+} from "@server/utils/passport";
|
||||||
|
+import env from "@server/env";
|
||||||
+
|
+
|
||||||
+const router = new Router();
|
+const router = new Router();
|
||||||
+const providerName = "req";
|
+const providerName = "req";
|
||||||
|
|
|
@ -12,17 +12,19 @@ index e0d3f56ea..fcd1ce270 100644
|
||||||
"prosemirror-commands": "^1.5.2",
|
"prosemirror-commands": "^1.5.2",
|
||||||
diff --git a/plugins/req/plugin.json b/plugins/req/plugin.json
|
diff --git a/plugins/req/plugin.json b/plugins/req/plugin.json
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000..ae7c40333
|
index 000000000..bf4c23043
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/req/plugin.json
|
+++ b/plugins/req/plugin.json
|
||||||
@@ -0,0 +1,4 @@
|
@@ -0,0 +1,6 @@
|
||||||
+{
|
+{
|
||||||
|
+ "id": "visiteur",
|
||||||
+ "name": "visiteur",
|
+ "name": "visiteur",
|
||||||
|
+ "priority": 30,
|
||||||
+ "description": "Adds an req compatible authentication provider."
|
+ "description": "Adds an req compatible authentication provider."
|
||||||
+}
|
+}
|
||||||
diff --git a/plugins/req/server/auth/req.ts b/plugins/req/server/auth/req.ts
|
diff --git a/plugins/req/server/auth/req.ts b/plugins/req/server/auth/req.ts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000..bc03fc6d3
|
index 000000000..6fca14d54
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/plugins/req/server/auth/req.ts
|
+++ b/plugins/req/server/auth/req.ts
|
||||||
@@ -0,0 +1,70 @@
|
@@ -0,0 +1,70 @@
|
||||||
|
@ -33,7 +35,6 @@ index 000000000..bc03fc6d3
|
||||||
+import { Strategy as ReqStrategy } from "passport-req";
|
+import { Strategy as ReqStrategy } from "passport-req";
|
||||||
+import { slugifyDomain } from "@shared/utils/domains";
|
+import { slugifyDomain } from "@shared/utils/domains";
|
||||||
+import accountProvisioner from "@server/commands/accountProvisioner";
|
+import accountProvisioner from "@server/commands/accountProvisioner";
|
||||||
+import env from "@server/env";
|
|
||||||
+import passportMiddleware from "@server/middlewares/passport";
|
+import passportMiddleware from "@server/middlewares/passport";
|
||||||
+import { User } from "@server/models";
|
+import { User } from "@server/models";
|
||||||
+import { AuthenticationResult } from "@server/types";
|
+import { AuthenticationResult } from "@server/types";
|
||||||
|
@ -42,6 +43,7 @@ index 000000000..bc03fc6d3
|
||||||
+ getTeamFromContext,
|
+ getTeamFromContext,
|
||||||
+ getClientFromContext,
|
+ getClientFromContext,
|
||||||
+} from "@server/utils/passport";
|
+} from "@server/utils/passport";
|
||||||
|
+import env from "@server/env";
|
||||||
+
|
+
|
||||||
+const router = new Router();
|
+const router = new Router();
|
||||||
+const providerName = "req";
|
+const providerName = "req";
|
||||||
|
|
Loading…
Reference in a new issue