Skip to content

SSO - Cannot read property 'postMessage' of null #3215

@xieofxie

Description

@xieofxie

Screenshots

Version

To determine what version of Web Chat you are running, open your browser's development tools, and paste the following line of code into the console.

[].map.call(document.head.querySelectorAll('meta[name^="botframework-"]'), function (meta) { return meta.outerHTML; }).join('\n')

If you are using Web Chat outside of a browser, please specify your hosting environment. For example, React Native on iOS, Cordova on Android, SharePoint, PowerApps, etc.

Describe the bug

This line

`<!DOCTYPE html><html><head><title></title><script>opener.postMessage('${new URLSearchParams(
should be window.postMessage (https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)

Steps to reproduce

  1. Setup this sample https://github.com/microsoft/BotFramework-WebChat/blob/270a1d41653c7253fbe87c8e881d04e5ce0cb365/samples/07.advanced-web-chat-apps/e.sso-on-behalf-of-authentication
  2. See error

Expected behavior

Additional context

[Bug]

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.customer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.p1Painful if we don't fix, won't block releasing

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions