MsalProvider uses unknown redirect URI, authentication fails
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- csharp
- Domaine
- authentication
Piste de recherche
Commencez par MsalProvider et le flux de LoginButton, en utilisant la configuration documentée de ProviderManager et la configuration d’exemple de CommunityToolkit.Authentication.Msal 7.1.1. Reproduisez l’échec AADSTS50011 avec l’URI de redirection indiquée et suivez l’URI de redirection envoyée ; le travail est terminé lorsque la connexion réussit avec une URI enregistrée dans Azure AD.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
When using the MsalProvider as documented and as in the sample, auth fails with AADSTS50011.
Request Id: 5e464c00-92a4-4a14-a5e6-f6c807527900
Correlation Id: 70fa290d-da9e-4a48-ac59-98da60a73410
Timestamp: 2022-04-29T14:51:55Z
Message: AADSTS50011: The redirect URI 'ms-appx-web://Microsoft.AAD.BrokerPlugin/S-1-15-2-3827128064-569582487-4294593430-3382639814-4294318972-3676523608-2734131615' specified in the request does not match the redirect URIs configured for the application '3892d014-2554-4df7-a10b-9f1e5c0742e7'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
- Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:
Steps to Reproduce
Steps to reproduce the behavior:
-
Register an app in Azure AD using the redirect URI
https://login.microsoftonline.com/common/oauth2/nativeclient. -
Configure your provider.
string[] scopes = new string[] { "User.Read" }; ProviderManager.Instance.GlobalProvider = new MsalProvider("CLIENT_ID", scopes); -
Try to login with the
LoginButton.
Expected behavior
Should login
Environment
NuGet Package(s):
CommunityToolkit.Authentication.Msal 7.1.1
CommunityToolkit.Graph.Uwp 7.1.1
Windows 11 Build Number: (10.0; Build 22000)
App min and target version: Windows 10, version 2104 (10.0; Build 20348), Target Windows 11 (10.0; Build 22000)
Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT
Visual Studio
- [ ] 2017 (version: )
- [ ] 2019 (version: )
- [ ] 2019 Preview (version: )
- [x] 2022 (version: 17.1.6)
- Langage dominant
- C#
- Étoiles
- 156
- Forks
- 37
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun 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 CommunityToolkit/Graph-Controls
-
bug :bug:
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
CommunityToolkit/Graph-Controls#211 · 3 commentaires ·
-
CommunityToolkit.Authentication.Msal use Microsoft Graph V4 but if you install V5,you cannot releaseOuvertebug :bug: needs attention :wave: needs triage :mag:
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
CommunityToolkit/Graph-Controls#208 · 20 commentaires ·
-
enhancement :sparkles:
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
-
Area: Providers
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
CommunityToolkit/Graph-Controls#195 · 1 commentaire ·
-
Area: Providers bug :bug:
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
CommunityToolkit/Graph-Controls#189 · 3 commentaires ·
Toutes les issues de CommunityToolkit/Graph-Controls
Issues similaires
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itOuvertearea: core bug help wanted ready
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
ZaidX88/sluice#265 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area: remote bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Install a C# EnvironmentOuverte📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
CodeYourFuture/Module-Tools#712 ·
-
A: Mapping P3: Standard T: New Feature
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
space-wizards/space-station-14#46878 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 60/100
CommunityToolkit/Windows#896 · 2 commentaires ·