Skip to content

Disable Issuing Jwt in your monolithic application

Yugang Zhou edited this page May 1, 2019 · 2 revisions

Daming提供了内建的验证短信验证码的API端点,当验证成功后会签发JWT给下游的API说明该手机号码已被验证通过。
但如果你在单体应用内,可能希望直接使用Java API将验证嵌入到自己的API中,以便减少User Agent调用API的次数。
Daming提供了daming.jwt.enabled配置项方便你可以关闭内建JWT的组件和验证API了。

你可以通过环境变量\配置文件设置该配置项:

# application-{profile}.properties
daming.jwt.enabled=false

Clone this wiki locally