六 12、过时: 统一回调地址路由功能配置 - ZeroOrInfinity/UMS GitHub Wiki

过时, 直接使用 core 模块, 集成 JustAuth

所属模块: social 模块

详细配置: demo 模块 -> basic-detail-example

ums:
  social:
    # =================== 统一回调路由地址 =======================
    # 第三方登录回调处理 url ,也是 RedirectUrl 的前缀,默认为 /auth/callback
    # 如果更改此 url,更改后的必须要实现 SocialController#authCallbackRouter(HttpServletRequest) 的功能
    callback-url: /auth/callback
    # redirectUrl 直接由 domain/servletContextPath/callbackUrl/providerId(ums.social.[qq/wechat/gitee/weibo])组成
    # 第三方登录回调的域名
    domain: http://www.dcenter.top
  
    # =================== 第三方服务商的信息 =======================
    # 从第三方服务商获取的信息
    qq:
      # 用户设置 true 时,{providerId}第三方登录自动开启,默认为 false
      enable: false
      app-id:
      app-secret:
      # redirectUrl 默认直接由 domain/servletContextPath/callbackUrl/providerId(ums.social.[qq/wechat/gitee/weibo])组成
      # redirect-url: http://www.dcenter.top/demo/auth/callback/qq
    gitee:
      # 用户设置 true 时,{providerId}第三方登录自动开启,默认为 false
      enable: true
      app-id:
      app-secret:
    weixin:
      # 用户设置 true 时,{providerId}第三方登录自动开启,默认为 false
      enable: false
      app-id:
      app-secret:
    weibo:
      # 用户设置 true 时,{providerId}第三方登录自动开启,默认为 false
      enable: false
      app-id:
      app-secret: