Releases: manicminer/hamilton
Releases · manicminer/hamilton
v0.28.2
v0.28.1
- 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)
- Bug fix:
User.PasswordPolicies
has changed from a*string
to a*StringNullWhenEmpty
(#96)
v0.28.0
- Support for application templates (#95)
v0.27.0
v0.26.0
auth.CachedAuthorizer
- export this type and itsSource
field so that consumers can inspect it (#90)- Bugfix: set the struct tag for
ServicePrincipal.Owners
field so it is marshaled correctly (#91)
- The
auth.CachedAuthorizer()
function has been renamed toauth.NewCachedAuthorizer()
(#90)
v0.25.0
- Support for authentication methods (#89)
v0.24.0
- When authenticating using Azure CLI, access tokens are now cached to avoid repeatedly invoking
az
to get the latest token (#88) - Support for authentication methods usage reports (#85)
- Support for generic directory objects (#86)
- Add the
MemberOf
field to theUser
struct (#84)
- The
ID
field of theApplication
,DirectoryRole
,Group
,ServicePrincipal
andUser
models has been removed and is now a field of the embeddedDirectoryObject
struct (#86) - The
Members
and/orOwners
fields of theApplication
,DirectoryRole
,Group
andServicePrincipal
models have changed from a*[]string
to a*Members
and*Owners
respectively (#86)- The
Members
andOwners
types are based on[]DirectoryObject
and have methods to marshal/unmarshal theODataId
fields of the containedDirectoryObject
s
- The
- The
AppendMember()
and/orAppendOwner()
methods of theApplication
,Group
andServicePrincipal
models are no longer required and have been removed (#86)
v0.23.1
v0.23.0
- 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 explicitUnmarshalJSON()
method to satisfy theSchemaExtensionProperties
interface. Both approaches have examples in theTestSchemaExtensionsClient()
test.
- Marshaling of schema extension data is handled automatically by the Group and User structs, enabling use of the existing
- 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 ownhttp.Client
(#78)
- 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()