element-portable/src/components/views
Travis Ralston d851f2e45f Fix OpenID requests from widgets
Fixes https://github.com/vector-im/riot-web/issues/13131

Widgets can request an OpenID token to authenticate the user when the widget is missing authentication information. A common case for this is the Dimension sticker picker: sometimes the Riot is running in doesn't have the configuration to match the Dimension instance, so Riot rightly refuses to send an auth token to the widget. When this happens, it requests a token through postMessage().

There's a toggle on the permission dialog to remember the setting, which is the widget's security key. As an added measure, the security key generation ensures the widget URL matches as the 'remember this choice' toggle will silently work in the background, and it could be dangerous if the widget's URL changed and Riot secretly allows the widget to identify the user. This check was failing because the WidgetMessaging class was being set up with the rendered URL, which will not match the widget's URL at all. To fix this, we simply use the widget's URL to set up the messaging, which by proxy uses the right URL in calculating the security key.
2020-04-22 00:27:20 -06:00
..
auth Password Login make sure tab takes user to password field 2020-04-18 16:18:01 +01:00
avatars Silence usages of componentWillReceiveProps 2020-04-01 14:35:39 -06:00
context_menus Add new default home page fallback 2020-04-07 10:48:56 +01:00
create_room Convert CommonJS exports to ES6-compatible exports 2019-12-22 21:01:02 -07:00
dialogs Merge pull request #4435 from matrix-org/t3chguy/typo1 2020-04-17 16:47:27 +01:00
directory Fix missed copy 2020-03-16 12:28:20 +00:00
elements Fix OpenID requests from widgets 2020-04-22 00:27:20 -06:00
emojipicker Fix ugly scrollbars in TabbedView (settings), emojipicker and widgets 2020-03-28 00:51:01 +00:00
globals [CONFLICT CHUNKS] Merge branch 'develop' into travis/sourcemaps-develop 2020-01-09 14:15:09 -07:00
groups Silence usages of componentWillReceiveProps 2020-04-01 14:35:39 -06:00
messages Merge branch 'develop' into foldleft/better-errors 2020-04-17 14:11:05 +01:00
right_panel Fix end-to-end tests for end-to-end encryption verification 2020-04-17 14:31:33 -06:00
room_settings Make RoomPublishSetting import-skinnable 2020-04-16 17:13:33 +01:00
rooms Merge branches 'develop' and 't3chguy/user_online_dot' of github.com:matrix-org/matrix-react-sdk into t3chguy/user_online_dot 2020-04-17 12:58:54 +01:00
settings Fix key backup debug panel 2020-04-16 21:08:14 +01:00
terms Use noreferrer in addition to noopener for edge case browsers 2020-02-23 22:14:29 +00:00
toasts Don't show spinner over encryption setup dialogs 2020-04-07 13:08:18 +01:00
verification ensure twemoji font is loaded when showing SAS emojis 2020-04-16 11:35:54 +02:00
voip Merge branch 'develop' into travis/react-warnings/3-componentCannotDidMount 2020-04-01 11:14:19 -06:00