Skip to content

Releases: manicminer/hamilton

v0.12.0

23 Apr 12:31
5007d17
Compare
Choose a tag to compare
  • 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 ValidStatusFuncs for gracefully handling existing owner and member refs
  • Remove an unused struct field auth.ClientCredentialsConfig{}.Expires

⚠️ BREAKING CHANGES:

  • msgraph.Application{}.GroupMembershipClaims is now a custom type
  • msgraph.Application{}.SignInAudience is now a custom type
  • msgraph.AppRole{}.AllowedMemberTypes is now a custom type
  • msgraph.KeyCredential{}.Usage is now a custom type
  • msgraph.PermissionScope{}.Type is now a custom type
  • msgraph.ResourceAccess{}.Type is now a custom type
  • msgraph.ServicePrincipal{}.SignInAudience is now a custom type

v0.11.0

13 Apr 11:46
d855ec2
Compare
Choose a tag to compare
  • 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

10 Apr 18:46
8af10f6
Compare
Choose a tag to compare

⚠️ BREAKING CHANGES:

  • This release refactors various packages to make for a better import experience.
  • base, clients and models packages have been combined into a single msgraph package.
  • base/aadgraph package has been moved to aadgraph.
  • base/odata package has been moved to odata.

v0.9.0

01 Mar 11:43
edffcff
Compare
Choose a tag to compare
  • Add support for guest user invitations (#21)

v0.8.0

02 Feb 16:11
aa2110f
Compare
Choose a tag to compare
  • Exponential backoff for handling rate limited and failed requests to MS Graph and AAD Graph

v0.7.0

27 Jan 23:48
0007d46
Compare
Choose a tag to compare
  • 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 into auth now that it's stable
  • Validate the MSI auth configuration before returning an MsiAuthorizer - ensure the metadata endpoint is reachable

v0.6.0

26 Jan 10:40
e323936
Compare
Choose a tag to compare
  • Support authentication using VM managed identity.
  • Add App ID for Teams Services API.

v0.5.0

24 Jan 20:18
7e21bda
Compare
Choose a tag to compare
  • 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() and base.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.

⚠️ BREAKING CHANGES:

  • Method signature for auth.Config.NewAuthorizer() has changed to include the API to request tokens for.
  • Corresponding function signatures for auth.NewAzureCliAuthorizer(), auth.NewClientCertificateAuthorizer() and auth.NewClientSecretAuthorizer() also now include an api argument.
  • The auth.NewAzureCliConfig() function also now includes an api argument.
  • Functions implementing base.ValidStatusFunc must now accept a second argument as the pointer to a base.odata.OData struct.
  • The environments.MsGraphEndpoint type has been removed in favor of environments.ApiEndpoint.
  • The endpoint argument for models.Application.AppendOwner(), models.Group.AppendMember() and models.Group.AppendOwner() methods should now be an environments.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 reference Apis and no longer include MsGraphEndpoint.

v0.4.0

19 Jan 11:03
4311ae0
Compare
Choose a tag to compare
  • 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

18 Jan 08:10
43b5e9d
Compare
Choose a tag to compare
  • Methods on models.ApplcationApi to manage Oauth2PermissionScopes.
  • Tests for auth and clients packages.