* add missing ConnectionName * Fix for change in API signature. Co-authored-by: Lee Parrish <30470292+LeeParrishMSFT@users.noreply.github.com>
This commit is contained in:
Родитель
d936ed0e28
Коммит
51bbcd365c
|
@ -1,3 +1,4 @@
|
||||||
MicrosoftAppId=
|
MicrosoftAppId=
|
||||||
MicrosoftAppPassword=
|
MicrosoftAppPassword=
|
||||||
server.port=3978
|
server.port=3978
|
||||||
|
ConnectionName=
|
||||||
|
|
|
@ -184,7 +184,7 @@ public class TeamsMessagingExtensionsSearchAuthConfigBot extends TeamsActivityHa
|
||||||
.thenCompose(response -> {
|
.thenCompose(response -> {
|
||||||
if (response == null || StringUtils.isEmpty(response.getToken())) {
|
if (response == null || StringUtils.isEmpty(response.getToken())) {
|
||||||
// There is no token, so the user has not signed in yet.
|
// There is no token, so the user has not signed in yet.
|
||||||
return tokenProvider.getOauthSignInLink(turnContext, connectionName)
|
return tokenProvider.getOAuthSignInLink(turnContext, connectionName)
|
||||||
.thenApply(link -> new MessagingExtensionResponse() {{
|
.thenApply(link -> new MessagingExtensionResponse() {{
|
||||||
setComposeExtension(new MessagingExtensionResult() {{
|
setComposeExtension(new MessagingExtensionResult() {{
|
||||||
setType("auth");
|
setType("auth");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче