* https://github.com/jambonz/jambonz-api-server/issues/371
Implemented view_only permission feature
* calling prepare-permissions in create-test-db.js
* check if there is only 1 permission and if it is VIEW_ONLY then consider user as read-only user
* setting is_view_only flag for view user by userid
* Improved invalidation of JWT in redis
* use jwt as default value in generateRedisKey
* import logger in app.js
---------
Co-authored-by: Markus Frindt <m.frindt@cognigy.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>