Browse Source

first commit

gremlin 3 năm trước cách đây
commit
9cc239be0d

+ 15 - 0
httpsblackboardcom-cae463dd-5a4e-4be4-bfb6-f369a78b19fd.json

@@ -0,0 +1,15 @@
+{
+    "name": "blackboard",
+    "clientId": "cae463dd-5a4e-4be4-bfb6-f369a78b19fd",
+    "issuer": "https://blackboard.com",
+    "jwksUrl": "https://developer.blackboard.com/api/v1/management/applications/cae463dd-5a4e-4be4-bfb6-f369a78b19fd/jwks.json",
+    "authenticateUrl": "https://developer.blackboard.com/api/v1/gateway/oidcauth",
+    "deepLinkPickerUrl": "https://search.riomhaire.com/?ltideeplink=true&otk=${otk}&callback=https%3A%2F%2Flti.riomhaire.com%2Fapi%2F1.3%2Ftool%2Flink",
+    "accept": false,
+    "deployments": [
+        {
+            "deploymentId": "1",
+            "districtPid": ""
+        }
+    ]
+}

+ 17 - 0
httpscanvasinstructurecom-32990000000000049.json

@@ -0,0 +1,17 @@
+{
+   "name":"Camvas",
+   "clientId":"32990000000000049",
+   "issuer":"https://canvas.instructure.com",
+   "jwksUrl":"https://hmh.instructure.com/api/lti/security/jwks",
+   "authenticateUrl":"https://hmh.instructure.com/api/lti/authorize",
+   "deepLinkPickerUrl":"https://search.riomhaire.com/?ltideeplink=true&otk=${otk}&callback=https%3A%2F%2Flti.riomhaire.com%2Fapi%2F1.3%2Ftool%2Flink",
+   "accept":false,
+   "encodePej":true,
+   "deployments":[
+      {
+         "deploymentId":"20667:7db438071375c02373713c12c73869ff2f470b68",
+         "districtPid":"23423424"
+      }
+   ]
+}
+

+ 17 - 0
httpscanvasinstructurecom-32990000000000153.json

@@ -0,0 +1,17 @@
+{
+   "name":"Camvas Eliza Bot",
+   "clientId":"32990000000000153",
+   "issuer":"https://canvas.instructure.com",
+   "jwksUrl":"https://hmh.instructure.com/api/lti/security/jwks",
+   "authenticateUrl":"https://hmh.instructure.com/api/lti/authorize",
+   "deepLinkPickerUrl":"",
+   "accept":false,
+   "encodePej":true,
+   "deployments":[
+      {
+         "deploymentId":"20788:7db438071375c02373713c12c73869ff2f470b68",
+         "districtPid":"23423424"
+      }
+   ]
+}
+

+ 17 - 0
httpscanvasinstructurecom-32990000000000154.json

@@ -0,0 +1,17 @@
+{
+   "name":"Camvas Ivanka Bot",
+   "clientId":"32990000000000154",
+   "issuer":"https://canvas.instructure.com",
+   "jwksUrl":"https://hmh.instructure.com/api/lti/security/jwks",
+   "authenticateUrl":"https://hmh.instructure.com/api/lti/authorize",
+   "deepLinkPickerUrl":"",
+   "accept":false,
+   "encodePej":true,
+   "deployments":[
+      {
+         "deploymentId":"20789:7db438071375c02373713c12c73869ff2f470b68",
+         "districtPid":"23423424"
+      }
+   ]
+}
+

+ 15 - 0
httpssandboxmoodledemonet-f2S2quL0H08u2dp.json

@@ -0,0 +1,15 @@
+{
+    "name": "moodle",
+    "clientId": "f2S2quL0H08u2dp",
+    "issuer": "https://sandbox.moodledemo.net",
+    "jwksUrl": "https://sandbox.moodledemo.net/mod/lti/certs.php",
+    "authenticateUrl": "https://sandbox.moodledemo.net/mod/lti/auth.php",
+    "deepLinkPickerUrl": "https://search.riomhaire.com/?ltideeplink=true&otk=${otk}&callback=https%3A%2F%2Flti.riomhaire.com%2Fapi%2F1.3%2Ftool%2Flink",
+    "accept": false,
+    "deployments": [
+        {
+            "deploymentId": "1",
+            "districtPid": ""
+        }
+    ]
+}

+ 21 - 0
redis-upload.sh

@@ -0,0 +1,21 @@
+#!/bin/bash
+source $HOME/.bash_profile
+PATH=$PATH:/usr/local/bin
+
+cd /etc/golti/registrations
+
+#redis-cli -h empire -n 7 -x SET httpscanvasinstructurecom-32990000000000049 < httpscanvasinstructurecom-32990000000000049.json 
+#redis-cli -h empire -n 7  EXPIRE httpscanvasinstructurecom-32990000000000049 60 > /dev/null 2&>1
+
+redishost=empire
+redisdb=7
+redistimeout=600
+
+for file in *\.json; do 
+  f=$(echo "$file" | cut -f 1 -d '.')
+  redis-cli -h $redishost -n $redisdb -x SET $f < $file > /dev/null 2>&1
+  redis-cli -h $redishost -n $redisdb  EXPIRE $f $redistimeout > /dev/null 2>&1
+  echo  "Uploaded $f"; 
+done
+
+