36 lines
1016 B
JavaScript
36 lines
1016 B
JavaScript
const traps_config = {
|
|
types: {
|
|
password_reset: {
|
|
redirect_to: '/password/reset',
|
|
assume_trust: true,
|
|
allowed_routes: [
|
|
'/password/reset',
|
|
'/api/v1/password/resets',
|
|
'/auth/logout',
|
|
'/api/v1/locale/batch',
|
|
],
|
|
},
|
|
mfa_challenge: {
|
|
redirect_to: '/auth/mfa/challenge',
|
|
allowed_routes: [
|
|
'/auth/mfa/recovery',
|
|
'/auth/mfa/challenge',
|
|
'/api/v1/auth/mfa/attempt',
|
|
'/auth/logout',
|
|
'/api/v1/auth/mfa/recovery/attempt',
|
|
'/api/v1/locale/batch',
|
|
],
|
|
},
|
|
login_message: {
|
|
redirect_to: '/auth/login-message',
|
|
allowed_routes: [
|
|
'/auth/logout',
|
|
'/auth/login-message',
|
|
'/auth/login-message/dismiss',
|
|
],
|
|
},
|
|
},
|
|
}
|
|
|
|
module.exports = exports = traps_config
|