* FIX: Admin now is internationalized.
* FIX: Webchat now receives a private token. * FIX: OAuth2 now has got revised and included state to avoid CSRF attacks. * FIX: Now server will only start with a secure administration password.
This commit is contained in:
parent
9c9340873c
commit
045d2dbac9
6 changed files with 11 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "botlib",
|
"name": "botlib",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp)",
|
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp)",
|
||||||
"main": "dist/src/index.js",
|
"main": "dist/src/index.js",
|
||||||
"types": "dist/src/index.d.ts",
|
"types": "dist/src/index.d.ts",
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ import { IGBInstance } from "./IGBinstance"
|
||||||
import { IGBCoreService } from "./IGBCoreService"
|
import { IGBCoreService } from "./IGBCoreService"
|
||||||
import { IGBConversationalService, IGBPackage } from "."
|
import { IGBConversationalService, IGBPackage } from "."
|
||||||
import { AzureText } from "pragmatismo-io-framework"
|
import { AzureText } from "pragmatismo-io-framework"
|
||||||
|
import { IGBAdminService } from "./IGBAdminService";
|
||||||
|
|
||||||
/** Minimal services for bot. */
|
/** Minimal services for bot. */
|
||||||
|
|
||||||
|
|
@ -46,6 +47,7 @@ export class GBMinInstance {
|
||||||
instance: IGBInstance
|
instance: IGBInstance
|
||||||
core: IGBCoreService
|
core: IGBCoreService
|
||||||
conversationalService: IGBConversationalService
|
conversationalService: IGBConversationalService
|
||||||
|
adminService: IGBAdminService
|
||||||
textServices: AzureText
|
textServices: AzureText
|
||||||
bot: BotAdapter
|
bot: BotAdapter
|
||||||
dialogs: DialogSet
|
dialogs: DialogSet
|
||||||
|
|
|
||||||
|
|
@ -35,4 +35,5 @@
|
||||||
export interface IGBAdminService {
|
export interface IGBAdminService {
|
||||||
putValue(key: string, value: string);
|
putValue(key: string, value: string);
|
||||||
getValue(key: string)
|
getValue(key: string)
|
||||||
|
acquireElevatedToken(instanceId):Promise<string>;
|
||||||
}
|
}
|
||||||
|
|
@ -42,7 +42,6 @@ import { IGBAdminService } from "./IGBAdminService";
|
||||||
*/
|
*/
|
||||||
export interface IGBCoreService {
|
export interface IGBCoreService {
|
||||||
sequelize: Sequelize
|
sequelize: Sequelize
|
||||||
adminService: IGBAdminService
|
|
||||||
initDatabase()
|
initDatabase()
|
||||||
syncDatabaseStructure()
|
syncDatabaseStructure()
|
||||||
loadInstances(): IGBInstance[]
|
loadInstances(): IGBInstance[]
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,13 @@
|
||||||
export interface IGBInstance {
|
export interface IGBInstance {
|
||||||
botId:string
|
botId:string
|
||||||
whoAmIVideo: string
|
whoAmIVideo: string
|
||||||
applicationPrincipal: string
|
botServerUrl: string
|
||||||
authenticatorTenant: string
|
authenticatorTenant: string
|
||||||
authenticatorClientID: string
|
authenticatorClientId: string
|
||||||
|
authenticatorClientSecret: string
|
||||||
|
authenticatorAuthorityHostUrl: string
|
||||||
|
cloudSubscriptionId: string
|
||||||
|
cloudRegion: string
|
||||||
instanceId: number
|
instanceId: number
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description: string
|
||||||
|
|
|
||||||
|
|
@ -41,3 +41,4 @@ export { IGBInstance } from './IGBInstance'
|
||||||
export { GBError, GBERROR_TYPE } from './GBError'
|
export { GBError, GBERROR_TYPE } from './GBError'
|
||||||
export { GBService } from './GBService'
|
export { GBService } from './GBService'
|
||||||
export { GBMinInstance } from './GBMinInstance'
|
export { GBMinInstance } from './GBMinInstance'
|
||||||
|
export { IGBAdminService } from './IGBAdminService'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue