feat: redirect to custom URL when third-party auth account is unlinked #4
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.
Description
Backport of openedx#1078
Allow redirecting to a custom URL when signing in via third-party auth when the account is not linked.
How Has This Been Tested?
ENABLE_MFE_CONFIG_API = True
ENABLE_COMBINED_LOGIN_REGISTRATION = True
ENABLE_THIRD_PARTY_AUTH = True
AUTHN_MICROFRONTEND_URL = 'http://localhost:1999'
MFE_CONFIG = {"TPA_UNLINKED_ACCOUNT_PROVISION_URL": "http://example.com"}
'ENABLE_THIRD_PARTY_AUTH': True
and'ENABLE_AUTHN_MICROFRONTEND': True
in FEATURES dict in LMS settings (edx-platform/lms/envs/common.py
).MFE_CONFIG_API_URL='http://localhost:18000/api/mfe_config/v1'
in frontend-app-authn (e.g. in.env.development
).The login page will briefly show before redirect but I see no way to prevent this as the request to http://localhost:18000/api/mfe_context is made asynchronously and we don't know the third-party auth context until it is made, but the login page can be rendered before that.
Merge Checklist
Post-merge Checklist