Skip to content

Releases: cloudfoundry/go-uaa

v0.2.2

16 Jul 14:42
0dc8535
Compare
Choose a tag to compare

Bugs

Detailed changes: v0.2.1...v0.2.2

v0.2.1

08 Jul 04:29
d58dea9
Compare
Choose a tag to compare

Bugs

Detailed changes: v0.2.0...v0.2.1

v0.2.0

13 Jun 23:18
513ae24
Compare
Choose a tag to compare

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

v0.1.1

03 Jan 16:17
b0e3187
Compare
Choose a tag to compare

🐛 Curl now respects the SkipSSLValidation field.

v0.1.0

25 Jul 07:49
06d965f
Compare
Choose a tag to compare

go-uaa is now a go module.

Features

  • Omit empty fields in the JSON representation of uaa.MFAProviderConfig and uaa. MFAProvider
  • Add support for go modules (introduced in go 1.11)

Breaking Changes

  • uaa. NewWithClientCredentials now takes a skipSSLValidation argument
  • uaa. NewWithPasswordCredentials now takes a skipSSLValidation argument
  • uaa. NewWithAuthorizationCode has had the skipSSLValidation argument moved to be consistent with other New functions
  • uaa. NewWithRefreshToken has had the skipSSLValidation argument moved to be consistent with other New functions

Detailed changes: v0.0.10...v0.1.0

v0.0.10

16 Jul 14:51
9d16857
Compare
Choose a tag to compare

This release is all about contributions from others. Thanks @jhamon, @drnic, @jmcarp, @DennisDenuto, @bruce-ricard, and William Jackson 🎉!

Features

  • Add uaa.NewWithRefreshToken to build a new API with a refresh token (via @DennisDenuto and William Jackson)
  • The PasswordCredentials OAuth2 client allows you to supply a custom http.Client in the context, and it will be used (#2, via @drnic)
  • Add support for MFAProvider (#6 via @jmcarp=)
    • Add uaa.MFAProvider
    • Add uaa.MFAProviderConfig
    • Add uaa.API.GetMFAProvider
    • Add uaa.API.ListMFAProvider
    • Add uaa.API.CreateMFAProvider
    • Add uaa.API.UpdateMFAProvider
    • Add uaa.API.DeleteMFAProvider
  • Add missing fields to Client (#7 via @drnic):
    • Client.AutoApprove
    • Client.CreatedWith
    • Client.ApprovalsDeleted
  • Add Identifier function to Client, Group, IdentityZone, MFAProvider, User (via @DennisDenuto and @bruce-ricard)
  • Set a timeout for UnauthenticatedClient if one is not set (via @jhamon and @DennisDenuto)
  • Add uaa.API.RemoveGroupMember (#7 via @drnic)

Bugs

  • Removed extraneous logging (#3, via @drnic)
  • Correctly set token_format in the query string when using the authorization code flow

Breaking Changes

  • None

Detailed changes: v0.0.9...v0.0.10

v0.0.9

28 Jun 23:36
377005a
Compare
Choose a tag to compare

This release adds a convenience function to build an API that uses an existing oauth2.Token, and introduces support for identity zones.

Features

  • Add uaa. NewWithToken to create an API with an existing oauth2.Token
  • Add uaa.GetIdentityZone
  • Add uaa.CreateIdentityZone
  • Add uaa.UpdateIdentityZone
  • Add uaa.DeleteIdentityZone
  • Add uaa.ListIdentityZones
  • Add uaa.IdentityZone and related types:
    • uaa.ClientSecretPolicy
    • uaa.TokenPolicy
    • uaa.SAMLKey
    • uaa.SAMLConfig
    • uaa.CORSPolicy
    • uaa.IdentityZoneLinks
    • uaa.Prompt
    • uaa.Branding
    • uaa.IdentityZoneUserConfig
    • uaa.IdentityZoneMFAConfig
    • uaa.IdentityZoneConfig

Breaking Changes

  • None

Detailed changes: v0.0.8...v0.0.9

v0.0.8

12 Jun 21:00
17ae85c
Compare
Choose a tag to compare

This release tackles boilerplate by introducing a generator that creates Get, Create, Update, Delete, ListAll and List functions and associated tests for User, Group, and Client.

Features

  • Add uaa.ClientsEndpoint
  • Add uaa.GroupsEndpoint
  • Add uaa.UsersEndpoint
  • Add uaa.API.ListClients
  • Add uaa.API.ListAllGroups
  • Add uaa.Page

Breaking Changes

  • Remove uaa.Context
  • Remove uaa.Config
  • Remove uaa.Target
  • Remove uaa.AuthContext
  • Remove uaa.NewConfigWithServerURL
  • Remove uaa.NewContextWithToken
  • Remove uaa.NewConfig
  • Remove uaa.NewTarget
  • Remove uaa.CurlManager
  • Remove uaa.ClientManager
  • Remove uaa.PaginatedClientList
  • Remove uaa.ClientCredentialsClient
  • Remove uaa.ResourceOwnerPasswordClient
  • Remove uaa.AuthorizationCodeClient
  • Remove uaa.RefreshTokenClient
  • Remove uaa.TokenResponse
  • Remove uaa.Requestor
  • Remove uaa.UnauthenticatedRequestor
  • Remove uaa.AuthenticatedRequestor
  • uaa.ClientManager.Get > uaa.API.GetClient
  • uaa.ClientManager.Delete > uaa.API.DeleteClient
  • uaa.ClientManager.Create > uaa.API.CreateClient
  • uaa.ClientManager.Update > uaa.API.UpdateClient
  • uaa.ClientManager.ChangeSecret > uaa.API.ChangeClientSecret
  • uaa.ClientManager.List > uaa.API.ListAllClients
  • uaa.CurlManager.Curl > uaa.API.Curl
  • uaa.GroupManager.Get > uaa.API.GetGroup
  • uaa.GroupManager.Delete > uaa.API.DeleteGroup
  • uaa.GroupManager.Create > uaa.API.CreateGroup
  • uaa.GroupManager.Update > uaa.API.UpdateGroup
  • uaa.GroupManager.List > uaa.API.ListGroups
  • uaa.GroupManager.AddMember > uaa.API.AddGroupMember
  • uaa.GroupManager.GetByName > uaa.API.GetGroupByName
  • uaa.Health > uaa.API.IsHealthy
  • uaa.TokenKey > uaa.API.TokenKey
  • uaa.TokenKeys > uaa.API.TokenKeys

Detailed changes: v0.0.7...v0.0.8

v0.0.7

11 Jun 20:19
852c0d0
Compare
Choose a tag to compare

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

v0.0.6

08 Jun 01:23
2327512
Compare
Choose a tag to compare

Changes

  • Eliminate the internal package which contained utilities and test fixture data

Detailed changes: v0.0.5...v0.0.6