Signed-off-by: Mathias Gebbe <mathias.gebbe@gmail.com>
@ -1481,7 +1481,7 @@ func (s *Server) handleClientCredentialsGrant(w http.ResponseWriter, r *http.Req
// Validate scopes.
var (
unrecognized []string
invalidScopes []string
)
hasOpenIDScope := false
@ -649,14 +649,14 @@ func TestHandlePasswordLoginWithSkipApproval(t *testing.T) {
func TestHandleClientCredentials(t *testing.T) {
tests := []struct {
name string
clientID string
clientSecret string
scopes string
wantCode int
wantAccessTok bool
wantIDToken bool
wantUsername string
}{
{
name: "Basic grant, no scopes",