-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
T1hTime Estimate 1 HourTime Estimate 1 Hourawaiting-reviewAn issue or pull request that needs to be reviewedAn issue or pull request that needs to be reviewedenhancementNew feature or enhancement of existing functionalityNew feature or enhancement of existing functionalitytechnicalA technical issue that requires understanding of the code, infrastructure or dependenciesA technical issue that requires understanding of the code, infrastructure or dependencies
Description
At present we have a function that creates a session based on the person data (after Google Auth)
lib/app_web/controllers/google_auth_controller.ex#L29-L35
But this is not adding the session to the conn and as a result the person (user) cannot perform any further action beyond Auth ...
Todo
- Create Session Controller
- Add the session to the
connin the GoogleAuthController
conn
|> put_current_user(user)
|> put_session(:user_id, user.id)
|> configure_session(renew: true)
-
Save the
person.idintoconnthen useput_sessionfunction to save the session on the user browser. The Session controller will be created later on to create the email/password authentication -
Create a
Plugthat we can use on each incoming request to get the check if the session exists and still valid and to retrieve the person from the savedperson.idin the session
iteles
Metadata
Metadata
Assignees
Labels
T1hTime Estimate 1 HourTime Estimate 1 Hourawaiting-reviewAn issue or pull request that needs to be reviewedAn issue or pull request that needs to be reviewedenhancementNew feature or enhancement of existing functionalityNew feature or enhancement of existing functionalitytechnicalA technical issue that requires understanding of the code, infrastructure or dependenciesA technical issue that requires understanding of the code, infrastructure or dependencies