Skip to content

Permettre l'autoconnection à proconnect sur les liens vers la communauté (DSP) [GEN-2389]#5393

Merged
vincentporte merged 3 commits into
masterfrom
vp/autoconnect_on_dsp_create
Jan 16, 2025
Merged

Permettre l'autoconnection à proconnect sur les liens vers la communauté (DSP) [GEN-2389]#5393
vincentporte merged 3 commits into
masterfrom
vp/autoconnect_on_dsp_create

Conversation

@vincentporte
Copy link
Copy Markdown

@vincentporte vincentporte commented Jan 15, 2025

🤔 Pourquoi ?

Le site des emplois redirige vers le Diagnostique Parcours IAE de la communaute. Ce diagnostique necessite l'authentification de l'utilisateur. Nous pensons que les utilisateurs pro_connect lors du changement de site, pourraient ne pas être motivés à se reconnecter. Nous testons la mise en place de l'autoconnection sur ce lien des emplois vers la commu.

lien avec l'issue communaute #846

changelog : connexion

🍰 Comment ?

ajout d'un tag autologin_proconnect

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?

🏝️ Comment tester

se connecter avec un utilisateur ProConnect

@vincentporte vincentporte self-assigned this Jan 15, 2025
@vincentporte vincentporte added python Pull requests that update Python code html ajouté Ajouté dans le changelog. labels Jan 15, 2025

@register.simple_tag
def autologin_proconnect(url, user):
if user.is_authenticated and user.is_proconnect:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Créer cette fonction juste pour ici, ça m'attriste beaucoup.

Suggested change
if user.is_authenticated and user.is_proconnect:
if user.is_authenticated and user.identity_provider == IdentityProvider.PRO_CONNECT:

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

ça ne mérite pas de tristesse … je l'ai tout de même enlevé ^^

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Je suis d'un naturel sensible 😿

@vincentporte vincentporte force-pushed the vp/autoconnect_on_dsp_create branch from 50b8f41 to 4783660 Compare January 16, 2025 13:21
@vincentporte vincentporte requested a review from tonial January 16, 2025 13:22
@vincentporte vincentporte force-pushed the vp/autoconnect_on_dsp_create branch from 4783660 to 78811ea Compare January 16, 2025 13:23
@vincentporte vincentporte changed the title Permettre l'autoconnection à proconnect sur les liens vers la communauté (DSP) Permettre l'autoconnection à proconnect sur les liens vers la communauté (DSP) [GEN-2389] Jan 16, 2025
@vincentporte vincentporte added this pull request to the merge queue Jan 16, 2025
Merged via the queue into master with commit 677e27a Jan 16, 2025
@vincentporte vincentporte deleted the vp/autoconnect_on_dsp_create branch January 16, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ajouté Ajouté dans le changelog. html python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants