Skip to content

Commit

Permalink
Remove InsecureSkipVerify
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Apr 2, 2024
1 parent 9b4eb7a commit fca0873
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,7 @@ func tlsSecretName(cr *miqv1alpha1.ManageIQ) string {
}

func fetchIntrospectionUrl(providerUrl string) (string, error) {
customTransport := http.DefaultTransport.(*http.Transport).Clone()
customTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
client := &http.Client{Transport: customTransport}
client := &http.Client
errMsg := fmt.Sprintf("failed to get the OIDCOAuthIntrospectionURL from %s", providerUrl)

resp, err := client.Get(providerUrl)
Expand Down

0 comments on commit fca0873

Please sign in to comment.