dromara/Sa-Token

OAuth2是否支持自定义拆分路由

strongyc opened this issue · 1 comments

对以下问题有疑问:

OAuth2是否支持自定义路由
比如:sso
/**

  • Sa-Token-SSO Server端 Controller
    */
    @RestController
    public class SsoServerController {

    // SSO-Server:统一认证地址
    @RequestMapping("/sso/auth")
    public Object ssoAuth() {
    return SaSsoServerProcessor.instance.ssoAuth();
    }

    // SSO-Server:RestAPI 登录接口
    @RequestMapping("/sso/doLogin")
    public Object ssoDoLogin() {
    return SaSsoServerProcessor.instance.ssoDoLogin();
    }

    // SSO-Server:校验ticket 获取账号id
    @RequestMapping("/sso/checkTicket")
    public Object ssoCheckTicket() {
    return SaSsoServerProcessor.instance.ssoCheckTicket();
    }

    // SSO-Server:单点注销
    @RequestMapping("/sso/signout")
    public Object ssoSignout() {
    return SaSsoServerProcessor.instance.ssoSignout();
    }

    // ... 其它方法

}