CoreID/config/traps.config.js

28 lines
769 B
JavaScript
Raw Normal View History

2020-05-20 14:56:03 +00:00
const traps_config = {
types: {
password_reset: {
redirect_to: '/password/reset',
assume_trust: true,
allowed_routes: [
'/password/reset',
'/api/v1/password/resets',
'/auth/logout',
2020-05-31 23:00:05 +00:00
'/api/v1/locale/batch',
2020-05-20 14:56:03 +00:00
],
},
mfa_challenge: {
redirect_to: '/auth/mfa/challenge',
allowed_routes: [
2020-05-30 22:21:47 +00:00
'/auth/mfa/recovery',
'/auth/mfa/challenge',
'/api/v1/auth/mfa/attempt',
'/auth/logout',
2020-05-30 22:21:47 +00:00
'/api/v1/auth/mfa/recovery/attempt',
2020-05-31 23:00:05 +00:00
'/api/v1/locale/batch',
],
},
2020-05-20 14:56:03 +00:00
},
}
module.exports = exports = traps_config