PHPackages                             gl-events/sylius-admin-saml-plugin - 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. gl-events/sylius-admin-saml-plugin

ActiveSylius-plugin[Authentication &amp; Authorization](/categories/authentication)

gl-events/sylius-admin-saml-plugin
==================================

SAML auth SSO plugin for Sylius.

1.1.0(2w ago)53.4k↓38%[5 PRs](https://github.com/GL-EVENTS/SyliusAdminSamlPlugin/pulls)MITPHPPHP ^8.1CI failing

Since Nov 28Pushed yesterdayCompare

[ Source](https://github.com/GL-EVENTS/SyliusAdminSamlPlugin)[ Packagist](https://packagist.org/packages/gl-events/sylius-admin-saml-plugin)[ RSS](/packages/gl-events-sylius-admin-saml-plugin/feed)WikiDiscussions 1.x Synced 2d ago

READMEChangelog (10)Dependencies (64)Versions (17)Used By (0)

GL events SyliusAdminSamlPlugin
===============================

[](#gl-events-syliusadminsamlplugin)

Features
--------

[](#features)

This plugin allow your admin users to sign in with SAML providers (Google, Azure, Okta, etc.)

 [![Form admin login](docs/login.png)](docs/login.png)

Installation
------------

[](#installation)

1. Add the bundle to your `composer.json` file:

```
   composer require gl-events/sylius-admin-saml-plugin
   composer require onelogin/php-saml
```

2. Write your Identity Provider informations in your `.env` file:

```
   SAML_IDP_ENTITY_ID=
   SAML_IDP_SSO_URL=
   SAML_IDP_SLO_URL=
   SAML_IDP_CERTIFICATE=
   SAML_IDENTIFIER_KEY=
   SAML_PROXY_VARS=false
```

3. Add your SP private key in your `.env` file (you can generate one at your project root with `openssl genpkey -algorithm RSA -out private.key`):

```
   SAML_SP_PRIVATE_KEY=
```

4. Enable or not the traditionnal sylius admin form login in your `.env` file:

```
   SYLIUS_ADMIN_LOGIN=
```

5. Add the plugin class to your `config/bundles.php` file:

```
    return [
        ...
        GlEvents\SyliusAdminSamlPlugin\GlEventsSyliusAdminSamlPlugin::class => ['all' => true],
    ];
```

6. Add default config

```
# config/packages/gl_events_saml_admin_plugin.yaml

imports:
    - { resource: "@GlEventsSyliusAdminSamlPlugin/Resources/config/config.yaml" }

```

7. Add in your `config/security.yaml` file:

```
        providers:
            saml_provider:
              id: gl_events.saml_plugin.provider.saml_user
        firewalls:
              saml:
                    pattern: ^/saml
                    stateless: true
                    custom_authenticator: gl_events.saml_plugin.security.saml_authenticator
              main:
                    lazy: true
                    provider: saml_provider
        access_control:
              - { path: "%sylius.security.admin_regex%/saml", role: ROLE_SUPER_ADMIN }
              - { path: "%sylius.security.admin_regex%/login/saml", role: PUBLIC_ACCESS }
              - { path: "%sylius.security.admin_regex%/login/saml/logout", role: PUBLIC_ACCESS }
              - { path: "%sylius.security.admin_regex%/login/saml/acs", role: PUBLIC_ACCESS }
              - { path: "%sylius.security.admin_regex%/login/saml/sls", role: PUBLIC_ACCESS }
              - { path: "%sylius.security.admin_regex%/login/saml/metadata", role: PUBLIC_ACCESS }
```

8. Add in your `config/routes.yaml` file:

```
   glevents_sylius_admin_saml_plugin:
        resource: "@GlEventsSyliusAdminSamlPlugin/Resources/config/routing.yml"
```

9. If your application runs behind a reverse proxy (load balancer, Kubernetes ingress, etc.) that terminates SSL, set `SAML_PROXY_VARS=true` in your `.env` file:

```
SAML_PROXY_VARS=true
```

This tells the `onelogin/php-saml` library to read `X-Forwarded-Proto`, `X-Forwarded-Host` and `X-Forwarded-Port` headers when building the current URL for SAML response validation. Without this, the library detects `http://` instead of `https://` and rejects the SAML response with an error like *"The response was received at http://... instead of https://..."*.

Also verify your Symfony `trusted_proxies` and `trusted_headers` settings so that `$request->getScheme()` also returns the correct scheme, see:

10. You are now ready to go ! 🚀

Credits
-------

[](#credits)

Developed by [GL Events](https://gl-events.com/).

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance98

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

Every ~51 days

Recently: every ~127 days

Total

12

Last Release

19d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49161697?v=4)[Arthur\_ELS](/maintainers/arthurels69)[@arthurels69](https://github.com/arthurels69)

---

Top Contributors

[![arthurels69](https://avatars.githubusercontent.com/u/49161697?v=4)](https://github.com/arthurels69 "arthurels69 (6 commits)")[![Gbassot118](https://avatars.githubusercontent.com/u/180548168?v=4)](https://github.com/Gbassot118 "Gbassot118 (1 commits)")

---

Tags

syliusSSOsamlsylius-plugin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gl-events-sylius-admin-saml-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/gl-events-sylius-admin-saml-plugin/health.svg)](https://phpackages.com/packages/gl-events-sylius-admin-saml-plugin)
```

###  Alternatives

[onelogin/php-saml

PHP SAML Toolkit

1.3k47.8M142](/packages/onelogin-php-saml)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

265842.7k1](/packages/codegreencreative-laravel-samlidp)[hslavich/oneloginsaml-bundle

OneLogin SAML Bundle for Symfony

1482.5M1](/packages/hslavich-oneloginsaml-bundle)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

282109.9k](/packages/scaler-tech-laravel-saml2)[humanmade/wp-simple-saml

WordPress Simple SAML plugin

123305.2k5](/packages/humanmade-wp-simple-saml)[nbgrp/onelogin-saml-bundle

OneLogin SAML Symfony Bundle

551.4M](/packages/nbgrp-onelogin-saml-bundle)

PHPackages © 2026

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