@@ -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