Skip to content

AB#119342 Allow multiple logins when using cookies#219

Merged
buckett merged 1 commit into
masterfrom
AB#119342
Jun 15, 2026
Merged

AB#119342 Allow multiple logins when using cookies#219
buckett merged 1 commit into
masterfrom
AB#119342

Conversation

@buckett

@buckett buckett commented Jun 10, 2026

Copy link
Copy Markdown
Member

When a login is done using cookies we allow multiple concurrent logins to happen in parallel. This works on mobile and on desktop.

When a login is done using cookies we allow multiple concurrent logins to happen in parallel. This works on mobile and on desktop.
Copilot AI review requested due to automatic review settings June 10, 2026 13:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the LTI 1.3 Spring Security configuration to support multiple concurrent OIDC login flows when the browser is using cookies/session state, enabling parallel logins (e.g., multiple tabs/windows) on both mobile and desktop.

Changes:

  • Override the default authorization request repository configuration to use a session-backed repository that supports multiple concurrent login requests.
  • Add a state-based authorization request repository with a configured TTL and optional IP-limiting behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +32 to +40
@Override
protected OptimisticAuthorizationRequestRepository configureRequestRepository() {
HttpSessionOAuth2AuthorizationRequestRepository sessionRepository = new HttpSessionOAuth2AuthorizationRequestRepository();
// We override the default HttpSession repository to allow concurrent logins to be stored.
sessionRepository.setMaxConcurrentLogins(10);
StateAuthorizationRequestRepository stateRepository = new StateAuthorizationRequestRepository(Duration.ofMinutes(1));
stateRepository.setLimitIpAddress(limitIpAddresses);
return new OptimisticAuthorizationRequestRepository( sessionRepository, stateRepository );
}
@buckett buckett merged commit 12db434 into master Jun 15, 2026
4 checks passed
@buckett buckett deleted the AB#119342 branch June 15, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants