Skip to content

Commit

Permalink
Fix a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrice1 committed Feb 29, 2024
1 parent da41969 commit fe5dca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/WeBWorK/Authen/LTIAdvantage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ sub get_credentials ($self) {
}

# Get the target_link_uri from the claims.
$c->stash->{LTILauncRedirect} = $claims->{'https://purl.imsglobal.org/spec/lti/claim/target_link_uri'};
$c->stash->{LTILaunchRedirect} = $claims->{'https://purl.imsglobal.org/spec/lti/claim/target_link_uri'};

unless (defined $c->stash->{LTILauncRedirect}) {
unless (defined $c->stash->{LTILaunchRedirect}) {
$self->{error} = $c->maketext(
'There was an error during the login process. Please speak to your instructor or system administrator.');
warn 'LTI is not properly configured (failed to obtain target_link_uri). '
Expand All @@ -218,7 +218,7 @@ sub get_credentials ($self) {

# Get the courseID from the target_link_uri and verify that it is the same as the one that was in the state.
my $location = $c->location;
my $target = $c->url_for($c->stash->{LTILauncRedirect})->path;
my $target = $c->url_for($c->stash->{LTILaunchRedirect})->path;
my $courseID;
$courseID = $1 if $target =~ m|$location/([^/]*)|;

Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/ContentGenerator/LTIAdvantage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sub login ($c) {
}

sub launch ($c) {
return $c->redirect_to($c->systemLink($c->url_for($c->stash->{LTILauncRedirect})));
return $c->redirect_to($c->systemLink($c->url_for($c->stash->{LTILaunchRedirect})));
}

sub keys ($c) {
Expand Down

0 comments on commit fe5dca0

Please sign in to comment.