Skip to content

[FeatureRequest] New Command Get-GraphClient that returns the httpclient used by the module. #127

Closed
@JustinGrote

Description

@JustinGrote

The current Autorest-based module has several limitations. Please make it easy to work around those limitations by exposing the httpclient used by the module so that we can invoke additional custom queries.

Alternatively, Add a Invoke-Graph -URI that runs a request using the existing Httpclient and returns the raw output.

This way the graph API token doesn't have to be directly exposed (sure you can still fetch it from the cookies property of the httpclient, but it's not stored securely in memory cross-platform anyways)

Use case: I want to download files with /content, there's no option to do that, and if I try to modify an existing client with an HTTPRequesthandler, the downloaded file is not in json format so the command still fails.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions