mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-21 01:10:39 +08:00
第三方登录添加飞书
This commit is contained in:
@@ -6,9 +6,7 @@ import me.zhyd.oauth.config.AuthConfig;
|
||||
import me.zhyd.oauth.exception.AuthException;
|
||||
import me.zhyd.oauth.model.AuthCallback;
|
||||
import me.zhyd.oauth.model.AuthResponse;
|
||||
import me.zhyd.oauth.request.AuthGiteeRequest;
|
||||
import me.zhyd.oauth.request.AuthOschinaRequest;
|
||||
import me.zhyd.oauth.request.AuthRequest;
|
||||
import me.zhyd.oauth.request.*;
|
||||
import me.zhyd.oauth.utils.AuthStateUtils;
|
||||
import org.apache.tomcat.jni.User;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -100,6 +98,12 @@ public class ThirdPartyController extends BaseController {
|
||||
.clientSecret(thirdPartyConfig.getOschinaClientsecret())
|
||||
.redirectUri(thirdPartyConfig.getOschinaRedirecturi())
|
||||
.build());
|
||||
case "feishu":
|
||||
return new AuthFeishuRequest(AuthConfig.builder()
|
||||
.clientId(thirdPartyConfig.getFeishuClientId())
|
||||
.clientSecret(thirdPartyConfig.getFeishuClientsecret())
|
||||
.redirectUri(thirdPartyConfig.getFeishuRedirecturi())
|
||||
.build());
|
||||
case "qq":
|
||||
return new AuthGiteeRequest(AuthConfig.builder()
|
||||
.clientId(thirdPartyConfig.getQqClientid())
|
||||
|
Reference in New Issue
Block a user