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 c151cbd
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package miqtools

import (
"context"
"crypto/tls"
"encoding/json"
"fmt"

Expand Down Expand Up @@ -660,9 +659,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 c151cbd

Please sign in to comment.