diff --git a/clients.go b/clients.go index b47b75b..42b310c 100644 --- a/clients.go +++ b/clients.go @@ -123,10 +123,6 @@ func (c *Client) Validate() error { return err } - if err := requireClientSecretForGrantType(c, PASSWORD); err != nil { - return err - } - if err := requireClientSecretForGrantType(c, CLIENTCREDENTIALS); err != nil { return err } diff --git a/clients_test.go b/clients_test.go index 24948c2..11a9e0b 100644 --- a/clients_test.go +++ b/clients_test.go @@ -244,15 +244,6 @@ func testClientExtra(t *testing.T, when spec.G, it spec.S) { Expect(err).NotTo(BeNil()) Expect(err.Error()).To(Equal("client_id must be specified in the client definition")) }) - - it("requires client_secret", func() { - client := uaa.Client{ - ClientID: "myclient", - AuthorizedGrantTypes: []string{"password"}, - } - err := client.Validate() - Expect(err.Error()).To(Equal("client_secret must be specified for password grant type")) - }) }) })