Skip to content

Releases: cloudfoundry/go-uaa

v0.3.3

24 Jul 17:14
be66c6b
Compare
Choose a tag to compare

What's Changed

  • github pull request checks by @strehle in #73
  • Add error response while printing by @Dray56 in #90
  • Various dependency bumps

New Contributors

Full Changelog: v0.3.2...v0.3.3

v0.3.2

28 Aug 19:20
fabcc6f
Compare
Choose a tag to compare

v0.3.1

18 Oct 22:12
Compare
Choose a tag to compare

Breaking Changes

  • uaa.API.Curl() now returns a status code

Features

  • Improve verbose logging (uaa.WithVerbosity()) so that requests and responses are logged more consistently
  • 🆕 Add uaa.WithTransport to permit specification of your own transport for the baseClient used for all http requests

Bugs

  • Use uaa.API.baseClient more consistently, to ensure that any client specified by uaa.WithClient is used

Detailed changes: v0.3.0...v0.3.1

v0.3.0

14 Sep 22:39
cf865ad
Compare
Choose a tag to compare

This release changes the way you construct a uaa.API using uaa.New, and implements the functional options pattern (#25).

Breaking Changes:

  • uaa.New(target string, authOpt AuthenticationOption, opts ...Option) removed zoneID, and added a new required argument (a uaa.AuthenticationOption) (and also additional optional uaa.Option arguments)
  • Remove constructors:
    • Remove uaa.NewWithClientCredentials
    • Remove uaa.NewWithPasswordCredentials
    • Remove uaa.NewWithAuthorizationCode
    • Remove uaa.NewWithRefreshToken
    • Remove uaa.NewWithToken
  • Remove uaa.API builders:
    • Remove uaa.API.WithClient
    • Remove uaa.API.WithSkipSSLValidation
    • Remove uaa.API.WithClientCredentials
    • Remove uaa.API.WithPasswordCredentials
    • Remove uaa.API.WithAuthorizationCode
    • Remove uaa.API.WithRefreshToken
    • Remove uaa.API.WithToken
  • Rename uaa.API.AuthenticatedClient > uaa.API.Client
  • Unexport uaa.API fields:
    • Remove uaa.API.UnauthenticatedClient (use the uaa.WithClient option instead)
    • Remove uaa.API.ZoneID (use the uaa.WithZoneID option instead)
    • Remove uaa.API.Verbose (use the uaa.WithVerbosity option instead)
    • Remove uaa.API.UserAgent (use the uaa.WithUserAgent option instead)

Features:

  • Clarify usage of uaa.New in the README
  • Add uaa.Option, with implementations:
    • Add uaa.WithClient
    • Add uaa.WithSkipSSLValidation
    • Add uaa.WithZoneID(zoneID string)
    • Add uaa.WithVerbosity(verbose bool)
    • Add uaa.WithUserAgent(userAgent string)
  • Add uaa.AuthenticationOption, with implementations:
    • Add uaa.WithClientCredentials
    • Add uaa.WithPasswordCredentials
    • Add uaa.WithAuthorizationCode
    • Add uaa.WithRefreshToken
    • Add uaa.WithToken
    • Add uaa.WithNoAuthentication() for scenarios where you just want to make unauthenticated calls

Detailed changes: v0.2.7...v0.3.0

v0.2.8

05 Sep 19:23
Compare
Choose a tag to compare
  • Return RequestError for password/refresh grants

Detailed changes: v0.2.7...v0.2.8

v0.2.7

04 Sep 18:33
9028364
Compare
Choose a tag to compare
  • Use built in context and format code

Detailed changes: v0.2.6...v0.2.7

v0.2.6

27 Aug 17:16
Compare
Choose a tag to compare
  • Authorization code grant uses redirectURL

Detailed changes: v0.2.5...v0.2.6

v0.2.5

23 Aug 21:05
Compare
Choose a tag to compare
  • Improve API error response: changes the request error response to provide the error body. Removes the unknown error nomenclature from errors which will provide error details.

Detailed changes: v0.2.4...v0.2.5

v0.2.4

30 Jul 23:17
Compare
Choose a tag to compare

Bugs

  • 167502528 grant_type password doesn't require client_secret

Detailed changes: v0.2.3...v0.2.4

v0.2.3

26 Jul 01:20
da1d1fc
Compare
Choose a tag to compare

Bugs

  • Improve client deserialization (#21, via @shamus)

Breaking Changes

  • uaa.Client.AutoApprove is no longer directly accessible as a field of type []string. The field is now named uaa.Client.AutoApproveRaw and is stored as an interface{}. It can be accessed via the uaa.Client.AutoApprove function.

Detailed changes: v0.2.2...v0.2.3