@microsoft/teams.cards
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.cards" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=code" ta
46 lines (44 loc) • 1.12 kB
JavaScript
;
class Auth {
/**
* Text that can be displayed to the end user when prompting them to authenticate.
*/
text;
/**
* The identifier for registered OAuth connection setting information.
*/
connectionName;
/**
* Provides information required to enable on-behalf-of single sign-on user authentication.
*/
tokenExchangeResource;
/**
* Buttons that should be displayed to the user when prompting for authentication. The array MUST contain one button of type “signin”. Other button types are not currently supported.
*/
buttons;
constructor(options = {}) {
Object.assign(this, options);
}
withText(value) {
this.text = value;
return this;
}
withConnectionName(value) {
this.connectionName = value;
return this;
}
withTokenExchangeResource(value) {
this.tokenExchangeResource = value;
return this;
}
addButtons(...value) {
if (!this.buttons) {
this.buttons = [];
}
this.buttons.push(...value);
return this;
}
}
exports.Auth = Auth;
//# sourceMappingURL=auth.js.map
//# sourceMappingURL=auth.js.map