Supported way to get the token
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- csharp, powershell
- Área
- api, authentication
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C#
- Estrellas
- 902
- Forks
- 233
- Merge medio
- 1 d 22 h
- PR fusionados (30 d)
- 29
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoftgraph/msgraph-sdk-powershell
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
Los mantenedores suelen responder en 2 días
-
status:waiting-for-triage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
Los mantenedores suelen responder en 2 días
-
Microsoft.Graph.Authentication dependency Microsoft.Graph.Authentication.Loader.dll is unsignedAbiertostatus:waiting-for-triage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoftgraph/msgraph-sdk-powershell#3819 ·
Los mantenedores suelen responder en 2 días
-
Connect-MgGraph on 2.41 crashes when making a connection with cert, fixes when using 2.39 or lowerAbiertostatus:waiting-for-triage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoftgraph/msgraph-sdk-powershell#3816 ·
Los mantenedores suelen responder en 2 días
-
Microsoft.Graph.Authentication fails after removal and re-import in the same PowerShell sessionAbiertostatus:waiting-for-triage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
microsoftgraph/msgraph-sdk-powershell#3805 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de microsoftgraph/msgraph-sdk-powershell
Issues similares
-
area:jobads-cv BE mvp P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
klasolsson81/jobbliggaren#2099 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
0 - Backlog Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
BrighterCommand/Brighter#4581 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Esri/calcite-dotnet-toolkit#30 · 1 reacción ·
-
kind:docs simplification size:S status:todo
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
elsa-workflows/elsa-foundation#2604 ·
Los mantenedores suelen responder en 1 día