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

Commit

Permalink
Remove workaround for bug cloudfoundry/uaa#308
Browse files Browse the repository at this point in the history
* UAA 3.0.0 and later (contained in Cloudfoundry 229 and later)
  implements the fix (cloudfoundry/uaa@8cb166e)
  that solves this problem, making our workaround obsolete.
  • Loading branch information
Omar Elazhary committed Feb 29, 2016
1 parent ca3a92b commit 825f9bc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions providers/provider_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ func (p *ProviderData) Redeem(redirectURL, code string) (s *SessionState, err er
return
}
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
// workaround for Cloudfoundry UAA bug https://github.com/cloudfoundry/uaa/issues/308
if (p.ProviderName == "CloudFoundry") {
req.SetBasicAuth(p.ClientID, p.ClientSecret)
}

var resp *http.Response
resp, err = http.DefaultClient.Do(req)
if err != nil {
Expand Down

0 comments on commit 825f9bc

Please sign in to comment.