question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebChat SSO Enterprise returns Bad Request from token.botframework using ITSM skill

See original GitHub issue

Attempting to sign into the ServiceNow instance using SSO Enterprise webchat after authenticating it returns a request and doesn’t allow me to interact with then skill using those credentials.

Screenshots

image

Version

I am using the SSO Enterprise example 7. Advanced Web Chat apps and b. sso-for-enterprise.

<meta name="botframework-directlinespeech:version" content="4.8.0">↵<meta name="botframework-webchat:bundle:variant" content="full">↵<meta name="botframework-webchat:bundle:version" content="4.8.0">

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

Steps to reproduce

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior

I should be able to use the service now credentials for the SSO enterprise to authenticate to the ITSM skill.

Additional context

[Bug]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tonyanzianocommented, Apr 20, 2020

@compulim can you please take a look at this issue? Thanks.

0reactions
swagatmishra2007commented, May 27, 2020

That does not seem like a supported scenario for SSO via BotFramework. Currently, we only support AAD V2 provider for SSO. your second solution might be something you can do, if you can find a way to provide the token to webchat via a middleware. The current SSO sample does something similar - where the aadv2 token from the hosting website is accessed by webchat, but that is for aadv2 only and uses msal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Single sign-on with a Web Chat in Bot Framework SDK
The bot processes the TokenExchangeInvokeRequest by issuing a request to the Azure Bot Service to obtain an exchangeable token. The Azure Bot ...
Read more >
BotFramework.com Oauth Token Error - 400 Bad Request
Web Chat in the portal uses the Direct Line channel and needs to get a token from botframework.com tenant. The token must come...
Read more >
Known issues - Microsoft Open Source
If you experience a HTTP 401 (authentication) error when invoking a Skill with an exception message as shown: Exception Message: Error invoking the...
Read more >
Using WebChat with Azure Bot Service's Authentication
This blog covers how to use Web Chat with the Azure Bot Service's built-in authentication capability to authenticate chat users with various ...
Read more >
OAuth 2.0 Authorization Errors - Salesforce Help
Errors can occur during OAuth authorization. For example, a user denies access to the connected app or request parameters are incorrect.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found