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

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

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

vincentporte
Copy link
Contributor

@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
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
Contributor 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
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
9 checks passed
@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