Microsoft.Teams.Apps.OAuth Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
| Name | Description |
|---|---|
| OAuthCard |
Represents an OAuthCard used to initiate an OAuth sign-in flow. |
| OAuthFlow |
Provides a high-level abstraction for Teams Bot SSO authentication. Encapsulates silent token acquisition, SSO token exchange, fallback sign-in, and sign-out. |
| OAuthFlowExtensions |
Extension methods for registering OAuthFlow instances on a TeamsBotApplication. |
| OAuthOptions |
Options for the OAuth sign-in flow. |
| SignInFailureValue |
Value payload of the signin/failure invoke activity. Sent by the Teams client when SSO token exchange fails client-side. |
| SignInTokenExchangeValue |
Value payload of the signin/tokenExchange invoke activity. |
| SignInVerifyStateValue |
Value payload of the signin/verifyState invoke activity. |
| TokenExchangeInvokeResponse |
Response body returned in the invoke response for a failed signin/tokenExchange. Sent with HTTP 412 (PreconditionFailed) to tell Teams to fall back to the sign-in card. |
Delegates
| Name | Description |
|---|---|
| SignInCompleteHandler |
Delegate invoked after a successful OAuth token exchange or sign-in verification. |
| SignInFailureHandler |
Delegate invoked when an OAuth token exchange or sign-in verification fails. |