diff --git a/oat-sa/bundle-lti1p3/3.0/config/packages/lti1p3.yaml b/oat-sa/bundle-lti1p3/3.0/config/packages/lti1p3.yaml new file mode 100644 index 00000000..bb0fe88a --- /dev/null +++ b/oat-sa/bundle-lti1p3/3.0/config/packages/lti1p3.yaml @@ -0,0 +1,36 @@ +lti1p3: + key_chains: + platformKey: + key_set_name: "platformSet" + public_key: "file://%kernel.project_dir%/config/secrets/dev/public.key" + private_key: "file://%kernel.project_dir%/config/secrets/dev/private.key" + private_key_passphrase: null + toolKey: + key_set_name: "toolSet" + public_key: "file://%kernel.project_dir%/config/secrets/dev/public.key" + private_key: "file://%kernel.project_dir%/config/secrets/dev/private.key" + private_key_passphrase: null + platforms: + localPlatform: + name: "Local platform" + audience: "http://localhost/platform" + oidc_authentication_url: "http://localhost/lti1p3/oidc/authentication" + oauth2_access_token_url: "http://localhost/lti1p3/auth/platformKey/token" + tools: + localTool: + name: "Local tool" + audience: "http://localhost/tool" + oidc_initiation_url: "http://localhost/lti1p3/oidc/initiation" + launch_url: null + deep_linking_url: null + registrations: + local: + client_id: "client_id" + platform: "localPlatform" + tool: "localTool" + deployment_ids: + - "deploymentId1" + platform_key_chain: "platformKey" + tool_key_chain: "toolKey" + platform_jwks_url: null + tool_jwks_url: null diff --git a/oat-sa/bundle-lti1p3/3.0/config/routes/lti1p3.yaml b/oat-sa/bundle-lti1p3/3.0/config/routes/lti1p3.yaml new file mode 100644 index 00000000..c893970a --- /dev/null +++ b/oat-sa/bundle-lti1p3/3.0/config/routes/lti1p3.yaml @@ -0,0 +1,11 @@ +lti1p3_jwks: + resource: '@Lti1p3Bundle/Resources/config/routing/jwks.yaml' + +lti1p3_message_platform: + resource: '@Lti1p3Bundle/Resources/config/routing/message/platform.yaml' + +lti1p3_message_tool: + resource: '@Lti1p3Bundle/Resources/config/routing/message/tool.yaml' + +lti1p3_service_platform: + resource: '@Lti1p3Bundle/Resources/config/routing/service/platform.yaml' diff --git a/oat-sa/bundle-lti1p3/3.0/manifest.json b/oat-sa/bundle-lti1p3/3.0/manifest.json new file mode 100644 index 00000000..adfed5a2 --- /dev/null +++ b/oat-sa/bundle-lti1p3/3.0/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "OAT\\Bundle\\Lti1p3Bundle\\Lti1p3Bundle": [ "all" ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "LTI1P3_SERVICE_ENCRYPTION_KEY": "%generate(secret)%" + } +} diff --git a/oat-sa/bundle-lti1p3/3.0/post-install.txt b/oat-sa/bundle-lti1p3/3.0/post-install.txt new file mode 100644 index 00000000..e8a9d95d --- /dev/null +++ b/oat-sa/bundle-lti1p3/3.0/post-install.txt @@ -0,0 +1,11 @@ + + Next: LTI 1.3 bundle configuration + + + * Create development keys: mkdir -p config/secrets/dev && openssl genrsa -out config/secrets/dev/private.key 2048 && openssl rsa -in config/secrets/dev/private.key -outform PEM -pubout -out config/secrets/dev/public.key + + * Configure your keys, platform, tools and registrations in file config/packages/lti1p3.yaml + + * Configure the platform and tools automated routes in file config/routes/lti1p3.yaml + + * Read the documentation at https://github.com/oat-sa/bundle-lti1p3