Releases: cloudfoundry/go-uaa
Releases · cloudfoundry/go-uaa
v0.2.2
v0.2.1
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
v0.1.1
v0.1.0
go-uaa
is now a go module.
Features
- Omit empty fields in the JSON representation of
uaa.MFAProviderConfig
anduaa. MFAProvider
- Add support for go modules (introduced in go 1.11)
Breaking Changes
uaa. NewWithClientCredentials
now takes askipSSLValidation
argumentuaa. NewWithPasswordCredentials
now takes askipSSLValidation
argumentuaa. NewWithAuthorizationCode
has had theskipSSLValidation
argument moved to be consistent with otherNew
functionsuaa. NewWithRefreshToken
has had theskipSSLValidation
argument moved to be consistent with otherNew
functions
Detailed changes: v0.0.10...v0.1.0
v0.0.10
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
- 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
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 anAPI
with an existingoauth2.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
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
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
togithub.com/cloudfoundry-community/go-uaa
; this will break import paths, but your code will still import things via theuaa
package name - Move
uaa.Info
touaa.API.GetInfo
- Move
uaa.Me
touaa.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 becomesuaa.paginatedUserList
)
Detailed changes: v0.0.6...v0.0.7
v0.0.6
Changes
- Eliminate the
internal
package which contained utilities and test fixture data
Detailed changes: v0.0.5...v0.0.6