mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-21 01:10:39 +08:00
第三方快捷登录前端按钮;后端跳转逻辑;数据库映射完成
This commit is contained in:
38
bookshelfplus/src/main/java/plus/bookshelf/Common/ThirdParty/ThirdPartyConfig.java
vendored
Normal file
38
bookshelfplus/src/main/java/plus/bookshelf/Common/ThirdParty/ThirdPartyConfig.java
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
package plus.bookshelf.Common.ThirdParty;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "thirdparty")
|
||||
@PropertySource("thirdparty.properties")
|
||||
@Data
|
||||
public class ThirdPartyConfig {
|
||||
|
||||
// Gitee
|
||||
@Value("${thirdparty.gitee.clientid}")
|
||||
private String giteeClientId;
|
||||
@Value("${thirdparty.gitee.clientsecret}")
|
||||
private String giteeClientsecret;
|
||||
@Value("${thirdparty.gitee.redirecturi}")
|
||||
private String giteeRedirecturi;
|
||||
|
||||
// QQ
|
||||
@Value("${thirdparty.qq.clientid}")
|
||||
private String qqClientid;
|
||||
@Value("${thirdparty.qq.clientsecret}")
|
||||
private String qqClientsecret;
|
||||
@Value("${thirdparty.qq.redirecturi}")
|
||||
private String qqRedirecturi;
|
||||
|
||||
//GitHub
|
||||
@Value("${thirdparty.github.clientid}")
|
||||
private String githubClientid;
|
||||
@Value("${thirdparty.github.clientsecret}")
|
||||
private String githubClientsecret;
|
||||
@Value("${thirdparty.github.redirecturi}")
|
||||
private String githubRedirecturi;
|
||||
}
|
Reference in New Issue
Block a user