* 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:
Rodrigo Rodriguez 2018-09-24 11:06:19 -03:00
parent 9c9340873c
commit 045d2dbac9
6 changed files with 11 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "botlib",
"version": "0.1.0",
"version": "0.1.1",
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp)",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",

View file

@ -37,6 +37,7 @@ import { IGBInstance } from "./IGBinstance"
import { IGBCoreService } from "./IGBCoreService"
import { IGBConversationalService, IGBPackage } from "."
import { AzureText } from "pragmatismo-io-framework"
import { IGBAdminService } from "./IGBAdminService";
/** Minimal services for bot. */
@ -46,6 +47,7 @@ export class GBMinInstance {
instance: IGBInstance
core: IGBCoreService
conversationalService: IGBConversationalService
adminService: IGBAdminService
textServices: AzureText
bot: BotAdapter
dialogs: DialogSet

View file

@ -35,4 +35,5 @@
export interface IGBAdminService {
putValue(key: string, value: string);
getValue(key: string)
acquireElevatedToken(instanceId):Promise<string>;
}

View file

@ -42,7 +42,6 @@ import { IGBAdminService } from "./IGBAdminService";
*/
export interface IGBCoreService {
sequelize: Sequelize
adminService: IGBAdminService
initDatabase()
syncDatabaseStructure()
loadInstances(): IGBInstance[]

View file

@ -35,9 +35,13 @@
export interface IGBInstance {
botId:string
whoAmIVideo: string
applicationPrincipal: string
botServerUrl: string
authenticatorTenant: string
authenticatorClientID: string
authenticatorClientId: string
authenticatorClientSecret: string
authenticatorAuthorityHostUrl: string
cloudSubscriptionId: string
cloudRegion: string
instanceId: number
title: string
description: string

View file

@ -41,3 +41,4 @@ export { IGBInstance } from './IGBInstance'
export { GBError, GBERROR_TYPE } from './GBError'
export { GBService } from './GBService'
export { GBMinInstance } from './GBMinInstance'
export { IGBAdminService } from './IGBAdminService'