@@ -101,6 +101,7 @@ func newTestServer(ctx context.Context, t *testing.T, updateConfig func(c *Confi
101
101
grantTypeTokenExchange ,
102
102
grantTypeImplicit ,
103
103
grantTypePassword ,
104
+ grantTypeClientCredentials ,
104
105
},
105
106
}
106
107
if updateConfig != nil {
@@ -1760,7 +1761,7 @@ func TestServerSupportedGrants(t *testing.T) {
1760
1761
{
1761
1762
name : "Simple" ,
1762
1763
config : func (c * Config ) {},
1763
- resGrants : []string {grantTypeAuthorizationCode , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1764
+ resGrants : []string {grantTypeAuthorizationCode , grantTypeClientCredentials , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1764
1765
},
1765
1766
{
1766
1767
name : "Minimal" ,
@@ -1770,20 +1771,20 @@ func TestServerSupportedGrants(t *testing.T) {
1770
1771
{
1771
1772
name : "With password connector" ,
1772
1773
config : func (c * Config ) { c .PasswordConnector = "local" },
1773
- resGrants : []string {grantTypeAuthorizationCode , grantTypePassword , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1774
+ resGrants : []string {grantTypeAuthorizationCode , grantTypeClientCredentials , grantTypePassword , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1774
1775
},
1775
1776
{
1776
1777
name : "With token response" ,
1777
1778
config : func (c * Config ) { c .SupportedResponseTypes = append (c .SupportedResponseTypes , responseTypeToken ) },
1778
- resGrants : []string {grantTypeAuthorizationCode , grantTypeImplicit , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1779
+ resGrants : []string {grantTypeAuthorizationCode , grantTypeClientCredentials , grantTypeImplicit , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1779
1780
},
1780
1781
{
1781
1782
name : "All" ,
1782
1783
config : func (c * Config ) {
1783
1784
c .PasswordConnector = "local"
1784
1785
c .SupportedResponseTypes = append (c .SupportedResponseTypes , responseTypeToken )
1785
1786
},
1786
- resGrants : []string {grantTypeAuthorizationCode , grantTypeImplicit , grantTypePassword , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1787
+ resGrants : []string {grantTypeAuthorizationCode , grantTypeClientCredentials , grantTypeImplicit , grantTypePassword , grantTypeRefreshToken , grantTypeDeviceCode , grantTypeTokenExchange },
1787
1788
},
1788
1789
}
1789
1790
0 commit comments