aimpress-chatbot/node_modules/botframework-connector/lib/auth/microsoftGovernmentAppCredentials.js
“SamoilenkoVadym” 55445dbc86
Some checks failed
Build and deploy Node.js app to Azure Web App - ChatBot2222 / build (push) Has been cancelled
Build and deploy Node.js app to Azure Web App - ChatBot2222 / deploy (push) Has been cancelled
Deploy bot to Azure
2025-04-27 19:55:19 +01:00

40 lines
No EOL
1.7 KiB
JavaScript

"use strict";
/**
* @module botframework-connector
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MicrosoftGovernmentAppCredentials = void 0;
const governmentConstants_1 = require("./governmentConstants");
const microsoftAppCredentials_1 = require("./microsoftAppCredentials");
/**
* MicrosoftGovermentAppCredentials auth implementation
*/
class MicrosoftGovernmentAppCredentials extends microsoftAppCredentials_1.MicrosoftAppCredentials {
/**
* Initializes a new instance of the [MicrosoftGovernmentAppCredentials](xref:botframework-connector.MicrosoftGovernmentAppCredentials) class.
*
* @param {string} appId The Microsoft app ID.
* @param {string} appPassword The Microsoft app password.
* @param {string} channelAuthTenant Optional. The oauth token tenant.
* @param {string} oAuthScope Optional. The scope for the token.
*/
constructor(appId, appPassword, channelAuthTenant, oAuthScope) {
super(appId, appPassword, channelAuthTenant, oAuthScope);
this.appPassword = appPassword;
}
GetToChannelFromBotOAuthScope() {
return governmentConstants_1.GovernmentConstants.ToChannelFromBotOAuthScope;
}
GetToChannelFromBotLoginUrlPrefix() {
return governmentConstants_1.GovernmentConstants.ToChannelFromBotLoginUrlPrefix;
}
GetDefaultChannelAuthTenant() {
return governmentConstants_1.GovernmentConstants.DefaultChannelAuthTenant;
}
}
exports.MicrosoftGovernmentAppCredentials = MicrosoftGovernmentAppCredentials;
//# sourceMappingURL=microsoftGovernmentAppCredentials.js.map