PHPackages                             oxid-esales/session-authentication-component - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. oxid-esales/session-authentication-component

ActiveOxideshop-component[Authentication &amp; Authorization](/categories/authentication)

oxid-esales/session-authentication-component
============================================

Session authentication component for OXID eShop

v1.0.0(3mo ago)01921proprietaryPHPPHP ^8.3CI passing

Since Apr 8Pushed 3mo agoCompare

[ Source](https://github.com/OXID-eSales/session-authentication-component)[ Packagist](https://packagist.org/packages/oxid-esales/session-authentication-component)[ RSS](/packages/oxid-esales-session-authentication-component/feed)WikiDiscussions b-7.5.x Synced 3w ago

READMEChangelogDependencies (5)Versions (2)Used By (1)

OXID eShop Session Authentication Component
===========================================

[](#oxid-eshop-session-authentication-component)

Provides session-based authentication for OXID eShop Symfony controllers. Controllers annotated with `#[SessionUser]` or `#[AdminSessionUser]` require an active OXID session cookie before the request is processed.

> **Note:** Recommended for AJAX endpoints only. For stateless API access, use JWT authentication instead.

How it works
------------

[](#how-it-works)

The component registers two Symfony kernel event subscribers:

- **`SessionAuthListener`** — handles `#[SessionUser]` — requires an active frontend session (`sid` cookie)
- **`AdminSessionAuthListener`** — handles `#[AdminSessionUser]` — requires an active admin session (`admin_sid` cookie) with optional role checks

Usage
-----

[](#usage)

Apply the attribute to an action method:

```
use OxidEsales\SessionAuthComponent\Security\Attribute\SessionUser;
use OxidEsales\SessionAuthComponent\Security\Attribute\AdminSessionUser;

class MyController
{
    #[SessionUser]
    public function ajaxUserAction(): ResponseInterface
    {
        // requires active frontend session (sid cookie)
    }

    #[AdminSessionUser(roles: ['ROLE_ADMIN'])]
    public function ajaxAdminAction(): ResponseInterface
    {
        // requires active admin session (admin_sid cookie) with ROLE_ADMIN
    }
}
```

Available roles
---------------

[](#available-roles)

RoleDescription`ROLE_ADMIN`Admin session user`ROLE_ADMIN_MALL`Mall admin (full rights across all subshops)Installation
------------

[](#installation)

```
composer require oxid-esales/session-authentication-component
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance80

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

107d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1374817?v=4)[oxid](/maintainers/oxid)[@OxID](https://github.com/OxID)

---

Top Contributors

[![godefroy-le-hardi](https://avatars.githubusercontent.com/u/31134636?v=4)](https://github.com/godefroy-le-hardi "godefroy-le-hardi (1 commits)")[![moritzdemmer](https://avatars.githubusercontent.com/u/56080577?v=4)](https://github.com/moritzdemmer "moritzdemmer (1 commits)")

---

Tags

securityAuthenticationOXIDsession

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oxid-esales-session-authentication-component/health.svg)

```
[![Health](https://phpackages.com/badges/oxid-esales-session-authentication-component/health.svg)](https://phpackages.com/packages/oxid-esales-session-authentication-component)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)[symfony/security-http

Symfony Security Component - HTTP Integration

1.7k177.2M393](/packages/symfony-security-http)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M400](/packages/easycorp-easyadmin-bundle)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.8k](/packages/symfony-framework-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M754](/packages/sylius-sylius)[shopware/storefront

Storefront for Shopware

674.6M247](/packages/shopware-storefront)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
