Skip to content

Commit

Permalink
Merge pull request #42 from wolkenco/fix_renegotiation
Browse files Browse the repository at this point in the history
fix TLS renegotiation for ADFS
  • Loading branch information
wolfeidau authored Jul 24, 2017
2 parents 9e75922 + cdfdd81 commit fdb8337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type ADFSClient struct {
func NewADFSClient(skipVerify bool) (*ADFSClient, error) {

tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: skipVerify},
TLSClientConfig: &tls.Config{InsecureSkipVerify: skipVerify, Renegotiation: tls.RenegotiateFreelyAsClient},
}

options := &cookiejar.Options{
Expand Down
2 changes: 1 addition & 1 deletion adfs2.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type ADFS2Client struct {
func NewADFS2Client(skipVerify bool) (*ADFS2Client, error) {
transport := &ntlmssp.Negotiator{
RoundTripper: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: skipVerify},
TLSClientConfig: &tls.Config{InsecureSkipVerify: skipVerify, Renegotiation: tls.RenegotiateFreelyAsClient},
},
}

Expand Down

0 comments on commit fdb8337

Please sign in to comment.