This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/acceptance
Osama Sayegh eb5a3cfded
FEATURE: Add 2FA support to the Discourse Connect Provider protocol (#16386)
Discourse has the Discourse Connect Provider protocol that makes it possible to
use a Discourse instance as an identity provider for external sites. As a
natural extension to this protocol, this PR adds a new feature that makes it
possible to use Discourse as a 2FA provider as well as an identity provider.

The rationale for this change is that it's very difficult to implement 2FA
support in a website and if you have multiple websites that need to have 2FA,
it's unrealistic to build and maintain a separate 2FA implementation for each
one. But with this change, you can piggyback on Discourse to take care of all
the 2FA details for you for as many sites as you wish.

To use Discourse as a 2FA provider, you'll need to follow this guide:
https://meta.discourse.org/t/-/32974. It walks you through what you need to
implement on your end/site and how to configure your Discourse instance. Once
you're done, there is only one additional thing you need to do which is to
include `require_2fa=true` in the payload that you send to Discourse.

When Discourse sees `require_2fa=true`, it'll prompt the user to confirm their
2FA using whatever methods they've enabled (TOTP or security keys), and once
they confirm they'll be redirected back to the return URL you've configured and
the payload will contain `confirmed_2fa=true`. If the user has no 2FA methods
enabled however, the payload will not contain `confirmed_2fa`, but it will
contain `no_2fa_methods=true`.

You'll need to be careful to re-run all the security checks and ensure the user
can still access the resource on your site after they return from Discourse.
This is very important because there's nothing that guarantees the user that
will come back from Discourse after they confirm 2FA is the same user that
you've redirected to Discourse.

Internal ticket: t62183.
2022-04-13 15:04:09 +03:00
..
about-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
account-created-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-badges-award-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-badges-show-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-emails-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-install-theme-modal-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-search-log-term-test.js DEV: updates chart.js to 3.5.1 (#14107) 2021-08-23 13:49:49 +02:00
admin-search-logs-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
admin-silence-user-test.js FIX: no need to hide "Later This Week" when showing "Later Today" (#16365) 2022-04-05 16:49:05 +04:00
admin-site-settings-test.js DEV: Fix "overridden" typos (#16399) 2022-04-06 23:17:20 +02:00
admin-site-text-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-suspend-user-test.js FIX: no need to hide "Later This Week" when showing "Later Today" (#16365) 2022-04-05 16:49:05 +04:00
admin-user-badges-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
admin-user-emails-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-user-index-test.js DEV: Remove grant admin 2FA modal (#16347) 2022-03-31 19:01:11 +03:00
admin-users-list-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-watched-words-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
auth-complete-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
badges-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
bookmarks-test.js FIX: Show bookmark options by default when editing (#16189) 2022-03-16 16:41:24 +02:00
categories-test.js FEATURE: Introduce 'Subcategories with featured topics' view (#16083) 2022-03-04 21:11:59 +00:00
category-banner-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
category-chooser-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
category-edit-security-test.js DEV: Fix qunit/assert-args (#14932) 2021-11-15 04:30:42 +01:00
category-edit-test.js FIX: Ensure allowed_tags and allowed_tag_groups can be removed (#16454) 2022-04-12 11:14:29 +01:00
category-new-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
click-track-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
composer-actions-test.js Revert "DEV: Prioritize full name when setting active (#15820)" (#15869) 2022-02-08 13:25:19 -06:00
composer-draft-saving-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
composer-edit-conflict-test.js DEV: Clean up skipped tests (#15747) 2022-01-31 15:31:13 -05:00
composer-editor-mentions-test.js FIX: Autocomplete incorrectly replacing text if used mid sentence. 2022-01-18 14:25:39 +08:00
composer-hyperlink-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
composer-image-preview-test.js FIX: Add a confirm and cancel button when editing alt text (#15003) 2021-11-19 10:57:09 +08:00
composer-onebox-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
composer-tags-test.js FEATURE: Allow multiple required tag groups for a category (#16381) 2022-04-06 14:08:06 +01:00
composer-test.js DEV: Make settled() work in the legacy env (#16122) 2022-03-07 20:00:09 +01:00
composer-topic-links-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
composer-uncategorized-test.js DEV: Refactor Site creation in tests (#15707) 2022-02-03 10:02:47 +00:00
composer-uploads-uppy-test.js FIX: Caret moves to a wrong position when uploading an image via toolbar (#15684) 2022-02-04 18:26:48 +04:00
create-account-external-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
create-account-user-fields-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
create-invite-modal-test.js FIX: no need to hide "Later This Week" when showing "Later Today" (#16365) 2022-04-05 16:49:05 +04:00
custom-html-set-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
custom-html-template-test.js DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
dashboard-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
dismiss-notification-modal-test.js Refine dismiss notification confirmation (#15017) 2021-11-22 09:11:24 +08:00
do-not-disturb-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
edit-notification-click-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
email-notice-test.js UX: Differentiate 'emails disabled' notice for 'yes' and 'non-staff' (#16096) 2022-03-03 15:49:20 +00:00
emoji-picker-test.js FIX: Don't display duplicated emoji in picker 2022-01-11 10:37:02 +08:00
emoji-test.js FIX: Ensure images do not change height when loading is complete (#16368) 2022-04-05 13:43:17 +01:00
encoded-category-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
enforce-second-factor-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
fast-edit-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
flag-post-test.js DEV: Make settled() work in the legacy env (#16122) 2022-03-07 20:00:09 +01:00
forgot-password-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-index-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-manage-categories-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-manage-email-settings-test.js FEATURE: Allow sending group SMTP emails with from alias (#15687) 2022-02-07 13:52:01 +10:00
group-manage-interaction-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
group-manage-logs-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-manage-membership-test.js FEATURE: Experimental support for group membership via google auth (#14835) 2021-12-09 12:30:27 +00:00
group-manage-profile-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-manage-tags-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-requests-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
groups-index-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
groups-new-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
hamburger-menu-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
hashtags-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
image-aspect-ratio-test.js FIX: Ensure images do not change height when loading is complete (#16368) 2022-04-05 13:43:17 +01:00
invite-accept-test.js UX: Require a password for invited users (#16291) 2022-04-05 14:57:15 +03:00
invite-show-user-fields-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
jump-to-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
keyboard-shortcuts-test.js FIX: J/K post stream navigation inconsistencies (#16171) 2022-03-14 15:09:19 +01:00
last-visited-topic-focus-test.js A11Y: Focus last viewed topic in topic lists (take 3) (#16257) 2022-03-23 13:03:56 +03:00
lightbox-test.js FEATURE: Add link to original image in lightbox (#15640) 2022-03-08 19:39:46 +02:00
login-redirect-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
login-required-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
login-with-email-and-hide-email-address-taken-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
login-with-email-and-no-social-logins-test.js UX: add link for email login below username, remove button (#12118) 2021-02-24 16:30:08 -05:00
login-with-email-disabled-test.js UX: add link for email login below username, remove button (#12118) 2021-02-24 16:30:08 -05:00
login-with-email-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
mobile-discovery-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
mobile-pan-test.js DEV: Fix random typos (#16066) 2022-02-28 10:20:58 +08:00
mobile-sign-in-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
mobile-users-test.js FEATURE: Add user custom fields to user directory (#13238) 2021-06-07 12:34:01 -05:00
modal-test.js DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
new-message-test.js FEATURE: allow sending message via a link to multiple users (#15412) 2021-12-28 06:35:22 +05:30
new-topic-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
notifications-filter-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
notifications-test.js FIX: new indirectly muted category (#16043) 2022-02-25 13:08:22 +11:00
opengraph-tag-updater-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
page-publishing-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
password-reset-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
pending-posts-test.js DEV: Fix pending posts page, make tests work in legacy env (#15132) 2021-11-30 13:01:39 +01:00
personal-message-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
plugin-keyboard-shortcut-test.js DEV: API to add keyboard shortcuts to help modal (#16075) 2022-03-01 14:37:26 -06:00
plugin-outlet-connector-class-test.js DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
plugin-outlet-decorator-test.js DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
plugin-outlet-multi-template-test.js DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
plugin-outlet-single-template-test.js DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
post-admin-menu-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
post-controls-test.js DEV: Add tests for accessibility changes 2022-03-31 19:01:40 +03:00
post-history-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
preferences-test.js FEATURE: upload an avatar option for uploading avatars with selectable avatars (#15878) 2022-02-24 12:57:39 -08:00
raw-plugin-outlet-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
redirect-to-top-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
reports-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
review-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
search-full-test.js REFACTOR: Abstract search link click logging (#16317) 2022-03-30 10:10:39 -04:00
search-mobile-test.js DEV: fix tests (#15587) 2022-01-14 16:59:26 +01:00
search-test.js DEV: Actually focus stuff in tests (#16102) 2022-03-05 17:20:22 +01:00
second-factor-auth-test.js FEATURE: Add 2FA support to the Discourse Connect Provider protocol (#16386) 2022-04-13 15:04:09 +03:00
share-topic-test.js SECURITY: Category group permissions leaked to normal users. 2022-04-08 13:46:20 +08:00
shared-drafts-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
sign-in-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
static-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
tag-groups-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
tags-intersection-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
tags-test.js DEV: Fix flaky tags-test (#16410) 2022-04-07 14:39:52 +01:00
topic-admin-menu-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-anonymous-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
topic-bulk-actions-test.js FEATURE: Rename Reset Read bulk action to Defer (#15972) 2022-02-21 22:45:01 +02:00
topic-discovery-test.js DEV: Add integration test for refreshing discovery-topics views 2022-01-12 12:18:37 +00:00
topic-edit-timer-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-entrance-test.js A11Y: Improve topic entrance modal 2022-03-24 13:42:24 +03:00
topic-footer-button-api-mobile-test.js DEV: adds a new topic footer dropdown api (#14747) 2021-11-12 10:21:34 +01:00
topic-footer-button-api-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
topic-footer-dropdown-api-test.js DEV: adds a new topic footer dropdown api (#14747) 2021-11-12 10:21:34 +01:00
topic-list-plugin-api-test.js DEV: Fix "overridden" typos (#16399) 2022-04-06 23:17:20 +02:00
topic-list-tracker-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-move-posts-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
topic-notifications-button-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-quote-button-test.js Revert "DEV: Prioritize full name when setting active (#15820)" (#15869) 2022-02-08 13:25:19 -06:00
topic-set-slow-mode-test.js FIX: no need to hide "Later This Week" when showing "Later Today" (#16365) 2022-04-05 16:49:05 +04:00
topic-slow-mode-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-test.js SECURITY: Category group permissions leaked to normal users. 2022-04-08 13:46:20 +08:00
topic-timeline-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
unknown-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
user-activity-all-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-activity-drafts-test.js FEATURE: improve blank page syndrome on the user activity pages (#14311) 2021-09-16 21:35:34 +04:00
user-activity-likes-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-activity-read-test.js FIX: This was causing a flaky test in Ember CLI 2022-01-26 14:53:25 -05:00
user-activity-replies-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-activity-topic-test.js UX: cleaner messages for empty state on the user activity topics page (#16267) 2022-03-25 00:20:55 +04:00
user-anonymous-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-bookmarks-test.js FEATURE: Highlight expired bookmark reminders (#15317) 2022-03-08 19:44:18 +02:00
user-card-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
user-drafts-stream-test.js FIX: Ensure images do not change height when loading is complete (#16368) 2022-04-05 13:43:17 +01:00
user-preferences-interface-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
user-preferences-notifications-test.js FIX: no need to hide "Later This Week" when showing "Later Today" (#16365) 2022-04-05 16:49:05 +04:00
user-preferences-profile-test.js FEATURE: save local date to calendar (#14486) 2021-10-06 14:11:52 +11:00
user-private-messages-test.js DEV: Use settled ember test helper instead of attempting to rerender. 2022-04-05 18:42:02 +08:00
user-test.js FIX: hide user notifications tab for moderator users. (#16406) 2022-04-07 14:37:37 +05:30
users-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00