Skip to content
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

Implement the #[RequiresActiveSession] attribute #210

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MKodde
Copy link
Member

@MKodde MKodde commented Sep 17, 2024

Install the #[RequiresActiveSession] attribute on the routes that require a session to be started.

@pmeulen are these the actions you had in mind? This is what my own judgement came up with.

As a little side project I:

  • Dependency injected the Session name into the services that check the session id cookie
  • Injected the Salt that is used to generate the log session correlation id with.

That way we always follow the configured session name set in the
framework.yaml
That way we do not hard code a security measure in the code base. And
allow for manual setting of that SALT
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.

1 participant