Repository navigation
feat: Add session token configuration properties to AuthSessionsConfig - #4142
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Comment |
Co-authored-by: SandPod <[email protected]>
Co-authored-by: SandPod <[email protected]>
Co-authored-by: SandPod <[email protected]>
|
@copilot Changes look good, but please remove the max concurrent sessions options along with its implementation. |
Co-authored-by: SandPod <[email protected]>
Removed the |
|
@copilot Please remove the entry in the changelog |
Co-authored-by: SandPod <[email protected]>
|
@copilot please rename auth_sessions_config_integration_test.dart to auth_sessions_create_session_test.dart. |
…eate_session_test.dart Co-authored-by: SandPod <[email protected]>
nielsenko
left a comment
There was a problem hiding this comment.
👍
Only a nit on a doc comment
Co-authored-by: Kasper Overgård Nielsen <[email protected]>
|
@coderabbitai Could you create these 2 new issues:
|
Add configuration for session token properties in AuthSessionsConfig
This PR addresses the requirements for adding configuration options to control session token properties in the authentication system.
Summary
Extended the
AuthSessionsConfigclass with two optional configuration properties to control session behavior:defaultSessionLifetime- Controls absolute session expiration timedefaultSessionInactivityTimeout- Controls inactivity-based session expirationImplementation Details
Configuration Properties
defaultSessionLifetime: Duration?expiresAtparameternull(no absolute expiration)defaultSessionInactivityTimeout: Duration?expireAfterUnusedForparameternull(no inactivity timeout)Code Changes
createSessionto apply config defaultsauth_sessions_create_session_test.dart(44 tests passing)Example Usage
Testing
Backward Compatibility
✅ Fully backward compatible - All new parameters are optional and default to
null. Existing applications continue to work without any changes.Acceptance Criteria Status
AuthSessionsConfigAuthSessionsTokenManagerto respect configured session properties (viaAuthSessions)Fixes #4128
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.