Azure-Samples / Azure-Samples/ms-identity-msal-java-samples
groups are reset
- Langage dominant
- Java
- Étoiles
- 79
- Forks
- 82
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hi,
I found this line to reset the previously assigned groups of the user.
Just change it to this.roles= new ArrayList(); and it should be working as expected again.
https://github.com/Azure-Samples/ms-identity-msal-java-samples/blob/32f2740e43b88d9251d265f81c2d9e9d5b83ca45/3-java-servlet-web-app/1-Authentication/sign-in/src/main/java/com/microsoft/azuresamples/msal4j/helpers/IdentityContextData.java#L140
Best regards,
Jan
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start in 3-java-servlet-web-app/1-Authentication/sign-in/src/main/java/com/microsoft/azuresamples/msal4j/helpers/IdentityContextData.java at line 140, where the issue identifies the group reset. Inspect how the roles list is initialized and verify in the sign-in sample that previously assigned groups are retained after the change.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- authentication, authorization
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 48/100