Releases: manicminer/hamilton
Releases · manicminer/hamilton
v0.12.0
- Support for activating Directory Roles (#31)
- Support for App Role Assignments (#32)
- Restore the retry mechanism previously introduced in v0.8.0
- Use the
odata
package for parsing common error messages - Handle some additional errors, mainly for
ioutil.Read*()
- Add more
ValidStatusFunc
s for gracefully handling existing owner and member refs - Remove an unused struct field
auth.ClientCredentialsConfig{}.Expires
msgraph.Application{}.GroupMembershipClaims
is now a custom typemsgraph.Application{}.SignInAudience
is now a custom typemsgraph.AppRole{}.AllowedMemberTypes
is now a custom typemsgraph.KeyCredential{}.Usage
is now a custom typemsgraph.PermissionScope{}.Type
is now a custom typemsgraph.ResourceAccess{}.Type
is now a custom typemsgraph.ServicePrincipal{}.SignInAudience
is now a custom type
v0.11.0
- Support for Conditional Access Policies
- Support for Named Locations (IP-based and Country-based)
- Support for Directory Role Templates
- Set a default User Agent string if not provided by the caller
- Improved error handling
v0.10.0
- This release refactors various packages to make for a better import experience.
base
,clients
andmodels
packages have been combined into a singlemsgraph
package.base/aadgraph
package has been moved toaadgraph
.base/odata
package has been moved toodata
.
v0.9.0
v0.8.0
- Exponential backoff for handling rate limited and failed requests to MS Graph and AAD Graph
v0.7.0
- Check for supported
az
command version when using Azure CLI authentication - Remove dependency on deprecated package golang.org/x/oauth2/jws
- Merge the
auth/internal/microsoft
package intoauth
now that it's stable - Validate the MSI auth configuration before returning an MsiAuthorizer - ensure the metadata endpoint is reachable
v0.6.0
- Support authentication using VM managed identity.
- Add App ID for Teams Services API.
v0.5.0
- All responses from Microsoft Graph and Azure Active Directory Graph are now parsed for OData metadata. Calls to
base.Client.Delete()
,base.Client.Get()
,base.Client.Patch()
,base.Client.Post()
andbase.client.Put()
each now return OData metadata in addition to the complete response. - Support for v1 and v2 access tokens from Microsoft Identity Platform. Defaults to v2 tokens.
- Support for acquiring access tokens for Microsoft Graph or Azure Active Directory graph. Since the MSID platform only supports scopes from a single API per token, these must be requested separately if using both APIs.
- Token claims parsed now includes scopes (
scp
claim) - Export app IDs for several published APIs from Microsoft. These can be reliably consumed as
environments.PublishedApis
. - Support for querying Azure Active Directory Graph API
- This is intended as a stopgap solution for when it's not possible to perform an action using Microsoft Graph.
- A number of endpoints do not yet have equivalents in MS Graph, notably those used by the Azure Portal.
- There is only a base client at present.
- Method signature for
auth.Config.NewAuthorizer()
has changed to include the API to request tokens for. - Corresponding function signatures for
auth.NewAzureCliAuthorizer()
,auth.NewClientCertificateAuthorizer()
andauth.NewClientSecretAuthorizer()
also now include anapi
argument. - The
auth.NewAzureCliConfig()
function also now includes anapi
argument. - Functions implementing
base.ValidStatusFunc
must now accept a second argument as the pointer to abase.odata.OData
struct. - The
environments.MsGraphEndpoint
type has been removed in favor ofenvironments.ApiEndpoint
. - The
endpoint
argument formodels.Application.AppendOwner()
,models.Group.AppendMember()
andmodels.Group.AppendOwner()
methods should now be anenvironments.ApiEndpoint
. - The environments package now exports
Api
structs for each national cloud and API combination, e.g.environments.MsGraphGermany
. - The
Environment
structs exports in the environments package have been changed to referenceApi
s and no longer includeMsGraphEndpoint
.
v0.4.0
- Adds the
ServicePrincipalsClient.ListGroupMemberships()
method. - Adds the
UsersClient.ListGroupMemberships()
method. - Pagination handling: multiple pages of results with OData metadata are now automatically retrieved and merged together in the BaseClient for GET requests.
v0.3.0
- Methods on
models.ApplcationApi
to manageOauth2PermissionScopes
. - Tests for
auth
andclients
packages.