@@ -101,6 +101,7 @@ func newTestServer(t *testing.T, updateConfig func(c *Config)) (*httptest.Server
101101 grantTypeTokenExchange ,
102102 grantTypeImplicit ,
103103 grantTypePassword ,
104+ grantTypeClientCredentials ,
104105 },
105106 }
106107 if updateConfig != nil {
@@ -1757,7 +1758,7 @@ func TestServerSupportedGrants(t *testing.T) {
17571758 {
17581759 name : "Simple" ,
17591760 config : func (c * Config ) {},
1760- resGrants : []string {grantTypeAuthorizationCode , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1761+ resGrants : []string {grantTypeAuthorizationCode , grantTypeClientCredentials , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
17611762 },
17621763 {
17631764 name : "Minimal" ,
@@ -1767,20 +1768,20 @@ func TestServerSupportedGrants(t *testing.T) {
17671768 {
17681769 name : "With password connector" ,
17691770 config : func (c * Config ) { c .PasswordConnector = "local" },
1770- resGrants : []string {grantTypeAuthorizationCode , grantTypePassword , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1771+ resGrants : []string {grantTypeAuthorizationCode , grantTypeClientCredentials , grantTypePassword , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
17711772 },
17721773 {
17731774 name : "With token response" ,
17741775 config : func (c * Config ) { c .SupportedResponseTypes = append (c .SupportedResponseTypes , responseTypeToken ) },
1775- resGrants : []string {grantTypeAuthorizationCode , grantTypeImplicit , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1776+ resGrants : []string {grantTypeAuthorizationCode , grantTypeClientCredentials , grantTypeImplicit , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
17761777 },
17771778 {
17781779 name : "All" ,
17791780 config : func (c * Config ) {
17801781 c .PasswordConnector = "local"
17811782 c .SupportedResponseTypes = append (c .SupportedResponseTypes , responseTypeToken )
17821783 },
1783- resGrants : []string {grantTypeAuthorizationCode , grantTypeImplicit , grantTypePassword , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1784+ resGrants : []string {grantTypeAuthorizationCode , grantTypeClientCredentials , grantTypeImplicit , grantTypePassword , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
17841785 },
17851786 }
17861787
0 commit comments