ruoyi-auth.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # 安全配置
  2. security:
  3. # 验证码
  4. captcha:
  5. # 是否开启验证码
  6. enabled: true
  7. # 验证码类型 math 数组计算 char 字符验证
  8. type: MATH
  9. # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
  10. category: CIRCLE
  11. # 数字验证码位数
  12. numberLength: 1
  13. # 字符验证码长度
  14. charLength: 4
  15. # 用户配置
  16. user:
  17. password:
  18. # 密码最大错误次数
  19. maxRetryCount: 5
  20. # 密码锁定时间(默认10分钟)
  21. lockTime: 10
  22. --- # 三方授权
  23. justauth:
  24. enabled: true
  25. # 前端外网访问地址
  26. address: http://localhost:80
  27. type:
  28. maxkey:
  29. # maxkey 服务器地址
  30. # 注意 如下均配置均不需要修改 maxkey 已经内置好了数据
  31. server-url: http://sso.maxkey.top
  32. client-id: 876892492581044224
  33. client-secret: x1Y5MTMwNzIwMjMxNTM4NDc3Mzche8
  34. redirect-uri: ${justauth.address}/social-callback?source=maxkey
  35. topiam:
  36. # topiam 服务器地址
  37. server-url: http://127.0.0.1:1989/api/v1/authorize/y0q************spq***********8ol
  38. client-id: 449c4*********937************759
  39. client-secret: ac7***********1e0************28d
  40. redirect-uri: ${justauth.address}/social-callback?source=topiam
  41. scopes: [ openid, email, phone, profile ]
  42. qq:
  43. client-id: 10**********6
  44. client-secret: 1f7d08**********5b7**********29e
  45. redirect-uri: ${justauth.address}/social-callback?source=qq
  46. union-id: false
  47. weibo:
  48. client-id: 10**********6
  49. client-secret: 1f7d08**********5b7**********29e
  50. redirect-uri: ${justauth.address}/social-callback?source=weibo
  51. gitee:
  52. client-id: 91436b7940090d09c72c7daf85b959cfd5f215d67eea73acbf61b6b590751a98
  53. client-secret: 02c6fcfd70342980cd8dd2f2c06c1a350645d76c754d7a264c4e125f9ba915ac
  54. redirect-uri: ${justauth.address}/social-callback?source=gitee
  55. dingtalk:
  56. client-id: 10**********6
  57. client-secret: 1f7d08**********5b7**********29e
  58. redirect-uri: ${justauth.address}/social-callback?source=dingtalk
  59. baidu:
  60. client-id: 10**********6
  61. client-secret: 1f7d08**********5b7**********29e
  62. redirect-uri: ${justauth.address}/social-callback?source=baidu
  63. csdn:
  64. client-id: 10**********6
  65. client-secret: 1f7d08**********5b7**********29e
  66. redirect-uri: ${justauth.address}/social-callback?source=csdn
  67. coding:
  68. client-id: 10**********6
  69. client-secret: 1f7d08**********5b7**********29e
  70. redirect-uri: ${justauth.address}/social-callback?source=coding
  71. coding-group-name: xx
  72. oschina:
  73. client-id: 10**********6
  74. client-secret: 1f7d08**********5b7**********29e
  75. redirect-uri: ${justauth.address}/social-callback?source=oschina
  76. alipay_wallet:
  77. client-id: 10**********6
  78. client-secret: 1f7d08**********5b7**********29e
  79. redirect-uri: ${justauth.address}/social-callback?source=alipay_wallet
  80. alipay-public-key: MIIB**************DAQAB
  81. wechat_open:
  82. client-id: 10**********6
  83. client-secret: 1f7d08**********5b7**********29e
  84. redirect-uri: ${justauth.address}/social-callback?source=wechat_open
  85. wechat_mp:
  86. client-id: 10**********6
  87. client-secret: 1f7d08**********5b7**********29e
  88. redirect-uri: ${justauth.address}/social-callback?source=wechat_mp
  89. wechat_enterprise:
  90. client-id: 10**********6
  91. client-secret: 1f7d08**********5b7**********29e
  92. redirect-uri: ${justauth.address}/social-callback?source=wechat_enterprise
  93. agent-id: 1000002
  94. gitlab:
  95. client-id: 10**********6
  96. client-secret: 1f7d08**********5b7**********29e
  97. redirect-uri: ${justauth.address}/social-callback?source=gitlab