I have successfully set up LTI with D2L, and all instructors can now sign in WeBWorK from D2L as "professors". But I am curious if it is possible for instructors to create a dummy student account on WeBWorK and sign in from the instructors' own D2L accounts. This will be useful if, for example, instructors need to see what students actually see.
I am aware that I can ask instructors to set $external_auth = 0 in course.conf and use WeBWorK authentication whenever they need to log in to the dummy account and then set $external_auth = 1 back after finish, but I want to find an easier way that ideally only needs to set up once on instructor's side.
my $self = shift;
my $user = shift;
my $r = $self->{r};
if (defined($r->param("custom_student_account"))) {
if ($r->param("custom_student_account") eq "true") {
$self->{user_id} = "sample_student";
# $user->{user_id} = "sample_student";
}
}
};