Skip to content

Commit

Permalink
feat:支持管理我的 OAUTH TencentBlueKing#10995
Browse files Browse the repository at this point in the history
  • Loading branch information
hejieehe committed Oct 9, 2024
1 parent d7ed4d1 commit 5d60e5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RepoGitOauthService @Autowired constructor(
oauthType = OauthType.GIT,
client = client
) {
override fun get(userId: String, projectId: String): UserOauthInfo? {
override fun get(userId: String, projectId: String?): UserOauthInfo? {
val gitToken = client.get(ServiceOauthResource::class).gitGet(userId).data ?: return null
// 授权过期
var expired = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RepoGithubOauthService @Autowired constructor(
oauthType = OauthType.GITHUB,
client = client
) {
override fun get(userId: String, projectId: String): UserOauthInfo? {
override fun get(userId: String, projectId: String?): UserOauthInfo? {
val gitToken = client.get(ServiceGithubResource::class).getAccessToken(
userId = userId
).data ?: return null
Expand Down

0 comments on commit 5d60e5e

Please sign in to comment.