PHPackages                             desarrollo-cespi/dc-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. desarrollo-cespi/dc-saml-plugin

ActiveSymfony1-plugin

desarrollo-cespi/dc-saml-plugin
===============================

symfony plugin that provides SSO authentication and authorization using the SAML standard

08PHP

Since Dec 30Pushed 12y ago7 watchersCompare

[ Source](https://github.com/Desarrollo-CeSPI/dcSamlPlugin)[ Packagist](https://packagist.org/packages/desarrollo-cespi/dc-saml-plugin)[ RSS](/packages/desarrollo-cespi-dc-saml-plugin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

dcSamlPlugin
============

[](#dcsamlplugin)

Introduction
------------

[](#introduction)

This plugin provides SSO authentication and authorization for symfony applications based in \[SAML\].

SSO provided by Saml allow developers to concentrate in business logic delegating all authentication and authorization work to Saml Identity Manager.

The plugin installation is as simply as described here.

An other additional feature is that once a user is authenticated in one of the applications using Saml, you will be automatically authenticated in the others applications

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

[](#installation)

- Install using [Composer](http://getcomposer.org):

```
{
  "require": {
    "desarrollo-cespi/dc-saml-plugin": "dev-master"
  }
}
```

- Install from source using git
- Enable the plugin in your project configuration

```
// in config/ProjectConfiguration.class.php add:
$this->enablePlugin("dcSamlPlugin");
```

- Clear the cache

Configuration
-------------

[](#configuration)

- In your app.yml add the following configuration lines
    - Is important that you know the Login URL of Saml
    - Is important that you know the Logout URL of Saml
    - SAML server x509 Certificate

### Example

[](#example)

```
all:
  .....
  dc_saml_plugin:
  # Saml Server settings
    login_url: http://localhost/simplesaml/saml2/idp/SSOService.php
    logout_url: http://localhost/simplesaml/saml2/idp/initSLO.php?RelayState=
    certificate:  # if you have a file with the saml certificate called saml.cert

    name_identifier_format: "urn:oasis:names:tc:SAML:2.0:nameid-format:persistant"
    application_issuer: application-identification-name

    # The prefix to delete from the appliction credentials.
    # If you have this credentials for your application:
       # [application-identification-name.delete_something, application-identification-name.create_something]
       # the prefix should be "application-identification-name"
    remove_permission_prefix: prefix

  # Where do you want the plugin redirects you when login or logout
    success_signin_url: @homepage
    success_signout_url: @homepage

  # This module actions are if you want to redefine them. Do not recomended
    security_check_module: dcSamlAuth
    security_check_action: securityCheck

  # In this case, the permission attributes are like
  # array("permissions" => array("permission_name" => "prefix.permission"))
    attribute_name_of_the_credential_name: permission_name
    credentials_attribute_name: permissions
```

- In your settings.yml enable `dcSamlAuth` module and change

```
enabled_modules:       [default, dcSamlAuth, .... ]
login_module:          dcSamlAuth
login_action:          signin
```

- Prepend the following routing rules in routing.yml:

```
dc_saml_signin:
  url:   /login
  param: { module: dcSamlAuth, action: signin }

dc_saml_signout:
  url:   /logout
  param: { module: dcSamlAuth, action: signout }
```

- Change the security filter: filters.yml

```
rendering: ~
security:
  class: dcSamlSecurityFilter
```

- Change the parent class of myUser.class.php:

```
class myUser extends dcSamlSecurityUser
{
}
```

- Remember that it is important to change the session\_name in factories.yml

```
all:
  storage:
    class: sfSessionStorage
    param:
      session_name: saml-test
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/657c31478cfe7e25f1b443f34fb93ca16325961d531e4f5b8aaa9bfc1e8f11f5?d=identicon)[ncuesta](/maintainers/ncuesta)

---

Top Contributors

[![ncuesta](https://avatars.githubusercontent.com/u/95592?v=4)](https://github.com/ncuesta "ncuesta (3 commits)")

### Embed Badge

![Health badge](/badges/desarrollo-cespi-dc-saml-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/desarrollo-cespi-dc-saml-plugin/health.svg)](https://phpackages.com/packages/desarrollo-cespi-dc-saml-plugin)
```

PHPackages © 2026

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