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
|
|
|
],
|
|
|
|
},
|
2020-05-22 14:29:13 +00:00
|
|
|
mfa_challenge: {
|
|
|
|
redirect_to: '/auth/mfa/challenge',
|
|
|
|
allowed_routes: [
|
2020-05-30 22:21:47 +00:00
|
|
|
'/auth/mfa/recovery',
|
2020-05-22 14:29:13 +00:00
|
|
|
'/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-22 14:29:13 +00:00
|
|
|
],
|
|
|
|
},
|
2020-08-13 03:07:53 +00:00
|
|
|
login_message: {
|
|
|
|
redirect_to: '/auth/login-message',
|
|
|
|
allowed_routes: [
|
|
|
|
'/auth/logout',
|
|
|
|
'/auth/login-message',
|
|
|
|
'/auth/login-message/dismiss',
|
|
|
|
],
|
|
|
|
},
|
2021-05-04 01:06:51 +00:00
|
|
|
registrant_flow: {
|
|
|
|
redirect_to: '/auth/finish-registration',
|
|
|
|
allowed_routes: [
|
|
|
|
'/auth/finish-registration',
|
|
|
|
'/auth/logout',
|
|
|
|
'/auth/login',
|
|
|
|
'/api/v1/locale/batch',
|
|
|
|
'/api/v1/auth/validate/username',
|
|
|
|
'/api/v1/auth/attempt',
|
|
|
|
'/api/v1/vault/get-trust-payload',
|
|
|
|
],
|
|
|
|
},
|
2021-05-04 16:28:55 +00:00
|
|
|
verify_email: {
|
|
|
|
redirect_to: '/auth/verify-email',
|
|
|
|
allowed_routes: [
|
|
|
|
'/auth/verify-email',
|
|
|
|
'/auth/verify-email/sent',
|
|
|
|
'/auth/logout',
|
|
|
|
'/auth/login',
|
|
|
|
'/api/v1/locale/batch',
|
|
|
|
'/api/v1/auth/validate/username',
|
|
|
|
'/api/v1/auth/attempt',
|
|
|
|
'/api/v1/vault/get-trust-payload',
|
|
|
|
'/auth/action/*',
|
|
|
|
'/api/v1/message/banners',
|
|
|
|
'/api/v1/message/banners/read/*',
|
|
|
|
],
|
|
|
|
},
|
2020-05-20 14:56:03 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = exports = traps_config
|