-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat: link LTI Provider launches to authenticated users #33310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Agrendalath
merged 19 commits into
openedx:master
from
open-craft:tecoholic/auto-linking-users-from-lti-clients
Nov 13, 2023
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
19f3204
feat: adds auto_link_users_using_email field to LtiConsumer
tecoholic b85e743
feat: link existing users to the LtiUser via email
tecoholic 198f979
refactor: use None as a default value in create_lti_user
tecoholic 47922e4
feat: make the auto link flag editable only during object creation
tecoholic 50a4a6f
fix: remove the empty strings as args from the tests
tecoholic f9857ad
fix: remove unique constraint on edx_user
tecoholic a589dee
refactor: remove read-only from Lti Consumer config admin
tecoholic 1f34737
fix: allow only authenticated users to be auto-linked
tecoholic 9ab8233
fix: extra space linting issue
tecoholic 274234f
refactor: move the email comparison check to auth function
tecoholic 1b783f6
fix: apply code deletion missed in last commit
tecoholic 6950940
fix: flush the session before showing the error message
tecoholic be2c179
fix: linting issue
tecoholic 8b7142a
refactor: use a better name for the flag with helptext
tecoholic 96769d7
fix: typo in migration help text
tecoholic cc34afe
fix: explicitly mention emails should match in the error page
tecoholic f9dc717
fix: lti launch failing when auto-linked user was logged out of platform
tecoholic 7404a96
fix: linting issue with raising exception
tecoholic 2fb1a06
fix: remove re-linking from authenticate_user function
tecoholic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
lms/djangoapps/lti_provider/migrations/0004_require_user_account.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Generated by Django 3.2.22 on 2023-11-06 09:47 | ||
|
|
||
| from django.conf import settings | ||
| from django.db import migrations, models | ||
| import django.db.models.deletion | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
| ('lti_provider', '0003_auto_20161118_1040'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='lticonsumer', | ||
| name='require_user_account', | ||
| field=models.BooleanField(blank=True, default=False, help_text='When checked, the LTI content will load only for learners who have an account in this instance. This is required only for linking learner accounts with the LTI consumer. See the Open edX LTI Provider documentation for more details.'), | ||
| ), | ||
| migrations.AlterField( | ||
| model_name='ltiuser', | ||
| name='edx_user', | ||
| field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
| ), | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.