Supported way to get the token
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- csharp, powershell
- Bereich
- api, authentication
Rechercherichtung
Start by reviewing the authentication changes in #3789 and the former GraphSession access mentioned in the issue. Clarify how a Get-MgAccessToken command should return cached or fresh tokens, handle scopes, and document the supported usage; completion should include the command and its documentation.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Is your feature request related to a problem? Please describe the problem.
For a long time there was an undocumented way to get an access token from the current session using code like [Microsoft.Graph.PowerShell.Authentication.GraphSession]::Instance...
This is option now removed by #3789 because of assembly isolation
Describe the solution you'd like.
I would like a command that returns a cached or fresh (with -Fresh flag) access token as a secure string, so we can tell people to use that. And have that documented.
Maybe even with a way to specify the scopes, so it can also be used the get tokens for other applications.
$token = Get-MgAccessToken [[-Scope] ......] [-Fresh]
Additional context?
You're able to do:
- Fake request
- Return http response
- Read http request headers
- Extract token
Why not provide a way that just returns set token as a secure string?
Authentication is one of the most difficult things to grasp, being able to provide a way for users to just get an access token without tricks seems like a nice addition.
- Vorherrschende Sprache
- C#
- Sterne
- 901
- Forks
- 232
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 22
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoftgraph/msgraph-sdk-powershell
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
Maintainer antworten meist innerhalb von 1 Tag
-
status:waiting-for-triage type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
microsoftgraph/msgraph-sdk-powershell#3751 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Microsoft.Graph.Authentication fails after removal and re-import in the same PowerShell sessionOffenstatus:waiting-for-triage type:bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
microsoftgraph/msgraph-sdk-powershell#3805 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
status:waiting-for-triage type:bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
microsoftgraph/msgraph-sdk-powershell#3772 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
microsoftgraph/msgraph-sdk-powershell#3749 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in microsoftgraph/msgraph-sdk-powershell
Ähnliche Issues
-
bug P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
nightscout/nocturne#1908 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug documentation Needs: Triage :mag:
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
WPF: each page's `Title` overwrites the window title, and returning to a page does not restore itOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
agentic-workflows area/Docs partner/agentic-workflows
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
jamesmontemagno/tiny-clips#378 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag