UNPKG

@microsoft/teams-ai

Version:

SDK focused on building AI based applications for Microsoft Teams.

53 lines 1.89 kB
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); exports.TeamsSsoAdaptiveCardAuthentication = void 0; const AdaptiveCardAuthenticationBase_1 = require("./AdaptiveCardAuthenticationBase"); /** * @internal * * Handles authentication using Teams SSO for Adaptive Cards in Teams. */ class TeamsSsoAdaptiveCardAuthentication extends AdaptiveCardAuthenticationBase_1.AdaptiveCardAuthenticationBase { /** * Initializes a new instance of the TeamsSsoAdaptiveCardAuthentication class. */ constructor() { super(); } /** * Handles the SSO token exchange. */ async handleSsoTokenExchange() { throw new Error('Not implemented'); } /** * Handles the user sign-in. * @param {TurnContext} context - The turn context. * @param {string} magicCode - The magic code from user sign-in. */ async handleUserSignIn(context, magicCode) { throw new Error('Not implemented'); } /** * Gets the login request for Adaptive Card authentication. * @param {TurnContext} context - The turn context. */ async getLoginRequest(context) { throw new Error('Not implemented'); } /** * Checks if the activity is valid for Adaptive Card authentication. * @param {TurnContext} context - The turn context. * @returns {boolean} A boolean indicating if the activity is valid. */ isValidActivity(context) { if (super.isValidActivity(context)) { console.warn('TeamsSsoSetting does not support Adaptive Card authentication yet. Please use OAuthSetting instead.'); } return false; } } exports.TeamsSsoAdaptiveCardAuthentication = TeamsSsoAdaptiveCardAuthentication; //# sourceMappingURL=TeamsSsoAdaptiveCardAuthentication.js.map