microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Adding the ability to surface the access token used by the connection

Open
#2,023 23 comments 8 reactions 1 assignee View on GitHub

@petrhollayms is already working on this.

Since May 28, 2024.

Needs: Attention :wave: Request: Feature
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

Discussed in https://github.com/microsoftgraph/msgraph-sdk-powershell/discussions/2010

Originally posted by glennvanrymenant May 15, 2023
Would it be possible to add the ability to surface the access token used by the connection (Connect-MgGraph).

I prefer to call the Graph API directly (using Invoke-MgGraphRequest rather than the specific cmdlets) but ideally I would like call the Graph API directly with Invoke-WebRequest using the access token of the Graph SDK connection.

Read: I want to piggy-back on the auth part of the module (mainly when leveraging delegated permissions as using the auth of the module is easier than writing and maintaining your own authorization code flow functions).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.