Document toolboxDocument toolbox

Anbindung Serlo Editor an Edu-Sharing Repository


Manuelle Registrierung des Editors als Tool an edu-sharing (als plattform):


Registrierung

http://repository.127.0.0.1.nip.io:8100/edu-sharing/swagger/?docExpansion=none#/LTI%20Platform%20v13/manualRegistration

{
  "toolName": "serlo",
  "toolUrl": "https://serlo.edusharing-81.81.134.76.15.243.nip.io/lti",
  "toolDescription": "serlo editor",
  "keysetUrl": "https://serlo.edusharing-81.81.134.76.15.243.nip.io/lti/keys",
  "loginInitiationUrl": "https://serlo.edusharing-81.81.134.76.15.243.nip.io/lti/login",
  "redirectionUrls": [
    "https://serlo.edusharing-81.81.134.76.15.243.nip.io/lti"
  ],
  "targetLinkUri": "https://serlo.edusharing-81.81.134.76.15.243.nip.io/lti",
  "clientName": "serlo editor",
  "customParameters": ["{\"resourceType\":\"serlo\", \"getContentApiUrl\":\"true\"}"]
}

Bei der registrierung generierte ClientId im editor deployment unter k8s setzen

Beispiel:

- name: EDITOR_CLIENT_ID_FOR_LAUNCH
  value: 7cL2T1EJ8IRdS9C




Manuelle Registrierung  edu-sharing als tool an serlo editor (als platform):

Registrierung:

https://repository.edusharing-81.81.134.76.15.243.nip.io/edu-sharing/rest/lti/v13/registration/static?
platformId=https://serlo.edusharing-81.81.134.76.15.243.nip.io/&
client_id=editor&deployment_id=1&
authentication_request_url=https://serlo.edusharing-81.81.134.76.15.243.nip.io/platform/login&
keyset_url=https://serlo.edusharing-81.81.134.76.15.243.nip.io/platform/keys&
key_id=42&
auth_token_url=https://serlo.edusharing-81.81.134.76.15.243.nip.io


Custom property der neu registrierten plattform setzen

<entry key="lti_sync_readers">true</entry>
<entry key="lti_scope_username">false</entry>


Content-Security-Policy (für deeplink)

AdminTools -> Globale Systemkonfiguration -> Cluster Override: 

angular.headers.Content-Security-Policy: {
    default-src: "* data: blob: 'self' gap://ready"
    connect-src: "*"
    img-src: "* data: blob:"
    style-src: "* 'unsafe-inline'"
    script-src: "* 'unsafe-inline' 'unsafe-eval' https://app-registry.edu-sharing.com"
    font-src: "'self' data:"
    frame-ancestors: "https://serlo.edusharing-81.81.134.76.15.243.nip.io"
}


LTI in edu-sharing freischalten

AdminTools→ Erweiterte Konfiguration → homeApplication bearbeiten

<entry key="allowed_authentication_types">lti</entry>



Serlo (@TODO nach env var refactoring