Skip to content

v0.0.7

Compare
Choose a tag to compare
@joefitzgerald joefitzgerald released this 11 Jun 20:19
· 138 commits to master since this release
852c0d0

Features

  • Add uaa.API
  • Add uaa.NewWithClientCredentials to create an API that authenticates with the UAA API via the client credentials grant
  • Add uaa.NewWithPasswordCredentials to create an API that authenticates with the UAA API via the password grant
  • Add uaa.NewWithAuthorizationCode to create an API that authenticates with the UAA API via the authorization code grant
  • Add uaa.BuildURL to add the scheme to a URL if it is missing
  • Add uaa.BuildSubdomainURL to assist in adding the zone to the target URL
  • If the API clients do not have a timeout set the timeout is set to 120 seconds

Breaking Changes

  • Rename package from github.com/cloudfoundry-community/uaa to github.com/cloudfoundry-community/go-uaa; this will break import paths, but your code will still import things via the uaa package name
  • Move uaa.Info to uaa.API.GetInfo
  • Move uaa.Me to uaa.API.GetMe
  • Remove uaa.UserManager
  • uaa.UserManager.Get > uaa.API.GetUser
  • uaa.UserManager.GetByUsername > uaa.API.GetUserByUsername
  • uaa.UserManager.List > uaa.API.ListAllUsers
  • uaa.UserManager.getUserPage > uaa.API.ListUsers
  • uaa.UserManager.Create > uaa.API.CreateUser
  • uaa.UserManager.Update > uaa.API.UpdateUser
  • uaa.UserManager.Delete > uaa.API.DeleteUser
  • uaa.UserManager.Activate > uaa.API.ActivateUser
  • uaa.UserManager.Deactivate > uaa.API.DeactivateUser
  • Stop exporting uaa.PaginatedUserList (it becomes uaa.paginatedUserList)

Detailed changes: v0.0.6...v0.0.7