AFAIK(一种认知登录尝试)将触发2个触发器,即预身份验证和自定义消息为per documentation。
谁知道首先要触发什么?还是我们可以依靠它们,它们将按顺序执行?
答案 0 :(得分:0)
CustomMessage触发器在特定情况下发生,例如:
只要其中一些事件发生并配置了触发器,就会触发该触发器。每次用户进行身份验证时,都会进行另一方的预身份验证。
如果您有一个自定义消息触发器,并且用户尝试注册,则将触发该触发器。每次用户注册后,用户进行身份验证后,都会触发auth触发器。因此答案是:取决于您的身份验证流程。
答案 1 :(得分:0)
我做了一些实验以确认行为,然后得到了这个结果:
2019-12-05T23:58:23.663Z - preAuthentication
2019-12-05T23:58:24.102Z - customMessage[authentication]
2019-12-06T00:00:02.366Z - preAuthentication
2019-12-06T00:00:02.957Z - customMessage[authentication]
2019-12-06T00:03:40.013Z - preAuthentication
2019-12-06T00:03:40.467Z - customMessage[authentication]
2019-12-06T00:07:32.168Z - preAuthentication
2019-12-06T00:07:32.692Z - customMessage[authentication]
因此,似乎 preAuthentication 总是第一位!