Skip to content

Instantly share code, notes, and snippets.

View EricDahlvang's full-sized avatar
🤖
bots bots bots

Eric Dahlvang EricDahlvang

🤖
bots bots bots
View GitHub Profile
@EricDahlvang
EricDahlvang / OAuthCardProvider.cs
Created April 19, 2022 23:57
Bot Builder OAuth without dialogs
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Security.Claims;
using System.Text.RegularExpressions;
using System.Threading;
{
"swagger": "2.0",
"info": {
"version": "v3",
"title": "Bot Connector - Direct Line API - v3.0",
"description": "Direct Line 3.0\r\n===============\r\n\r\n\r\nThe Direct Line API is a simple REST API for connecting directly to a single bot. This API is intended for developers\r\nwriting their own client applications, web chat controls, mobile apps, or service-to-service applications that will\r\ntalk to their bot.\r\n\r\nWithin the Direct Line API, you will find:\r\n\r\n* An **authentication mechanism** using standard secret/token patterns\r\n* The ability to **send** messages from your client to your bot via an HTTP POST message\r\n* The ability to **receive** messages by **WebSocket** stream, if you choose\r\n* The ability to **receive** messages by **polling HTTP GET**, if you choose\r\n* A stable **schema**, even if your bot changes its protocol version\r\n\r\nDirect Line 1.1 and 3.0 are both available and supported. This document describes Direct Line 3.0. For information\r\non Direct Li
{
"luis_schema_version": "3.1.0",
"versionId": "0.2",
"name": "TestCTScan",
"desc": "LUIS testing",
"culture": "en-us",
"intents": [
{
"name": "Cancel"
},