Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Added logging output for SSL status.
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Elazhary committed Jul 4, 2016
1 parent bae3235 commit 296087d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions oauthproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {

log.Printf("OAuthProxy configured for %s Client ID: %s", opts.provider.Data().ProviderName, opts.ClientID)
opts.provider.Data().EnableInsecure = opts.EnableInsecure
log.Printf("OAuthProxy Insecure SSL: %t", opts.provider.Data().EnableInsecure)
domain := opts.CookieDomain
if domain == "" {
domain = "<default>"
Expand Down
1 change: 0 additions & 1 deletion providers/provider_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (p *ProviderData) Redeem(redirectURL, code string) (s *SessionState, err er

fmt.Printf("Before Request -> SSL: %t", p.EnableInsecure)


cfg := &tls.Config{ InsecureSkipVerify: p.EnableInsecure, }

http.DefaultClient.Transport = &http.Transport{ TLSClientConfig: cfg, }
Expand Down

0 comments on commit 296087d

Please sign in to comment.