From 06a3dd3d07ac5d72ec2b7cb3d4ac76e86ce05351 Mon Sep 17 00:00:00 2001 From: greysonfang Date: Fri, 20 Sep 2024 10:22:26 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Aoauth2=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=A8=A1=E5=BC=8F=20#10663?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth/service/oauth2/AuthorizationCodeTokenGranterTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/ci/core/auth/biz-auth/src/test/kotlin/com/tencent/devops/auth/service/oauth2/AuthorizationCodeTokenGranterTest.kt b/src/backend/ci/core/auth/biz-auth/src/test/kotlin/com/tencent/devops/auth/service/oauth2/AuthorizationCodeTokenGranterTest.kt index 81c86d2f8fa..9e85bf66d1c 100644 --- a/src/backend/ci/core/auth/biz-auth/src/test/kotlin/com/tencent/devops/auth/service/oauth2/AuthorizationCodeTokenGranterTest.kt +++ b/src/backend/ci/core/auth/biz-auth/src/test/kotlin/com/tencent/devops/auth/service/oauth2/AuthorizationCodeTokenGranterTest.kt @@ -50,8 +50,7 @@ class AuthorizationCodeTokenGranterTest : BkCiAbstractTest() { accessTokenInfo.accessToken = "testAccessToken" accessTokenInfo.clientId = "testClientId" accessTokenInfo.userName = "testUserName" - accessTokenInfo.grantType = "", - "testGrantType" + accessTokenInfo.grantType = "testGrantType" accessTokenInfo.expiredTime = System.currentTimeMillis() / 1000 + 1000 accessTokenInfo.refreshToken = "testRefreshToken" accessTokenInfo.scopeId = 1 @@ -74,7 +73,7 @@ class AuthorizationCodeTokenGranterTest : BkCiAbstractTest() { expiredAccessTokenInfo.clientId = "testClientId" expiredAccessTokenInfo.userName = "testUserName" expiredAccessTokenInfo.grantType = "", - "testGrantType" + "testGrantType" expiredAccessTokenInfo.expiredTime = System.currentTimeMillis() / 1000 - 1000 expiredAccessTokenInfo.refreshToken = "testRefreshToken" expiredAccessTokenInfo.scopeId = 1