diff --git a/conf/authen_LTI_1_3.conf.dist b/conf/authen_LTI_1_3.conf.dist index 7d5a668b9c..584d601a3a 100644 --- a/conf/authen_LTI_1_3.conf.dist +++ b/conf/authen_LTI_1_3.conf.dist @@ -100,6 +100,7 @@ $LTI{v1p3}{ClientID} = ''; $LTI{v1p3}{DeploymentID} = ''; $LTI{v1p3}{PublicKeysetURL} = ''; $LTI{v1p3}{AccessTokenURL} = ''; +$LTI{v1p3}{AccessTokenAUD} = ''; $LTI{v1p3}{AuthReqURL} = ''; # In the process of LTI 1.3 authentication a request is sent to the LMS in response to its diff --git a/lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm b/lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm index b5f89e5a90..f62e9b3629 100644 --- a/lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm +++ b/lib/WeBWorK/Authen/LTIAdvantage/SubmitGrade.pm @@ -137,7 +137,7 @@ async sub get_access_token ($self) { my $jwt = eval { encode_jwt( payload => { - aud => $ce->{LTI}{v1p3}{AccessTokenURL}, + aud => $ce->{LTI}{v1p3}{AccessTokenAUD}, iss => $c->url_for('root')->to_abs->to_string, sub => $ce->{LTI}{v1p3}{ClientID}, jti => $private_key->{kid}