* limit access to resources according to user scope
* fix error change
* speech credentials validation
* fix speech credentials validation
* fix the issues that didnt allow tests to pass
* speech credential validation
* retrieve speech cred list
* fixt speech credential test valodation
* check scope of smpp-gateways
* check scope of smpp-gateways
* testing time
* /signin for hosted system needs to return scope in jwt
* fix user delete route and adjust tests
* get refactor
---------
Co-authored-by: eglehelms <e.helms@cognigy.com>
Co-authored-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: Guilherme Rauen <g.rauen@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>