Skip to content

Integrate sessions into the framework/kernel - #776

Merged
Blacksmoke16 merged 1 commit into
masterfrom
framework-session-integration
Oct 20, 2026
Merged

Blacksmoke16 merged 1 commit into
masterfrom
framework-session-integration

Conversation

@Blacksmoke16

@Blacksmoke16 Blacksmoke16 commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Context

Adds the required bundle configuration to wire the session logic into the framework. Namely the new argument resolver, and listener that'll handle creating the session/setting the cookie and such behind the scenes if enabled.

Changelog

  • Add framework.session bundle configuration to enable sessions
  • Requests to a server started with an ssl_context are now considered secure
  • Add a tls argument to AHTTP::Request.new, which AHTTP::Request#secure? uses when the request did not come from a trusted proxy
  • Add AHK::Listeners::Session and AHK::Controller::ValueResolvers::Session to persist the AHTTP::Session of each request and provide it to controllers
  • Fix Username in various changelogs

Before merging, remember to add the athena-framework/athena prefix to the PR number in the PR title

@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.79508% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/components/framework/src/athena.cr 50.00% 1 Missing ⚠️
Components Coverage Δ
Clock Component 100.00% <ø> (ø)
Console Component 98.48% <ø> (ø)
Dependency Injection Component 94.89% <ø> (ø)
Dotenv Component 99.40% <ø> (ø)
Event Dispatcher Component 96.38% <ø> (ø)
Framework Component 98.68% <99.19%> (+0.03%) ⬆️
HTTP Component 99.58% <100.00%> (+<0.01%) ⬆️
HTTP Kernel Component 97.45% <100.00%> (+1.53%) ⬆️
Image Size Component 98.07% <ø> (ø)
Mercure Component 97.51% <ø> (ø)
MIME Component 99.62% <ø> (ø)
Negotiation Component 98.62% <ø> (ø)
ORM Component 96.98% <ø> (ø)
Routing Component 99.07% <ø> (ø)
Serializer Component 96.49% <ø> (ø)
Spec Component 95.66% <ø> (ø)
Validator Component 96.49% <ø> (ø)

📢 Thoughts on this report? Let us know!

@Blacksmoke16
Blacksmoke16 merged commit aeeef95 into master Oct 20, 2026
15 of 16 checks passed
@Blacksmoke16
Blacksmoke16 deleted the framework-session-integration branch October 20, 2026 22:04
PallasAthenaie pushed a commit to athena-framework/framework that referenced this pull request Oct 20, 2026
…#776)

## Context

Adds the required bundle configuration to wire the session logic into
the framework. Namely the new argument resolver, and listener that'll
handle creating the session/setting the cookie and such behind the
scenes if enabled.

## Changelog

- Add `framework.session` bundle configuration to enable sessions
- Requests to a server started with an ssl_context are now considered
secure
- Add a `tls` argument to `AHTTP::Request.new`, which
`AHTTP::Request#secure?` uses when the request did not come from a
trusted proxy
- Add `AHK::Listeners::Session` and
`AHK::Controller::ValueResolvers::Session` to persist the AHTTP::Session
of each request and provide it to controllers
- Fix Username in various changelogs
PallasAthenaie pushed a commit to athena-framework/http that referenced this pull request Oct 20, 2026
…#776)

## Context

Adds the required bundle configuration to wire the session logic into
the framework. Namely the new argument resolver, and listener that'll
handle creating the session/setting the cookie and such behind the
scenes if enabled.

## Changelog

- Add `framework.session` bundle configuration to enable sessions
- Requests to a server started with an ssl_context are now considered
secure
- Add a `tls` argument to `AHTTP::Request.new`, which
`AHTTP::Request#secure?` uses when the request did not come from a
trusted proxy
- Add `AHK::Listeners::Session` and
`AHK::Controller::ValueResolvers::Session` to persist the AHTTP::Session
of each request and provide it to controllers
- Fix Username in various changelogs
PallasAthenaie pushed a commit to athena-framework/http-kernel that referenced this pull request Oct 20, 2026
…#776)

## Context

Adds the required bundle configuration to wire the session logic into
the framework. Namely the new argument resolver, and listener that'll
handle creating the session/setting the cookie and such behind the
scenes if enabled.

## Changelog

- Add `framework.session` bundle configuration to enable sessions
- Requests to a server started with an ssl_context are now considered
secure
- Add a `tls` argument to `AHTTP::Request.new`, which
`AHTTP::Request#secure?` uses when the request did not come from a
trusted proxy
- Add `AHK::Listeners::Session` and
`AHK::Controller::ValueResolvers::Session` to persist the AHTTP::Session
of each request and provide it to controllers
- Fix Username in various changelogs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant