Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Agent Authentication with JSON Web Token (JWT) (#43)
* Agent authentication Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added all API's authentication in controller Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added the jwt package Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added remove authentication for invitation url Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * fix: add the label on the out-of-band connection Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * fix: add the label on the out-of-band connection in mutli-tenancy Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added limit as a infinity in tenant session Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * fix: delete multi-tenancy by tenant Id Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * feat: Added the author agreement wallet version for indicio:mainnet Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Remove authentication agent status Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Remove console.log on the cliAgent file Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Patch the aries-framework-core package Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * refactor: added and store the token for get the constant token Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * feat:did:web didDocument creation Signed-off-by: pallavicoder <pallavi.ghule@ayanworks.com> * fix:updated gitignore file Signed-off-by: pallavicoder <pallavi.ghule@ayanworks.com> * fix:error handling for key type Signed-off-by: pallavicoder <pallavi.ghule@ayanworks.com> * added comments for the token functionality Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Set infinity in agent session Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Add sessionLimit as a infinity Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * fix: Add configuration in cli.ts Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * set flag multiUseInvitation to true in all OOB requests Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com> * Agent authentication Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added all API's authentication in controller Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added the jwt package Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added remove authentication for invitation url Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * fix: add the label on the out-of-band connection in mutli-tenancy Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added limit as a infinity in tenant session Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * fix: delete multi-tenancy by tenant Id Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * feat: Added the author agreement wallet version for indicio:mainnet Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Remove authentication agent status Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * refactor: added and store the token for get the constant token Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Add sessionLimit as a infinity Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * refactor: added the withTenantAgent function for session management for multi-tenancy Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Fixes sonar lint issues Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * chore: add eslint and prettier (#49) * chore: add lint and dependencies Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: lint issues Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: build Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: format Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * ci: add integration git action Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: delete build file Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> --------- Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * add proof record threadId in oob create request endpoint Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com> * fix: add the label on the out-of-band connection in mutli-tenancy Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * feat:did:web didDocument creation Signed-off-by: pallavicoder <pallavi.ghule@ayanworks.com> * fix:error handling for key type Signed-off-by: pallavicoder <pallavi.ghule@ayanworks.com> * set flag multiUseInvitation to true in all OOB requests Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com> * Agent authentication Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added all API's authentication in controller Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added the jwt package Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Added remove authentication for invitation url Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * fix: add the label on the out-of-band connection Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Remove authentication agent status Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * added comments for the token functionality Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * refactor: added the withTenantAgent function for session management for multi-tenancy Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * chore: add eslint and prettier (#49) * chore: add lint and dependencies Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: lint issues Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: build Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: format Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * ci: add integration git action Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: delete build file Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> --------- Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * chore: add eslint and prettier (#49) * chore: add lint and dependencies Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: lint issues Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: build Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: format Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * ci: add integration git action Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: delete build file Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> --------- Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: add the label on the out-of-band connection Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * feat: Added the author agreement wallet version for indicio:mainnet Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * chore: add eslint and prettier (#49) * chore: add lint and dependencies Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: lint issues Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: build Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: format Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * ci: add integration git action Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: delete build file Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> --------- Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: added the express rate limit for security Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * added the rate limit in utils Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * remove the cliConfig file Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Update condition for store the token on the wallet Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * chore: add eslint and prettier (#49) * chore: add lint and dependencies Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: lint issues Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: build Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: format Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * ci: add integration git action Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * fix: delete build file Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> --------- Signed-off-by: Sai Ranjit Tummalapalli <sairanjit.tummalapalli@ayanworks.com> * Added the limit on the utils Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Multi-tenancy refactor withTanantAgent function Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Update yarn.lock Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * fix: solved eslint and prettier Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Solved prettier Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Update prettier and add on the eslintrc Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Solved the prettier issues Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * Solved compile issues in route.ts Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> --------- Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
- Loading branch information