Skip to content

Releases: manicminer/hamilton

v0.28.2

10 Sep 12:41
864248c
Compare
Choose a tag to compare
  • Bug fix: Correctly handle HTTP responses after retries have been exhausted for a request, so that the correct status and error can be returned (#100)

v0.28.1

09 Sep 11:19
98c1182
Compare
Choose a tag to compare
  • Bug fix: Try to detect when running in Azure Cloud Shell and avoid specifying the tenant ID for Azure CLI authentication (#98)
  • Bug fix: Use the correct base64 decoder when parsing token claims (#97)

⚠️ BREAKING CHANGES:

  • Bug fix: User.PasswordPolicies has changed from a *string to a *StringNullWhenEmpty (#96)

v0.28.0

07 Sep 11:35
6597951
Compare
Choose a tag to compare

v0.27.0

02 Sep 17:24
55fc87e
Compare
Choose a tag to compare
  • Add some value types for ConditionalAccessPolicyState and InvitedUserType (#94)

v0.26.0

01 Sep 14:57
77aa9c7
Compare
Choose a tag to compare
  • auth.CachedAuthorizer - export this type and its Source field so that consumers can inspect it (#90)
  • Bugfix: set the struct tag for ServicePrincipal.Owners field so it is marshaled correctly (#91)

⚠️ BREAKING CHANGES:

  • The auth.CachedAuthorizer() function has been renamed to auth.NewCachedAuthorizer() (#90)

v0.25.0

24 Aug 13:02
7a3d250
Compare
Choose a tag to compare

v0.24.0

17 Aug 13:24
7dea2ed
Compare
Choose a tag to compare

⚠️ BREAKING CHANGES:

  • The ID field of the Application, DirectoryRole, Group, ServicePrincipal and User models has been removed and is now a field of the embedded DirectoryObject struct (#86)
  • The Members and/or Owners fields of the Application, DirectoryRole, Group and ServicePrincipal models have changed from a *[]string to a *Members and *Owners respectively (#86)
    • The Members and Owners types are based on []DirectoryObject and have methods to marshal/unmarshal the ODataId fields of the contained DirectoryObjects
  • The AppendMember() and/or AppendOwner() methods of the Application, Group and ServicePrincipal models are no longer required and have been removed (#86)

v0.23.1

21 Jul 20:11
cb52b72
Compare
Choose a tag to compare
  • Disable the default logger for retryablehttp.Client{} (#83)

v0.23.0

21 Jul 18:34
9ce212f
Compare
Choose a tag to compare
  • Support for schema extension data for Groups and Users (#81)
    • Marshaling of schema extension data is handled automatically by the Group and User structs, enabling use of the existing Update() methods on the respective clients.
    • Unmarshaling is handled by either the provided msgraph.SchemaExtensionMap type, or a custom type supplied by the caller. Such a custom type must have an explicit UnmarshalJSON() method to satisfy the SchemaExtensionProperties interface. Both approaches have examples in the TestSchemaExtensionsClient() test.
  • Support for injecting and sequencing middleware functions for manipulating and/or copying requests and responses (#78)
    • See example.go for an example that logs requests and responses
  • Request retry handling for rate limiting, server errors and replication delays is now handled by go-retryablehttp (#78)
  • msgraph.Client{}.HttpClient is now exported so callers can supply their own http.Client (#78)

⚠️ BREAKING CHANGES:

  • Support odata.Query{} in more client methods (#80)
    • ApplicationsClient{}.Get()
    • ApplicationsClient{}.GetDeleted()
    • ApplicationsClient{}.ListExtensions()
    • ConditionalAccessPolicyClient{}.Get()
    • DirectoryAuditReportsClient{}.Get()
    • DomainsClient{}.List()
    • DomainsClient{}.Get()
    • GroupsClient{}.Get()
    • GroupsClient{}.GetDeleted()
    • MeClient{}.Get()
    • MeClient{}.GetProfile()
    • NamedLocationsClient{}.Get()
    • NamedLocationsClient{}.GetCountry()
    • NamedLocationsClient{}.GetIP()
    • SchemaExtensionsClient{}.Get()
    • ServicePrincipalsClient{}.Get()
    • ServicePrincipalsClient{}.ListAppRoleAssignments()
    • SignInReportsClient{}.Get()
    • UsersClient{}.Get()
    • UsersClient{}.GetDeleted()

v0.22.0

13 Jul 10:51
72a6e56
Compare
Choose a tag to compare
  • msgraph.ServicePrincipal{} now supports the Description field (#77)
  • msgraph.ServicePrincipal{} now supports the Notes field (#77)
  • msgraph.ServicePrincipal{} now supports the SamlMetadataUrl field (#77)

⚠️ BREAKING CHANGES:

  • environments.ApiAppId is now a type alias
  • msgraph.ServicePrincipal{}.LoginUrl is now a StringNullWhenEmpty type (#77)
  • msgraph.ServicePrincipal{}.PreferredSingleSignOnMode is now a type alias pointer (formerly a string pointer) (#77)