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

Emplois <> Commu autoconnect #846

Open
vincentporte opened this issue Dec 4, 2024 · 3 comments · Fixed by #851
Open

Emplois <> Commu autoconnect #846

vincentporte opened this issue Dec 4, 2024 · 3 comments · Fixed by #851
Assignees

Comments

@vincentporte
Copy link
Contributor

vincentporte commented Dec 4, 2024

MIDDLEWARES

Emplois > Commu

PR #851 middleware commu

Commu > Middleware Emplois :

PR #5237 middleware emplois

UI

Commu > Emplois

Emplois > Commu

PR #5245 emplois

@vincentporte vincentporte self-assigned this Dec 4, 2024
@vincentporte
Copy link
Contributor Author

vincentporte commented Dec 4, 2024

option 1 : share users session between Django Emplois and Django Commu = common db storage for sessions
option 2 : open API on both Django to know whether a _auth_user_id is logged with Proconnect as Identity Provider has an active session
option 3 : call Proconnect with the rights params to go throuh verify and login

@vincentporte
Copy link
Contributor Author

vincentporte commented Dec 4, 2024

Commu

session data for user logged with magic_link :

'pro_connect'

{'channel': None,
 'key': 'pro_connect',
 'next_url': '',
 'previous_url': '/',
 'request': None,
 'state': None,
 'token': None,
 'user_email': None}

session data for user logged with proconnect :

{
    "_anonymous_forum_key": "20642ac9xxx7ebcfdfbc",
    "pro_connect": {
        "token": "eyJhbGciOiJIUzI1NiIxxxxxxxxxxxoV_1g6kjqCZDyNY8pTpL9-JlRUfgAmqsliA",
        "state": "STTuFlnkjiKxxxxxxxUY7P5JCOUAbY",
        "previous_url": "/",
        "next_url": "",
        "user_email": None,
        "request": None,
        "key": "pro_connect",
        "channel": None,
    },
    "_auth_user_id": "1999999992",
    "_auth_user_backend": "django.contrib.auth.backends.ModelBackend",
    "_auth_user_hash": "d76b69xxxxxxxxxd7d444f",
}

@vincentporte
Copy link
Contributor Author

vincentporte commented Dec 5, 2024

etape 1 : emplois > commu autoconnect
etape 2 : commu > emplois avec bouton + sub du proconnecté pour déterminer kind. si sub n'existe pas, debrancher vers creation de compte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant