Skip to content

Conversation

@robrap
Copy link
Contributor

@robrap robrap commented Nov 27, 2019

This completes the work started in https://github.com/edx/edx-platform/pull/19453
to use the LMS login and registration for Studio, rather than Studio
providing its own implementation.

LMS login/registration are being used for the following reasons:

  1. LMS logistration properly handles all SSO integrations.
  2. A single logistration is simpler to maintain and understand.
  3. Allows Studio to work more like all other IDAs that use LMS
    logistration.

The original switch to use LMS logistration for Studio also added the
toggle DISABLE_STUDIO_SSO_OVER_LMS to provide the community some
additional time for switching. This commit removes this toggle, which
at this point means all deployments will use the LMS logistration.

This change requires sharing cookies across LMS and Studio. Should that
prove to be a problem for certain Open edX instances, there are
discussions of possible alternative solutions.
See https://github.com/edx/edx-platform/pull/19845#issuecomment-559154256

Detailed changes:

  • Fix some Studio links that still went to old Studio signin and signup.
  • Remove DISABLE_STUDIO_SSO_OVER_LMS feature toggle.
  • Remove old studio signin and signup pages and templates.
  • Fix url name "login", which had different meanings for Studio and LMS.
  • Use the following settings: LOGIN_URL, FRONTEND_LOGIN_URL,
    FRONTEND_LOGOUT_URL, and FRONTEND_REGISTER_URL.
  • Redirect /signin and /signup to the LMS logistration.
  • Add custom metric uses_pattern_library.
  • Add custom metric student_activate_account.
  • Add Django Settings to allow /signin, /signup, and /login_post to be
    disabled once ready.

This work also relates to:

ARCH-1253

@robrap robrap requested review from a team November 27, 2019 18:28
@robrap robrap changed the title ARCH-1253: remove studio login WIP: ARCH-1253: remove studio login Nov 27, 2019
@robrap
Copy link
Contributor Author

robrap commented Nov 27, 2019

jenkins run all

@robrap robrap force-pushed the robrap/ARCH-1253-remove-studio-login branch from 41e1991 to f287250 Compare November 27, 2019 22:15
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Note: I added settings.LOGIN_REDIRECT_URL for what I think is correctness.

@robrap robrap changed the title WIP: ARCH-1253: remove studio login ARCH-1253: remove studio login Dec 3, 2019
@robrap robrap changed the title ARCH-1253: remove studio login ARCH-1253: remove studio signin and signup Dec 3, 2019
@robrap robrap force-pushed the robrap/ARCH-1253-remove-studio-login branch from c075cce to d24a0bf Compare December 4, 2019 07:14
@robrap robrap changed the title ARCH-1253: remove studio signin and signup ARCH-1253: remove studio signin and signup pages Dec 4, 2019
This completes the work started in https://github.com/edx/edx-platform/pull/19453
to use the LMS login and registration for Studio, rather than Studio
providing its own implementation.

LMS login/registration are being used for the following reasons:
1. LMS logistration properly handles all SSO integrations.
2. A single logistration is simpler to maintain and understand.
3. Allows Studio to work more like all other IDAs that use LMS
logistration.

The original switch to use LMS logistration for Studio also added the
toggle `DISABLE_STUDIO_SSO_OVER_LMS` to provide the community some
additional time for switching. This commit removes this toggle, which
at this point means all deployments will use the LMS logistration.

This change requires sharing cookies across LMS and Studio. Should that
prove to be a problem for certain Open edX instances, there are
discussions of possible alternative solutions.
See https://github.com/edx/edx-platform/pull/19845#issuecomment-559154256

Detailed changes:
* Fix some Studio links that still went to old Studio signin and signup.
* Remove DISABLE_STUDIO_SSO_OVER_LMS feature toggle.
* Remove old studio signin and signup pages and templates.
* Fix url name "login", which had different meanings for Studio and LMS.
* Use the following settings: LOGIN_URL, FRONTEND_LOGIN_URL,
FRONTEND_LOGOUT_URL, and FRONTEND_REGISTER_URL.
* Redirect /signin and /signup to the LMS logistration.
* Add custom metric `uses_pattern_library`.
* Add custom metric `student_activate_account`.
* Add Django Settings to allow /signin, /signup, and /login_post to be
disabled once ready.

This work also relates to ARCH-218 and DEPR-6.

ARCH-1253
@robrap robrap force-pushed the robrap/ARCH-1253-remove-studio-login branch from d24a0bf to 2202545 Compare December 4, 2019 07:37
@edx-status-bot
Copy link

Your PR has finished running tests. There were no failures.

@robrap robrap merged commit b47f368 into master Dec 4, 2019
@robrap robrap deleted the robrap/ARCH-1253-remove-studio-login branch December 4, 2019 08:20
@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Wednesday, December 04, 2019.

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR may have caused e2e tests to fail on Stage. If you're a member of the edX org, please visit #e2e-troubleshooting on Slack to help diagnose the cause of these failures. Otherwise, it is the reviewer's responsibility. E2E tests have failed. https://gocd.tools.edx.org/go/tab/pipeline/history/STAGE_edxapp_M-D

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants