Installation

LTI 1.3 prefered_source_of_username help

LTI 1.3 prefered_source_of_username help

by Justin Sherrill -
Number of replies: 4

Hi All

I'm working on getting a new WW 2.19 server running in prep for upgrading our institution's WW instance from 2.15 to 2.19.  Part of this upgrade will be moving to LTI v1.3, which invalidates an old custom LTI module we used to create users.  

I would like to configure the default LTI module to use a value other than email but I'm unsure how to enter the value (or if it's possible) because it's delivered as part of an array in the data sent from the LMS (D2L-Brightspace).  

The value I'd like to use is the org_defined_id, but it's coming in as part of an array of values under the  "http://www.brightspace.com" value (sanitized example below).  Is there a way I can reference this array member as the key for setting the preferred_source_of_username?  

Here's a sanitized example of the data I'm getting in the webwork2 log with lti debug enabled:

[2024-10-04 10:52:36.33184] [146625] [info] [REDACTED] {

  "aud" => "REDACTED",

  "email" => "john.doe@abc.com",

  "exp" => REDACTED,

  "family_name" => "Doe",

  "given_name" => "John",

  "http://www.brightspace.com" => {

    "Context.id.history" => "",

    "ResourceLink.id.history" => "",

    "content_topic_id" => 000000,

    "link_id" => 000000,

    "org_defined_id" => "S00000000",

    "tenant_id" => "REDACTED",

    "user_id" => 000,

    "username" => "johndoe123"

  },

Thanks,

Justin

In reply to Justin Sherrill

Re: LTI 1.3 prefered_source_of_username help

by Glenn Rice -

Set $LTI{v1p3}{preferred_source_of_username} = 'http://www.brightspace.com#org_defined_id'.  This sort of thing is documented in the conf/authen_LTI_1_3.conf file.

In reply to Glenn Rice

Re: LTI 1.3 prefered_source_of_username help

by Justin Sherrill -
I figured that out just after I posted. Too much time looking above the value and not enough below it. Thanks for the reply!
In reply to Justin Sherrill

Re: LTI 1.3 prefered_source_of_username help

by Alex Jordan -

Since this is an upgrade from 2.15 to 2.19, I wanted to check that you are aware that you need to replace the old authen_LTI.conf file with both a new authen_LTI.conf as well as authen_LTI_1_3.conf. Both can be copied from their .dist versions and I recommend doing that, and making fresh selections for any settings in either config file rather than copying too much from the old authen_LTI.conf file.

Then in authen_LTI_1_3.conf, there is a section on $LTI{v1p3}{preferred_source_of_username}.

It sounds like you would want:
$LTI{v1p3}{preferred_source_of_username} = 'http://www.brightspace.com#org_defined_id';

At my institution we also use Brightspace. We are just using the email prefix for the username, but elsewhere in the configuration we have:
$LTI{v1p3}{preferred_source_of_student_id} = 'http://www.brightspace.com#org_defined_id';

and that is working to put our student ID's as the "Student ID" of the WeBWorK user.

In reply to Alex Jordan

Re: LTI 1.3 prefered_source_of_username help

by Justin Sherrill -
I'm working with a new 2.19 server for testing but will be sure to replace the baseline authen_LTI file as well. Thanks for the info.

Justin