Skip to content

Commit

Permalink
Better naming of parameter in getDefaultToolConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
jbasdf committed Feb 5, 2025
1 parent 403e7e0 commit feb5f59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/lti-server/src/libs/tool_configuration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ToolConfiguration } from "@atomicjolt/lti-types";

export function getDefaultToolConfiguration(
baseUrl: string,
host: string,
clientName: string,
initPath: string,
jwksPath: string,
Expand All @@ -12,6 +12,7 @@ export function getDefaultToolConfiguration(
tosUri: string,
email: string,
): ToolConfiguration {
const baseUrl = `https://${host}`;
const launch_uri = `${baseUrl}/${launchPath}`;
return {
application_type: "web",
Expand All @@ -29,7 +30,7 @@ export function getDefaultToolConfiguration(
contacts: [email],
scope: "",
"https://purl.imsglobal.org/spec/lti-tool-configuration": {
domain: baseUrl,
domain: host,
description: clientName,
target_link_uri: launch_uri,
custom_parameters: {
Expand Down

0 comments on commit feb5f59

Please sign in to comment.