Skip to content

Commit 4e3fe5b

Browse files
Rui YangCI Bot
authored andcommitted
Fix tests in TestServerSupportedGrants for client credentials
Signed-off-by: Rui Yang <ruiya@vmware.com>
1 parent e9f07b5 commit 4e3fe5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/server_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,25 +1745,25 @@ func TestServerSupportedGrants(t *testing.T) {
17451745
{
17461746
name: "Simple",
17471747
config: func(c *Config) {},
1748-
resGrants: []string{grantTypeAuthorizationCode, grantTypeRefreshToken, grantTypeDeviceCode},
1748+
resGrants: []string{grantTypeAuthorizationCode, grantTypeClientCredentials, grantTypeRefreshToken, grantTypeDeviceCode},
17491749
},
17501750
{
17511751
name: "With password connector",
17521752
config: func(c *Config) { c.PasswordConnector = "local" },
1753-
resGrants: []string{grantTypeAuthorizationCode, grantTypePassword, grantTypeRefreshToken, grantTypeDeviceCode},
1753+
resGrants: []string{grantTypeAuthorizationCode, grantTypeClientCredentials, grantTypePassword, grantTypeRefreshToken, grantTypeDeviceCode},
17541754
},
17551755
{
17561756
name: "With token response",
17571757
config: func(c *Config) { c.SupportedResponseTypes = append(c.SupportedResponseTypes, responseTypeToken) },
1758-
resGrants: []string{grantTypeAuthorizationCode, grantTypeImplicit, grantTypeRefreshToken, grantTypeDeviceCode},
1758+
resGrants: []string{grantTypeAuthorizationCode, grantTypeClientCredentials, grantTypeImplicit, grantTypeRefreshToken, grantTypeDeviceCode},
17591759
},
17601760
{
17611761
name: "All",
17621762
config: func(c *Config) {
17631763
c.PasswordConnector = "local"
17641764
c.SupportedResponseTypes = append(c.SupportedResponseTypes, responseTypeToken)
17651765
},
1766-
resGrants: []string{grantTypeAuthorizationCode, grantTypeImplicit, grantTypePassword, grantTypeRefreshToken, grantTypeDeviceCode},
1766+
resGrants: []string{grantTypeAuthorizationCode, grantTypeClientCredentials, grantTypeImplicit, grantTypePassword, grantTypeRefreshToken, grantTypeDeviceCode},
17671767
},
17681768
}
17691769

0 commit comments

Comments
 (0)