diff --git a/yudao-admin-ui/src/api/login.js b/yudao-admin-ui/src/api/login.js
index 4ccf1be68..8ddb6d6ba 100644
--- a/yudao-admin-ui/src/api/login.js
+++ b/yudao-admin-ui/src/api/login.js
@@ -40,9 +40,9 @@ export function getCodeImg() {
}
// 接入第三方登录
-export function giteeLogin() {
+export function oAuthLogin(provider) {
return request({
- url: '/auth2/authorization/gitee',
+ url: '/auth2/authorization/' + provider,
method: 'get'
})
}
@@ -50,7 +50,7 @@ export function giteeLogin() {
export function getToken(path) {
console.log({path});
return request({
- url: '/auth2/login/gitee' + path,
+ url: '/auth2/login/github' + path,
method: 'get'
})
}
diff --git a/yudao-admin-ui/src/views/login.vue b/yudao-admin-ui/src/views/login.vue
index 685eed95d..738dae0a9 100644
--- a/yudao-admin-ui/src/views/login.vue
+++ b/yudao-admin-ui/src/views/login.vue
@@ -45,10 +45,14 @@
登 录 中...
+
-
- 使用 Gitee 帐号登录
-
+
+
+
+
{{item.title}}
+
+
@@ -59,7 +63,7 @@
diff --git a/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/LoginUser.java b/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/LoginUser.java
index 2c2ff8914..c5c4a984f 100644
--- a/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/LoginUser.java
+++ b/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/LoginUser.java
@@ -8,6 +8,7 @@ import org.springframework.security.core.userdetails.UserDetails;
import java.util.Collection;
import java.util.Date;
+import java.util.HashSet;
import java.util.Set;
/**
@@ -69,7 +70,7 @@ public class LoginUser implements UserDetails {
@Override
@JsonIgnore// 避免序列化
public Collection extends GrantedAuthority> getAuthorities() {
- return null;
+ return new HashSet<>();
}
@Override