* initial changes for env var support
* WIP
* Update applications.js
* JSON stringify before encrypting
* use call_hook.url
* env vars working
GET /v1/AppEnv?url=[URL] to trigger options request to URL and return app-schema
POST /v1/Applications with {env_vars: [OBJECT} to create app with env vars
PUT /v1/Applications/[SID] with {env_vars: [OBJECT} to change env vars
GET returns env vars
POST and PUT will also trigger an OPTIONS request to the call_hook url to get schema and then validate the env_vars against it
* update appenv cannot finish request.
* wip
* wip
* wip
* wip
---------
Co-authored-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: Quan HL <quan.luuhoang8@gmail.com>
Co-authored-by: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com>
* added private_newtwork_cidr to system_information table
* db schema upgrade to add system_information.private_network_cidr in 0.9.2
* increase size of system_information.private_network_cidr to varchar(8192)
* changes to enable/disable direct calling from chrome extension
* changes to db upgrade script
* fix upgrade db script
---------
Co-authored-by: Quan HL <quan.luuhoang8@gmail.com>
* feat: add protocol to sip-gateways
* add tls/srtp options
* fix sql
* update db script has new changes
---------
Co-authored-by: Dave Horton <daveh@beachdognet.com>
* added phone_numbers.app_json column
* modify prev commit to put app_json on applications table
* feat: add app_json to applications endpoint
---------
Co-authored-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: Quan HL <quanluuhoang8@gmail.com>
* initial changes for jwt auth
* return permissions as an array of string
* basic GET, POST, DELETE user api calls
* add permission checks
* hide hashed_password
* cleanup
* add check if admin user is active
* return account and serviceProvider sid un user object
* add more values to user PUT
* logout user after self delete, fix scope assignment
* add admin scope user tests
* fix test case and align jwt and api key data model in req.user
* fixes for ibm speech
* add limits license_count and voice_call_minutes
* update limits enum again
* rebase to main
* allow predefined carriers and speech credentials for Account user
* reverse the hasAccountPermissions changes
* SpeechCredentials permissions
* fix /Users/me api non-saas jambonz
Co-authored-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: eglehelms <e.helms@cognigy.com>
* initial changes for jwt auth
* return permissions as an array of string
* Add JWT expiration environment variable (#74)
* allow fromHost in createCall REST API
* add JWT_EXPIRES_IN=<mins> env variable, 60 mins by default
* add jwt expiration in register.js and signin.js
* fix tests - add permissions and scope to encoded obj in jwt
Co-authored-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: eglehelms <e.helms@cognigy.com>
* return only the jwt-token in the api response
Co-authored-by: EgleH <egle.helms@gmail.com>
Co-authored-by: eglehelms <e.helms@cognigy.com>