Skip to content

v0.2.0

Compare
Choose a tag to compare
@joefitzgerald joefitzgerald released this 13 Jun 23:18
· 89 commits to master since this release
513ae24

Features

  • Add uaa.New to build a aaa.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

Breaking Changes

  • Unexported uaa.API.SkipSSLValidation (you must now use the uaa.API.WithSkipSSLValidation function to skip SSL validation)

Detailed changes: v0.1.0...v0.2.0