-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Make the studio login over the lms optional using a feature flag #19845
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
Changes from all commits
80b977f
14b4223
9195ec9
923a917
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,11 @@ def dispatch(self, request, *args, **kwargs): | |
|
|
||
| logout(request) | ||
|
|
||
| response = super(LogoutView, self).dispatch(request, *args, **kwargs) | ||
| # If we are using studio logout directly and there is not OIDC logouts we can just redirect the user | ||
| if settings.FEATURES.get('DISABLE_STUDIO_SSO_OVER_LMS', False) and not self.oauth_client_ids: | ||
| response = redirect(self.target) | ||
| else: | ||
| response = super(LogoutView, self).dispatch(request, *args, **kwargs) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately, emtiness of the For logging out the user from those DOT-enabled IDAs, we always unconditionally log out the user from them. This is a stop-gap solution until we decide on a better/smarter DOT-specific solution. |
||
|
|
||
| # Clear the cookie used by the edx.org marketing site | ||
| delete_logged_in_cookies(response) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: do the lettuce tests not pass with this living in cms/envs/test.py?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good question. I did not know either, so I tried, and the answer is no (https://build.testeng.edx.org/job/edx-platform-lettuce-pipeline-pr/2264/console).
I'm returning to the working version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for trying @felipemontoya.