Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(user): basculer l'authentification vers Mon Compte Pro #731

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

vincentporte
Copy link
Contributor

@vincentporte vincentporte commented Jul 31, 2024

Description

🎸 Inclusion Connect est remplacé par Mon Compte Pro (https://moncomptepro.beta.gouv.fr/)

Type de changement

🚧 technique

Points d'attention

🦺 renommage de l'app django
🦺 mise à jour des urls
🦺 ajout du paramètre "acr_values": "eidas1" lors de l'appel au end-point authorize
🦺 remplacement de family_name par usual_name lors de l'appel au end-point user-info
🦺 decoder user_data à l'aide de la lib PyJWT

@vincentporte vincentporte linked an issue Jul 31, 2024 that may be closed by this pull request
7 tasks
@vincentporte vincentporte added the python Pull requests that update Python code label Jul 31, 2024
@vincentporte vincentporte force-pushed the 729-user-bascule-ic-proc branch 3 times, most recently from e8f1f04 to f71c504 Compare July 31, 2024 14:13
@vincentporte vincentporte requested a review from tonial July 31, 2024 14:16
Copy link

@tonial tonial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai l'impression que tu n'as pas mis à jour le template du bouton de connexion.

Sinon, ça m'a l'air bien (il faudrait peut être faire une recherche d'inclusion.*connect dans le repo de code pour vérifier qu'il n'en reste pas quelque part comme le commentaire repéré.

Est-ce que tu as moyen de désactiver temporairement la connexion (le temps de mettre à jour les subs le jour J) ?

.env.template Show resolved Hide resolved
lacommunaute/openid_connect/models.py Show resolved Hide resolved
@vincentporte vincentporte added the recette-jetable review_app label Aug 27, 2024
@vincentporte vincentporte marked this pull request as ready for review August 27, 2024 12:04
@vincentporte vincentporte added recette-jetable review_app and removed recette-jetable review_app labels Aug 27, 2024
Copy link
Contributor

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@vincentporte vincentporte removed the recette-jetable review_app label Aug 28, 2024
@vincentporte
Copy link
Contributor Author

vincentporte commented Aug 28, 2024

  • ajout des variables d'environnement OPENID_CONNECT_BASE_URL , OPENID_CONNECT_CLIENT_ID et OPENID_CONNECT_CLIENT_SECRET
  • installation du sous-domaine staging.communaute.inclusion.beta.gouv.fr

Echec en code erreur Y000404

@vincentporte vincentporte added the recette-jetable review_app label Aug 28, 2024
Copy link
Contributor

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@vincentporte
Copy link
Contributor Author

@vincentporte
Copy link
Contributor Author

vincentporte commented Aug 29, 2024

@vincentporte vincentporte force-pushed the 729-user-bascule-ic-proc branch 2 times, most recently from 95e4fd3 to feae787 Compare August 29, 2024 08:29
@vincentporte vincentporte force-pushed the 729-user-bascule-ic-proc branch 2 times, most recently from d5f52f1 to 3ff4525 Compare August 29, 2024 12:27
@@ -18,9 +18,9 @@ SIB_API_KEY=__key_to_be_set__
#SENTRY_DSN=__url_to_be_set__

# for Inclusion Connect
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

le commentaire dit toujours Inclusion Connect

@@ -26,7 +26,7 @@
urlpatterns = [
path("admin/", admin.site.urls),
# Inclusion Connect URLs.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commentaire à mettre à jour

@@ -26,7 +26,7 @@
urlpatterns = [
path("admin/", admin.site.urls),
# Inclusion Connect URLs.
path("inclusion_connect/", include(inclusion_connect_urls)),
path("", include(openid_connect_urls)),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi avoir mis le pro_connect dans les urls individuelles ?

This was referenced Sep 24, 2024
vincentporte added a commit that referenced this pull request Sep 25, 2024
## Description

🎸 Ajout d'un `middleware` pour activer une page parking lors des
maintenances techniques à venir : migration IC #731 , et migration de la
documentation #765

## Type de changement

🚧 technique

### Points d'attention

🦺 Ajout de la variable d'environnement `PARKING_PAGE`
🦺 `ParkingPageMiddleware` attrape toutes les requêtes sauf celles vers
l'admin lorsqu'il est actif.
🦺 exclure le template `parking.html` du contrôle de `djlint` dans la CI
(`make quality`)


### Captures d'écran (optionnel)

page parking


![image](https://github.com/user-attachments/assets/7ad1960e-171e-4d46-b177-11c2084dea9f)
vincentporte added a commit that referenced this pull request Sep 25, 2024
## Description

🎸 Ajout d'un `middleware` pour activer une page parking lors des
maintenances techniques à venir : migration IC #731 , et migration de la
documentation #765

## Type de changement

🚧 technique

### Points d'attention

🦺 Ajout de la variable d'environnement `PARKING_PAGE`
🦺 `ParkingPageMiddleware` attrape toutes les requêtes sauf celles vers
l'admin lorsqu'il est actif.
🦺 exclure le template `parking.html` du contrôle de `djlint` dans la CI
(`make quality`)


### Captures d'écran (optionnel)

page parking


![image](https://github.com/user-attachments/assets/7ad1960e-171e-4d46-b177-11c2084dea9f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[USER] bascule IC > ProC
2 participants