[ENT-962] Update sessions whenever Enterprise Customer is created.

Description

*Description:* This PR will allow the request session to update with the latest Enterprise Customer for the user that just became an Enterprise user.

*JIRA:* https://openedx.atlassian.net/browse/ENT-962

*Dependencies:* https://github.com/edx/edx-platform/pull/17969

*Merge deadline:* ASAP.

*Testing instructions:*

See https://github.com/edx/edx-platform/pull/17969

However in addition, you'll want to see that your request session is updated when your user becomes linked to an Enterprise through some request.

1. Go to `/enterprise/{enterprise_uuid}/course/{course_run_key}/enroll/`.
2. After going through the process, your user should be linked and that data should be in the session. If the customer had `replace_sensitive_sso_username` on, this'll give you a new username on the top-right corner, for example, without needing to relog. Go to the dashboard to confirm.

*Merge checklist:*

  • [ ] Check that the versions of the requirements in the `platform-master.in` file match edx-platform.

  • [ ] New requirements are in the right place (`base.in` if only used in enterprise; in the correct `platform-****.in` files if they're hosted in edx-platform)

  • [ ] Regenerate requirements with `make upgrade && make requirements` (and make sure to fix any errors).
    *DO NOT* just add dependencies to `requirements/*.txt` files.

  • [ ] Called `make static` for webpack bundling if any static content was updated.

  • [ ] All reviewers approved

  • [ ] CI build is green

  • [ ] Version bumped

  • [ ] Changelog record added

  • [ ] Documentation updated (not only docstrings)

  • [ ] Commits are (reasonably) squashed

  • [ ] Translations are updated

  • [ ] PR author is listed in AUTHORS

*Post merge:*

  • [ ] Create a tag

  • [ ] Check new version is pushed to PyPi after tag-triggered build is finished.

  • [ ] Delete working branch (if not needed anymore)

  • [ ] edx-platform PR (be sure to include edx-platform requirements upgrades that were present in this PR)

Done

Assignee

Unassigned

Reporter

Open Source Pull Request Bot

Labels

None

Contributor Name

Uman Shahzad

Repo

edx/edx-enterprise

Customer

None

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Blended Hour Utilization Percentage

None

edX Theme

None

edX Squad

None

Github Lines Added

24

Github Lines Deleted

4

Priority

Unset