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 Dec 12, 2024
1 parent b34f69d commit a9d1b56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ApigwOauthResourceV4Impl @Autowired constructor(private val client: Client
scmCode: String
): Result<Boolean> {
logger.info("OPENAPI_OAUTH_V4|$userId|verify if $scmCode oauth authorization has been performed")
val result = when (scmCode) {
val result = when (scmCode) {
ScmCode.TGIT.name -> {
client.get(ServiceOauthResource::class).isOAuth(
userId = userId,
Expand All @@ -59,10 +59,10 @@ class ApigwOauthResourceV4Impl @Autowired constructor(private val client: Client
).data?.status
}

else -> {
null
}
}
else -> {
null
}
}
return Result(result == AUTHORIZED_STATUS)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,4 @@ object RepositoryMessageCode {
const val OPERATION_LIST_TAGS = "OperationListTags" // 获取Tag列表

const val TRIGGER_CONDITION_PREFIX = "trigger.condition"

}

0 comments on commit a9d1b56

Please sign in to comment.