Skip to content

Commit

Permalink
feat:oauth2 增加密码模式 #10663
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Sep 20, 2024
1 parent 28fb1b4 commit 06a3dd3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 06a3dd3

Please sign in to comment.