Add app passwords feature

This commit is contained in:
Girish Ramakrishnan
2020-01-31 15:28:42 -08:00
parent e3878fa381
commit 3427db3983
17 changed files with 459 additions and 58 deletions

View File

@@ -192,6 +192,11 @@ function initializeExpressSync() {
router.post('/api/v1/profile/twofactorauthentication/enable', profileScope, routes.profile.enableTwoFactorAuthentication);
router.post('/api/v1/profile/twofactorauthentication/disable', profileScope, routes.users.verifyPassword, routes.profile.disableTwoFactorAuthentication);
router.get ('/api/v1/app_passwords', profileScope, routes.appPasswords.list);
router.post('/api/v1/app_passwords', profileScope, routes.appPasswords.add);
router.get ('/api/v1/app_passwords/:id', profileScope, routes.appPasswords.get);
router.del ('/api/v1/app_passwords/:id', profileScope, routes.appPasswords.del);
// user routes
router.get ('/api/v1/users', usersReadScope, routes.users.list);
router.post('/api/v1/users', usersManageScope, routes.users.create);