IdentityCommand
[0.7.159]
Added
Find-SharedServicesURLrecognises the platform discovery keys for further shared services:aigw,alerong,ars,cds,compass,dms,uapanduserportal.ConvertTo-FilterClause: formats a singlefield operator valuefilter clause, quoting and escaping the value as the ISPSS filter dialects require. Services differ in operator vocabulary, clause joining and parenthesisation, so companion modules assemble their own expressions from these clauses. The clause is not url encoded -Add-QueryStringencodes the query string as a whole.
Changed
Resolve-ServiceUrlnow throws when the requested service is absent from the platform discovery response, instead of returning a nullServiceUrl. A service which is not enabled on the tenant, or a mistyped service key, previously left the callingConnect-command holding a session bound to no URL at all.Resolve-ServiceUrlalso strips a trailing slash from the resolvedServiceUrl. Services vary in whether they publish a/apisuffix, a trailing slash, both or neither, so callers can now append their own/<path>unconditionally.Resolve-ServiceUrlaccepts-BaseUrlOnly, returning only the scheme and host of the service URL and reporting any path separately asServicePath. Needed by services which publish a path along with the host, such asalerong(Remote Access). Includes a recovery for discovery responses which omit the slash between host and path.Resolve-ServiceUrloutput carries aServicePathproperty, empty unless-BaseUrlOnlywas used.Get-PagedResultOffset style recognises two further ways an endpoint reports the end of a set:-LastPageKeyfor a boolean last page flag such asisLastPage, and-OffsetResponseKeyfor a next offset echoed back on the response and omitted on the final page.-OffsetResponseKeyaccepts a dotted path for a nested value, for examplepaging.offset.Get-PagedResultOffset style can page aPOSTendpoint, for those which take their paging values in the request body:-Method POSTwith-BodyTemplate, and-BodyPagingPropertywhen the paging values sit in a nested object. The body is cloned per page with only the offset replaced, so filters and search terms carry across pages.
Fixed
Get-PagedResultCursor style stops when the server returns the same continuation token it was sent, instead of requesting that page indefinitely. Reachable against an endpoint which reports a token unconditionally, or one which ignores the token parameter altogether.Select-ChallengeMechanismuses the fullSystem.Management.Automation.Host.ChoiceDescriptiontype name instead of ausing namespacestatement, so it works when the module is combined into a single file and when companion modules copy the private helpers.