From 01cfc9f0d89b6bc4c4eec217117bf36485a06ebc Mon Sep 17 00:00:00 2001 From: Eric Dahlvang Date: Wed, 6 May 2020 14:23:22 -0700 Subject: [PATCH] Add 'state' to AppBasedLinkQuery for Teams auth flow --- .../botframework-connector/src/teams/models/mappers.ts | 6 ++++++ .../botframework-schema/etc/botframework-schema.api.md | 1 + libraries/botframework-schema/src/teams/index.ts | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/libraries/botframework-connector/src/teams/models/mappers.ts b/libraries/botframework-connector/src/teams/models/mappers.ts index 198ba49f28..ed74c13a48 100644 --- a/libraries/botframework-connector/src/teams/models/mappers.ts +++ b/libraries/botframework-connector/src/teams/models/mappers.ts @@ -1860,6 +1860,12 @@ export const AppBasedLinkQuery: msRest.CompositeMapper = { type: { name: 'String' } + }, + state: { + serializedName: 'state', + type: { + name: 'String' + } } } } diff --git a/libraries/botframework-schema/etc/botframework-schema.api.md b/libraries/botframework-schema/etc/botframework-schema.api.md index 53a4230b04..00dca388f0 100644 --- a/libraries/botframework-schema/etc/botframework-schema.api.md +++ b/libraries/botframework-schema/etc/botframework-schema.api.md @@ -157,6 +157,7 @@ export interface AnimationCard { // @public export interface AppBasedLinkQuery { url?: string; + state?: string; } // @public diff --git a/libraries/botframework-schema/src/teams/index.ts b/libraries/botframework-schema/src/teams/index.ts index aadc78c494..659a166d6c 100644 --- a/libraries/botframework-schema/src/teams/index.ts +++ b/libraries/botframework-schema/src/teams/index.ts @@ -1243,6 +1243,10 @@ export interface AppBasedLinkQuery { * @member {string} [url] Url queried by user */ url?: string; + /** + * @member {string} [state] State is the magic code for OAuth Flow + */ + state?: string; } /**