-
Notifications
You must be signed in to change notification settings - Fork 0
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
Authentication #22
Authentication #22
Commits on May 14, 2024
-
Adjust users controllers to perform validations and provide some cust…
…om error messages, hash passwords before saving them to database and prevent returning the password to the client side
Configuration menu - View commit details
-
Copy full SHA for aad0e7d - Browse repository at this point
Copy the full SHA aad0e7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9cdf14 - Browse repository at this point
Copy the full SHA e9cdf14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94f14dc - Browse repository at this point
Copy the full SHA 94f14dcView commit details -
Refactor Layout - create separate components Header and Navbar to inc…
…lude <header> and <nav> elements correspondingly; make the app name in Header redirect to the HomePage; create a route for authentication and include it in Navbar
Configuration menu - View commit details
-
Copy full SHA for 914155b - Browse repository at this point
Copy the full SHA 914155bView commit details -
Change state handling logic to prevent checking the value length when…
… the data is still loading or an error was catched
Configuration menu - View commit details
-
Copy full SHA for 7900043 - Browse repository at this point
Copy the full SHA 7900043View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cf11c4 - Browse repository at this point
Copy the full SHA 6cf11c4View commit details -
Create authSlice with asyncThunk that fetches user info from googleap…
…is.com and sets it into localStorage when fulfilled, add it to Redux store
Configuration menu - View commit details
-
Copy full SHA for 55bae67 - Browse repository at this point
Copy the full SHA 55bae67View commit details -
Add feature to login via Google using @react-oauth/google, dispatch t…
…he newly created getUser action (authSlice) to enable this feature
Configuration menu - View commit details
-
Copy full SHA for 8c8eeb6 - Browse repository at this point
Copy the full SHA 8c8eeb6View commit details -
Add logout reducer to enable logout feature, make initialState check …
…the localStorage so that the user stays logged in until he logs out
Configuration menu - View commit details
-
Copy full SHA for 2542907 - Browse repository at this point
Copy the full SHA 2542907View commit details -
Create Profile component to show it conditionally when the user is si…
…ned in alonside with the Sing Out button; for non-authenticated users only Login button is shown
Configuration menu - View commit details
-
Copy full SHA for 79f6c3d - Browse repository at this point
Copy the full SHA 79f6c3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for eec9a9d - Browse repository at this point
Copy the full SHA eec9a9dView commit details
Commits on May 15, 2024
-
Create server routes for authentication and corresponding controllers…
… (signup/signin), test the feature in Postman
Configuration menu - View commit details
-
Copy full SHA for c0873f5 - Browse repository at this point
Copy the full SHA c0873f5View commit details -
Enable regular signin/signup by creating corresponding actions in aut…
…hSlice and dispatching them in Auth component
Configuration menu - View commit details
-
Copy full SHA for 04f15e1 - Browse repository at this point
Copy the full SHA 04f15e1View commit details -
Refactor Navbar to show the actual error message, make Profile compon…
…ent process data coming both from google-oauth or regular signin/signup
Configuration menu - View commit details
-
Copy full SHA for 84ae2c7 - Browse repository at this point
Copy the full SHA 84ae2c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for be21851 - Browse repository at this point
Copy the full SHA be21851View commit details -
BugFix - make 'role' field in User schema of type String (instead of …
…array), update components and forms to exlude unnecessary arrays
Configuration menu - View commit details
-
Copy full SHA for 9b8711c - Browse repository at this point
Copy the full SHA 9b8711cView commit details -
BugFix - append back /:id to /user delete request URL and destructure…
… it from req.params instead of req.body since we can't access req.body in delte requests
Configuration menu - View commit details
-
Copy full SHA for 076f456 - Browse repository at this point
Copy the full SHA 076f456View commit details -
Configuration menu - View commit details
-
Copy full SHA for 775d78f - Browse repository at this point
Copy the full SHA 775d78fView commit details -
Move auth error/loading messages from navbar to the corresponsing pla…
…ce (signin/signup forms)
Configuration menu - View commit details
-
Copy full SHA for 553c27e - Browse repository at this point
Copy the full SHA 553c27eView commit details -
Dispatch getUsers after user is registered to see results without hav…
…ing to refresh the page after registration
Configuration menu - View commit details
-
Copy full SHA for 34407cf - Browse repository at this point
Copy the full SHA 34407cfView commit details -
Show only one of error messages when users couldn't be fetched and wh…
…en there are no users in db
Configuration menu - View commit details
-
Copy full SHA for 2d66289 - Browse repository at this point
Copy the full SHA 2d66289View commit details -
Stop displaying users (clear the user.value in store) when the users …
…are refetched with error or refetching is in process
Configuration menu - View commit details
-
Copy full SHA for 2d4fa37 - Browse repository at this point
Copy the full SHA 2d4fa37View commit details -
Append the token type everytime the back-end or google-auth sends the…
… token to client since later the server will decode them differently
Configuration menu - View commit details
-
Copy full SHA for a01d28c - Browse repository at this point
Copy the full SHA a01d28cView commit details -
Add interceptor to axios and extract it to a different part to be abl…
…e to import it to all Redux slices; interceptor provides the Authorization token depending on the token type
Configuration menu - View commit details
-
Copy full SHA for 2b3796d - Browse repository at this point
Copy the full SHA 2b3796dView commit details -
Create auth middleware on server to decode the provided token and ext…
…ract the userId, we'll later use it to query data and restrict some actions
Configuration menu - View commit details
-
Copy full SHA for a8978ee - Browse repository at this point
Copy the full SHA a8978eeView commit details -
Make App refetch all entities every time the state.auth.user changes;…
… otherwise users have to refresh the page after registration to see the pages that require credentials
Configuration menu - View commit details
-
Copy full SHA for 04a5f7b - Browse repository at this point
Copy the full SHA 04a5f7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25bd838 - Browse repository at this point
Copy the full SHA 25bd838View commit details
Commits on May 16, 2024
-
Change localStorage to Cookies (as advised on web) as a way to persis…
…t the user information
Configuration menu - View commit details
-
Copy full SHA for c625aea - Browse repository at this point
Copy the full SHA c625aeaView commit details -
BugFix - make sure the req.userId is retrieved from auth middleware (…
…the oauth access_token can not be decoded by jwt)
Configuration menu - View commit details
-
Copy full SHA for c9655a8 - Browse repository at this point
Copy the full SHA c9655a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e6ba3e - Browse repository at this point
Copy the full SHA 9e6ba3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 86b6f73 - Browse repository at this point
Copy the full SHA 86b6f73View commit details