Skip to content

Conversation

@Zonnex
Copy link
Contributor

@Zonnex Zonnex commented Feb 18, 2025

This PR fixes #478.

High level overview of this PR:

  • Current implementation uses cookie to store temporary state. Worst case, this cookie is too large, and either way degrades performance. This PR changes the state storage to be in memory by default, but allows users of ActiveLogin to provide their own implementation (if needed).

@Zonnex Zonnex force-pushed the feature/478-state_storage branch from ca043ce to c072262 Compare February 19, 2025 08:55
@Zonnex
Copy link
Contributor Author

Zonnex commented Feb 19, 2025

Should this PR wait for dotnet 9 PR to be merged?

Copy link
Contributor

@elinohlsson elinohlsson left a comment

Choose a reason for hiding this comment

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

Hard to review and verify that the it is working as expected. Needs to be tested. Only had a few comments of smaller changes.

@elinohlsson
Copy link
Contributor

@Zonnex also add to documentation how to create your own implementation of IStateStorage.

@Zonnex Zonnex force-pushed the feature/478-state_storage branch 2 times, most recently from c42196e to aa5a85f Compare February 25, 2025 07:30
@Zonnex
Copy link
Contributor Author

Zonnex commented Feb 26, 2025

This feature needs more work. The proposed solution is too simple, and should perhaps support a distributed environment out of the box. A new implementation should perhaps use HybridCache or IDistributedCache. I will convert this to draft to avoid mistakes by merging in work that isn't sufficient

@Zonnex Zonnex marked this pull request as draft February 26, 2025 14:11
@Zonnex Zonnex force-pushed the feature/478-state_storage branch 2 times, most recently from d9c066b to f612b4e Compare March 27, 2025 13:23
@Zonnex Zonnex force-pushed the feature/478-state_storage branch from 0e59cb7 to fcb4c2c Compare April 9, 2025 08:21
@Zonnex Zonnex force-pushed the feature/478-state_storage branch 3 times, most recently from 85d4bc9 to 2557a87 Compare September 26, 2025 14:56
@Zonnex Zonnex force-pushed the feature/478-state_storage branch from 2557a87 to 786f80b Compare October 9, 2025 13:29
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.

Large BankIdUiSignState cookie

3 participants