You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WSO2 Identity Server 6.1.0多事件处理器配置方法咨询

WSO2 Identity Server 6.1.0 多事件处理器正确配置方式
  • 可以同时添加多个事件处理器,WSO2 IS支持为不同业务场景配置独立的事件处理器,比如你提到的首次登录密码重置处理器和自定义OTP处理器可以共存。
  • 第一种配置方式是正确的:每个事件处理器都通过独立的[[event_handler]]块定义,系统会分别加载两个处理器的配置和对应逻辑,互不干扰。
  • 第二种配置方式错误:同一个[[event_handler]]块内重复定义name属性会导致配置解析冲突,系统只会识别最后一个name对应的配置,前一个处理器的配置会被覆盖,无法正常生效。

正确配置示例:

# for count login for password reset on first login

[[event_handler]]
name="customUserLogin"
subscriptions=["POST_ADD_USER"]

# for otp called from external apis 

[[event_handler]]
name= "smsOtp"
properties.enabled=true
properties.tokenLength=6
properties.triggerNotification=true
properties.alphanumericToken=true
# OTP validation failure reason will be sent in the response.
properties.showValidationFailureReason=false
properties.tokenValidityPeriod=120
# Same valid OTP will be resent, if issued within the interval.
# Set '0' to always send a new OTP.
# Should be less than the 'tokenValidityPeriod' value.
properties.tokenRenewalInterval=60
# Throttle OTP generation requests from the same user Id.
# Set '0' for no throttling.
properties.resendThrottleInterval=30
# Set the maximum validation attempts allowed until the generated sms-otp expires.
properties.maxValidationAttemptsAllowed=5

内容的提问来源于stack exchange,提问作者user666

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 18:59:59