Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit b953156

Browse files
Sample corrections (#1008)
* add missing ConnectionName * Fix for change in API signature.
1 parent a49b416 commit b953156

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
MicrosoftAppId=
22
MicrosoftAppPassword=
33
server.port=3978
4+
ConnectionName=

samples/52.teams-messaging-extensions-search-auth-config/src/main/java/com/microsoft/bot/sample/teamssearchauth/TeamsMessagingExtensionsSearchAuthConfigBot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private CompletableFuture<MessagingExtensionResponse> emailExtensionQuery(
184184
.thenCompose(response -> {
185185
if (response == null || StringUtils.isEmpty(response.getToken())) {
186186
// There is no token, so the user has not signed in yet.
187-
return tokenProvider.getOauthSignInLink(turnContext, connectionName)
187+
return tokenProvider.getOAuthSignInLink(turnContext, connectionName)
188188
.thenApply(link -> new MessagingExtensionResponse() {{
189189
setComposeExtension(new MessagingExtensionResult() {{
190190
setType("auth");

0 commit comments

Comments
 (0)