令牌验证 token
生活随笔
收集整理的這篇文章主要介紹了
令牌验证 token
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
通過令牌驗證在注冊中心控制權限,以決定要不要下發令牌給消費者,可以防止消費者繞過注冊中心訪問提供者,另外通過注冊中心可靈活改變授權方式,而不需修改或升級提供者。
可以全局設置開啟令牌驗證:
<!--隨機token令牌,使用UUID生成--> <dubbo:provider interface="com.foo.BarService" token="true" />或
<!--固定token令牌,相當于密碼--> <dubbo:provider interface="com.foo.BarService" token="123456" />也可在服務級別設置:
<!--隨機token令牌,使用UUID生成--> <dubbo:service interface="com.foo.BarService" token="true" />或
<!--固定token令牌,相當于密碼--> <dubbo:service interface="com.foo.BarService" token="123456" />還可在協議級別設置:
<!--隨機token令牌,使用UUID生成--> <dubbo:protocol name="dubbo" token="true" />或
<!--固定token令牌,相當于密碼--> <dubbo:protocol name="dubbo" token="123456" />?
轉載于:https://www.cnblogs.com/yifanSJ/p/9197506.html
總結
以上是生活随笔為你收集整理的令牌验证 token的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jQuery - (JQuery dat
- 下一篇: for 循环 和 Array 数组对象