Connect-MgGraph on 2.41 crashes when making a connection with cert, fixes when using 2.39 or lower
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- csharp, powershell
- Domaine
- api, authentication
Piste de recherche
Start by reproducing the reported Connect-MgGraph certificate-authentication failure with Graph.Authentication 2.41.1, then compare it with 2.39, which the report says works. Investigate the RefreshCacheAsync implementation mismatch named in the exception; done means the certificate connection succeeds on 2.41.1 without downgrading.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
When using the following code with version 2.39 (or lower) of Graph.authentication, it will work.
Connect-MgGraph -ClientId $ClientID
-TenantId $TenantID -Certificate $cert
-NoWelcome
fresh device with 2.4.1 will crash with this error. work around is to install 2.39 or lower and use this graph.authentication.
Method 'RefreshCacheAsync' in type 'Microsoft.Graph.PowerShell.Authentication.Core.TokenCache.InMemoryTokenCacheOptions' from assembly 'Microsoft.Graph.Authentication.Core, Version=2.41.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
Expected behavior
I expect it to connect and work.
How to reproduce
Create a certificate and load it. This is used by an api registration with only https://graph.microsoft.com/DeviceManagementServiceConfig.ReadWrite.All
Connect-MgGraph -ClientId $ClientID
-TenantId $TenantID -Certificate $cert
-NoWelcome
upon using this connection command it will crash
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
downgrade and load Graph.authentication 2.39 or lower
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
- Langage dominant
- C#
- Étoiles
- 903
- Forks
- 235
- Merge moyen
- 2 j 8 h
- PR mergées (30 j)
- 18
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoftgraph/msgraph-sdk-powershell
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
Les mainteneurs répondent en général sous 2 jours
-
status:waiting-for-triage type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
microsoftgraph/msgraph-sdk-powershell#3831 ·
Les mainteneurs répondent en général sous 2 jours
-
status:waiting-for-triage type:feature
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 8/100
microsoftgraph/msgraph-sdk-powershell#3827 ·
Les mainteneurs répondent en général sous 2 jours
-
status:waiting-for-triage type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
Les mainteneurs répondent en général sous 2 jours
-
Microsoft.Graph.Authentication dependency Microsoft.Graph.Authentication.Loader.dll is unsignedPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertestatus:waiting-for-triage type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
microsoftgraph/msgraph-sdk-powershell#3819 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de microsoftgraph/msgraph-sdk-powershell
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
bug priority: P2
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
IridiumIO/CompactGUI#699 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour