Releases: cloudfoundry/go-uaa
Releases · cloudfoundry/go-uaa
v0.3.3
v0.3.2
Features
Detailed changes: v0.3.1...v0.3.2
v0.3.1
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 byuaa.WithClient
is used
Detailed changes: v0.3.0...v0.3.1
v0.3.0
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)
removedzoneID
, and added a new required argument (auaa.AuthenticationOption
) (and also additional optionaluaa.Option
arguments)- Remove constructors:
- Remove
uaa.NewWithClientCredentials
- Remove
uaa.NewWithPasswordCredentials
- Remove
uaa.NewWithAuthorizationCode
- Remove
uaa.NewWithRefreshToken
- Remove
uaa.NewWithToken
- Remove
- 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
- Remove
- Rename
uaa.API.AuthenticatedClient
>uaa.API.Client
- Unexport
uaa.API
fields:- Remove
uaa.API.UnauthenticatedClient
(use theuaa.WithClient
option instead) - Remove
uaa.API.ZoneID
(use theuaa.WithZoneID
option instead) - Remove
uaa.API.Verbose
(use theuaa.WithVerbosity
option instead) - Remove
uaa.API.UserAgent
(use theuaa.WithUserAgent
option instead)
- Remove
Features:
- Clarify usage of
uaa.New
in theREADME
- 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
- 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
- Add
Detailed changes: v0.2.7...v0.3.0
v0.2.8
- Return RequestError for password/refresh grants
Detailed changes: v0.2.7...v0.2.8
v0.2.7
- Use built in context and format code
Detailed changes: v0.2.6...v0.2.7
v0.2.6
- Authorization code grant uses redirectURL
Detailed changes: v0.2.5...v0.2.6
v0.2.5
- 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
v0.2.3
Bugs
Breaking Changes
uaa.Client.AutoApprove
is no longer directly accessible as a field of type[]string
. The field is now nameduaa.Client.AutoApproveRaw
and is stored as aninterface{}
. It can be accessed via theuaa.Client.AutoApprove
function.
Detailed changes: v0.2.2...v0.2.3