This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial Port of OAuthPrompt * Unit tests started * Unit Tests * Completed Unit Tests * Fix merge issue. * Complete Auth Sample and fixes to AuthDialog Co-authored-by: tracyboehrer <[email protected]>
- Loading branch information
1 parent
f24b0b9
commit d133a1e
Showing
38 changed files
with
5,304 additions
and
673 deletions.
There are no files selected for viewing
1,135 changes: 649 additions & 486 deletions
1,135
libraries/bot-builder/src/main/java/com/microsoft/bot/builder/BotFrameworkAdapter.java
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
libraries/bot-builder/src/main/java/com/microsoft/bot/builder/ConnectorClientBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.microsoft.bot.builder; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import com.microsoft.bot.connector.ConnectorClient; | ||
import com.microsoft.bot.connector.authentication.ClaimsIdentity; | ||
|
||
/** | ||
* Abstraction to build connector clients. | ||
*/ | ||
public interface ConnectorClientBuilder { | ||
|
||
/** | ||
* Creates the connector client asynchronous. | ||
* @param serviceUrl The service URL. | ||
* @param claimsIdentity The claims claimsIdentity. | ||
* @param audience The target audience for the connector. | ||
* @return ConnectorClient instance. | ||
*/ | ||
CompletableFuture<ConnectorClient> createConnectorClient(String serviceUrl, | ||
ClaimsIdentity claimsIdentity, | ||
String audience); | ||
} |
34 changes: 34 additions & 0 deletions
34
libraries/bot-builder/src/main/java/com/microsoft/bot/builder/TurnStateConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MT License. | ||
|
||
package com.microsoft.bot.builder; | ||
|
||
import java.time.Duration; | ||
|
||
/** | ||
* Constants used in TurnState. | ||
*/ | ||
public final class TurnStateConstants { | ||
|
||
private TurnStateConstants() { | ||
|
||
} | ||
|
||
/** | ||
* TurnState key for the OAuth login timeout. | ||
*/ | ||
public static final String OAUTH_LOGIN_TIMEOUT_KEY = "loginTimeout"; | ||
|
||
/** | ||
* Name of the token polling settings key. | ||
*/ | ||
public static final String TOKEN_POLLING_SETTINGS_KEY = "tokenPollingSettings"; | ||
|
||
/** | ||
* Default amount of time an OAuthCard will remain active (clickable and | ||
* actively waiting for a token). After this time: (1) the OAuthCard will not | ||
* allow the user to click on it. (2) any polling triggered by the OAuthCard | ||
* will stop. | ||
*/ | ||
public static final Duration OAUTH_LOGIN_TIMEOUT_VALUE = Duration.ofMinutes(15); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.