v0.2.0
Features
- Add
uaa.New
to build aaaa.API
with&http.Client{Transport: http.DefaultTransport}
as the client - Add
uaa.API
functions to build up the configuration of your API:- Add
uaa.API.WithClient
, which allows you to supply your own http.Client - Add
uaa.API.WithAuthorizationCode
, which allows you to use the supplied authorization code - Add
uaa.API.WithClientCredentials
, which allow you to use the supplied credentials - Add
uaa.API.WithPasswordCredentials
, which allows you to use the supplied password credentials - Add
uaa.API.WithRefreshToken
, which allows you to use the supplied refresh token - Add
uaa.API.WithToken
, which allows you to use the supplied token - Add
uaa.API.WithSkipSSLValidation
, which allows you to skip SSL validation (which is not advised) - Add
uaa.API.Validate
, which returns an error if you have an invalid API configuration - Add
uaa.API.Token
, which will return a token if your authentication method supports it, or an error if it does not
- Add
Breaking Changes
- Unexported
uaa.API.SkipSSLValidation
(you must now use theuaa.API.WithSkipSSLValidation
function to skip SSL validation)
Detailed changes: v0.1.0...v0.2.0