Add sample for using Direct Line tokens#3779
Conversation
|
This is fantastic! Thanks for getting this up.
Correct :) @compulim could you verify the above? |
|
For the badge - yeah, that's it, how did I miss it? It's for the CI - from what I know atm, compulim or I would do the CI so you don't have to worry about that for now :) Since I know there are plenty of C# bot devs out there - for a C# section, is your
Inspiration taken from https://github.com/microsoft/BotBuilder-Samples/tree/main/samples Thoughts? |
|
I had the API in both JS and C#, but both of them used a static So yeah, I think the structure you suggested makes sense, with the |
|
Quick update - I've put this PR on @compulim's radar, but he's shuffling a ton of work right now (aren't we all? :) ), so a review may be delayed. :( Thanks for your patience -- we're VERY excited for your contribution. Feel free to ping us here. I'm also adding it to our project board so 🤞 for sooner review rather than later. |
|
Sounds good, thanks for the update. I'll try to get the C# version in here shortly |
|
C# version is in there now. I added another open question around whether the C# version needs the API-to-bot proxy that other JS samples have. |
|
@navzam I updated your branch with master, just FYI :) |
corinagum
left a comment
There was a problem hiding this comment.
LGTM! Due to time constraints, I'd be satisfied just having this merged in, and if @compulim gets time later on to do his review, we can always go back and make edits. At the very least this is a huge ask from customers and is a solid basis to get them started.
I also think that a hosted demo is a relatively low priority, considering there's not much interaction to test out. So I suggest we don't worry about that for now.
Many many thanks again @navzam for your hard work (and following the format of our samples too!), and my apologies for the long delay in getting this up and running.
|
Awesome, thanks @corinagum for helping review and merge this! |

Changelog Entry
Description
(following up on the discussion with @corinagum in #2343)
Added a sample that shows how to integrate Web Chat using a token instead of a secret, which can help developers protect their secret and mitigate user impersonation.
I took my original direct-line-token-sample and tried to make it fit the format of other Web Chat samples, particularly the ones in
07.advanced-web-chat-apps.Open Questions
Since I'm new to contributing to this repo, I have some open questions:
01.getting-started/k.direct-line-token.07.advanced-web-chat-appshave? If so, any guidance on how I can verify those files?localhostendpoint, similar to what other JS samples have? Or is that only needed for the hosted demo?Specific Changes
bot/andweb/respectively (in bothcsharpandjavascript), and aREADME.md. Currently lives in01.getting-started/k.direct-line-tokenbut can be moved easily.CHANGELOG.mdREADME.mdincludedReview Checklist
z-index)package.jsonandpackage-lock.jsonreviewed