-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat!(middleware/session): re-write session middleware with handler #3016
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6e76847 - Browse repository at this point
Copy the full SHA 6e76847View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac9a028 - Browse repository at this point
Copy the full SHA ac9a028View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81f6789 - Browse repository at this point
Copy the full SHA 81f6789View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28790cb - Browse repository at this point
Copy the full SHA 28790cbView commit details
Commits on May 30, 2024
-
Update middleware/session/middleware.go
Co-authored-by: Renan Bastos <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ffae3d - Browse repository at this point
Copy the full SHA 7ffae3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 68f2739 - Browse repository at this point
Copy the full SHA 68f2739View commit details
Commits on Jun 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 92e6877 - Browse repository at this point
Copy the full SHA 92e6877View commit details
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 239db00 - Browse repository at this point
Copy the full SHA 239db00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b93c5c - Browse repository at this point
Copy the full SHA 0b93c5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cb4a6e - Browse repository at this point
Copy the full SHA 7cb4a6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4c8ea8 - Browse repository at this point
Copy the full SHA b4c8ea8View commit details -
Configuration menu - View commit details
-
Copy full SHA for aafee92 - Browse repository at this point
Copy the full SHA aafee92View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd91db4 - Browse repository at this point
Copy the full SHA cd91db4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3b303f - Browse repository at this point
Copy the full SHA c3b303fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 75cffca - Browse repository at this point
Copy the full SHA 75cffcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2731428 - Browse repository at this point
Copy the full SHA 2731428View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f04291 - Browse repository at this point
Copy the full SHA 4f04291View commit details
Commits on Jun 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ee193dc - Browse repository at this point
Copy the full SHA ee193dcView commit details
Commits on Jul 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 01571cb - Browse repository at this point
Copy the full SHA 01571cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f032d4 - Browse repository at this point
Copy the full SHA 5f032d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a5a3d7 - Browse repository at this point
Copy the full SHA 1a5a3d7View commit details -
feat: Improve session middleware test coverage and error handling
This commit improves the session middleware test coverage by adding assertions for the presence of the Set-Cookie header and the token value. It also enhances error handling by checking for the expected number of parts in the Set-Cookie header.
Configuration menu - View commit details
-
Copy full SHA for 52e41a4 - Browse repository at this point
Copy the full SHA 52e41a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed95d83 - Browse repository at this point
Copy the full SHA ed95d83View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6e1c34 - Browse repository at this point
Copy the full SHA c6e1c34View commit details
Commits on Aug 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8a5663a - Browse repository at this point
Copy the full SHA 8a5663aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46845e6 - Browse repository at this point
Copy the full SHA 46845e6View commit details
Commits on Aug 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ba0e491 - Browse repository at this point
Copy the full SHA ba0e491View commit details -
Configuration menu - View commit details
-
Copy full SHA for d08b686 - Browse repository at this point
Copy the full SHA d08b686View commit details
Commits on Aug 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8df7c81 - Browse repository at this point
Copy the full SHA 8df7c81View commit details
Commits on Aug 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 508cf24 - Browse repository at this point
Copy the full SHA 508cf24View commit details
Commits on Aug 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6ee953b - Browse repository at this point
Copy the full SHA 6ee953bView commit details
Commits on Sep 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 355b8f5 - Browse repository at this point
Copy the full SHA 355b8f5View commit details
Commits on Sep 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2f3f724 - Browse repository at this point
Copy the full SHA 2f3f724View commit details
Commits on Sep 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c08ddc1 - Browse repository at this point
Copy the full SHA c08ddc1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56f6ce0 - Browse repository at this point
Copy the full SHA 56f6ce0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e406f4 - Browse repository at this point
Copy the full SHA 9e406f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12b219a - Browse repository at this point
Copy the full SHA 12b219aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6812fc4 - Browse repository at this point
Copy the full SHA 6812fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28aad65 - Browse repository at this point
Copy the full SHA 28aad65View commit details
Commits on Sep 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d4e607e - Browse repository at this point
Copy the full SHA d4e607eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 14c7a6c - Browse repository at this point
Copy the full SHA 14c7a6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a865ba5 - Browse repository at this point
Copy the full SHA a865ba5View commit details -
Configuration menu - View commit details
-
Copy full SHA for eaedc6d - Browse repository at this point
Copy the full SHA eaedc6dView commit details -
refactor(middleware/session): session tests and add session release test
- Refactor session tests to improve readability and maintainability. - Add a new test case to ensure proper session release functionality. - Update session.md
Configuration menu - View commit details
-
Copy full SHA for d2cf5b8 - Browse repository at this point
Copy the full SHA d2cf5b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b479895 - Browse repository at this point
Copy the full SHA b479895View commit details -
Configuration menu - View commit details
-
Copy full SHA for afab580 - Browse repository at this point
Copy the full SHA afab580View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c0bf25 - Browse repository at this point
Copy the full SHA 6c0bf25View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad337f8 - Browse repository at this point
Copy the full SHA ad337f8View commit details
Commits on Sep 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 280d539 - Browse repository at this point
Copy the full SHA 280d539View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40da2c0 - Browse repository at this point
Copy the full SHA 40da2c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ad4bc9 - Browse repository at this point
Copy the full SHA 3ad4bc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffac824 - Browse repository at this point
Copy the full SHA ffac824View commit details
Commits on Sep 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9f8c2d7 - Browse repository at this point
Copy the full SHA 9f8c2d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecac9ce - Browse repository at this point
Copy the full SHA ecac9ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for e272082 - Browse repository at this point
Copy the full SHA e272082View commit details -
Configuration menu - View commit details
-
Copy full SHA for b262a08 - Browse repository at this point
Copy the full SHA b262a08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 937a9b3 - Browse repository at this point
Copy the full SHA 937a9b3View commit details
Commits on Sep 20, 2024
-
refactor(middleware/session): Update session middleware idle timeout
- Update the default idle timeout for session middleware from 24 hours to 30 minutes. - Add a note in the session middleware documentation about the importance of the middleware order.
Configuration menu - View commit details
-
Copy full SHA for 9ec2b30 - Browse repository at this point
Copy the full SHA 9ec2b30View commit details -
docws(middleware/session): Add note about IdleTimeout requiring save …
…using legacy approach
Configuration menu - View commit details
-
Copy full SHA for 684dc8a - Browse repository at this point
Copy the full SHA 684dc8aView commit details -
refactor(middleware/session): Update session middleware idle timeout
Update the idle timeout for the session middleware to 30 minutes. This ensures that the session expires after a period of inactivity. The previous value was 24 hours, which is too long for most use cases. This change improves the security and efficiency of the session management.
Configuration menu - View commit details
-
Copy full SHA for 05d30a4 - Browse repository at this point
Copy the full SHA 05d30a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec5a698 - Browse repository at this point
Copy the full SHA ec5a698View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13a1eb4 - Browse repository at this point
Copy the full SHA 13a1eb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d3b032 - Browse repository at this point
Copy the full SHA 9d3b032View commit details -
refactor(middleware/session): Remove unnecessary comment about negati…
…ve IdleTimeout value
Configuration menu - View commit details
-
Copy full SHA for 9762767 - Browse repository at this point
Copy the full SHA 9762767View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e59905f - Browse repository at this point
Copy the full SHA e59905fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7765ee5 - Browse repository at this point
Copy the full SHA 7765ee5View commit details -
refactor(middleware/session): Update session middleware Set, Get, and…
… Delete methods Refactor the Set, Get, and Delete methods in the session middleware to use more descriptive parameter names. Instead of using "middlewareContextKey", the methods now use "key" to represent the key of the session value. This improves the readability and clarity of the code.
Configuration menu - View commit details
-
Copy full SHA for 8716c95 - Browse repository at this point
Copy the full SHA 8716c95View commit details
Commits on Sep 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0e302e9 - Browse repository at this point
Copy the full SHA 0e302e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 951691d - Browse repository at this point
Copy the full SHA 951691dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ac9b68 - Browse repository at this point
Copy the full SHA 3ac9b68View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc95c6a - Browse repository at this point
Copy the full SHA bc95c6aView commit details -
refactor(middleware/session): rename GetSessionByID to GetByID
This commit also includes changes to the session_test.go and store_test.go files to add test cases for the new GetByID method.
Configuration menu - View commit details
-
Copy full SHA for 6bba849 - Browse repository at this point
Copy the full SHA 6bba849View commit details -
Configuration menu - View commit details
-
Copy full SHA for 281c0e1 - Browse repository at this point
Copy the full SHA 281c0e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d88ece - Browse repository at this point
Copy the full SHA 3d88eceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ddfeae - Browse repository at this point
Copy the full SHA 3ddfeaeView commit details -
refactor(middleware/session): Rename expirationKeyType to absExpirati…
…onKeyType and update related functions
Configuration menu - View commit details
-
Copy full SHA for c3d3f0c - Browse repository at this point
Copy the full SHA c3d3f0cView commit details -
refactor(middleware/session): rename Test_Session_Save_Absolute to Te…
…st_Session_Save_AbsoluteTimeout
Configuration menu - View commit details
-
Copy full SHA for 0e9a73e - Browse repository at this point
Copy the full SHA 0e9a73eView commit details
Commits on Oct 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a467236 - Browse repository at this point
Copy the full SHA a467236View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f35ff8 - Browse repository at this point
Copy the full SHA 6f35ff8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3c4e8e - Browse repository at this point
Copy the full SHA f3c4e8eView commit details
Commits on Oct 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e41ee74 - Browse repository at this point
Copy the full SHA e41ee74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07092c8 - Browse repository at this point
Copy the full SHA 07092c8View commit details -
refactor(middleware/session): Update absolute timeout handling
- Update absolute timeout handling in getSession function - Set absolute expiration time in getSession function - Delete expired session in GetByID function
Configuration menu - View commit details
-
Copy full SHA for 84adbe1 - Browse repository at this point
Copy the full SHA 84adbe1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6440e2 - Browse repository at this point
Copy the full SHA f6440e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for eac16b6 - Browse repository at this point
Copy the full SHA eac16b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7068a0e - Browse repository at this point
Copy the full SHA 7068a0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87a6cb9 - Browse repository at this point
Copy the full SHA 87a6cb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5e5fd8 - Browse repository at this point
Copy the full SHA e5e5fd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00b9e07 - Browse repository at this point
Copy the full SHA 00b9e07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23e823b - Browse repository at this point
Copy the full SHA 23e823bView commit details
Commits on Oct 3, 2024
-
fix( middleware/session/config.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ba38786 - Browse repository at this point
Copy the full SHA ba38786View commit details
Commits on Oct 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f77fa8f - Browse repository at this point
Copy the full SHA f77fa8fView commit details
Commits on Oct 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b54c954 - Browse repository at this point
Copy the full SHA b54c954View commit details