-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1284 from microsoft/se/oauth
Adding OAuthCard support for Streaming Extensions
- Loading branch information
Showing
11 changed files
with
627 additions
and
7 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* @module botbuilder | ||
*/ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
|
||
/** | ||
* Provides details for token polling. | ||
*/ | ||
export interface TokenPollingSettings | ||
{ | ||
/** | ||
* Polling timeout time in milliseconds. This is equivalent to login flow timeout. | ||
*/ | ||
timeout?: number; | ||
|
||
/** | ||
* Time Interval in milliseconds between token polling requests. | ||
*/ | ||
interval?: number; | ||
} | ||
|
||
/** | ||
* TurnState key for the OAuth login timeout | ||
*/ | ||
export const OAuthLoginTimeoutKey: string = 'loginTimeout'; | ||
|
||
/** | ||
* Name of the token polling settings key. | ||
*/ | ||
export const TokenPollingSettingsKey: string = "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. | ||
*/ | ||
export const OAuthLoginTimeoutMsValue: number = 900000; |
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
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.