PHPackages                             contao-id/contao-bundle - 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. contao-id/contao-bundle

ActiveContao-bundle[Authentication &amp; Authorization](/categories/authentication)

contao-id/contao-bundle
=======================

This bundle provides OAuth2 authentication with the contao.id service

1.3.2(2mo ago)235.2k↓19.6%1[1 issues](https://github.com/contao-id/contao-bundle/issues)MITPHPPHP ^8.2CI passing

Since Jan 17Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/contao-id/contao-bundle)[ Packagist](https://packagist.org/packages/contao-id/contao-bundle)[ Docs](https://contao.id)[ RSS](/packages/contao-id-contao-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (31)Versions (22)Used By (0)

contao.id/contao-bundle
=======================

[](#contaoidcontao-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/265df21b321ea5aac6c2dd19146f12f91553bffec6a8faf204c065f920c9eb9e/68747470733a2f2f706f7365722e707567782e6f72672f636f6e74616f2d69642f636f6e74616f2d62756e646c652f76)](https://packagist.org/packages/contao-id/contao-bundle)[![Total Downloads](https://camo.githubusercontent.com/8e3aae649ff80d15474d69b961d8396c63770423d30db993798a5be3bbf5229a/68747470733a2f2f706f7365722e707567782e6f72672f636f6e74616f2d69642f636f6e74616f2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/contao-id/contao-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/8b888af7907ea4e99a8c26120f07a060749d26454d3f069e06c92b1c49faf4cc/68747470733a2f2f706f7365722e707567782e6f72672f636f6e74616f2d69642f636f6e74616f2d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/contao-id/contao-bundle)[![License](https://camo.githubusercontent.com/1353851f3b25ea042c98d38d7de4ba8fe9f61a95f371b9edfb86750047c70626/68747470733a2f2f706f7365722e707567782e6f72672f636f6e74616f2d69642f636f6e74616f2d62756e646c652f6c6963656e7365)](https://packagist.org/packages/contao-id/contao-bundle)[![PHP Version Require](https://camo.githubusercontent.com/5912ee775d6702fcbb737d85caa11f362a0cf6d734e054cfcec8159c16c6dd44/68747470733a2f2f706f7365722e707567782e6f72672f636f6e74616f2d69642f636f6e74616f2d62756e646c652f726571756972652f706870)](https://packagist.org/packages/contao-id/contao-bundle)

Installation
============

[](#installation)

By Contao Manager
-----------------

[](#by-contao-manager)

See

By Composer
-----------

[](#by-composer)

`composer require contao-id/contao-bundle`

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

[](#configuration)

### `.env.local`

[](#envlocal)

Copy the configuration values (provided by the **contao.id** application backend) and add them to the `.env.local`:

⚠️ If you don't already have a `.env` file, create one and add it there.

```
# contao.id
CONTAO_ID_IDENTIFIER=56b2f1405da206fc08896dc2b26506db
CONTAO_ID_SECRET=20794a680517dc01abfca8d8c134569e9f56ac34bdd6b4f8da656321731181c39f7a4378602fef43b313b23d9c523f1007c8acab2e26141bb748a4d664256ebe

```

[![config-dialog](https://private-user-images.githubusercontent.com/754921/374560369-5d2fcdf8-815f-49ae-81d7-59b7c98d6a41.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQzNjM2NTQsIm5iZiI6MTc3NDM2MzM1NCwicGF0aCI6Ii83NTQ5MjEvMzc0NTYwMzY5LTVkMmZjZGY4LTgxNWYtNDlhZS04MWQ3LTU5YjdjOThkNmE0MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNFQxNDQyMzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZGUzZGQ2NjM5MTQwNmI3YThiOTY3YTUyYWUyMGNjOGUyMDczODA1MTQwOGFhM2IzOWZlOGUzYjQzMjMxMWYwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.OIWfL6-A5c6DW9qJsn_xtaT-IYEWP_6IAUcdhCp2R4w)](https://private-user-images.githubusercontent.com/754921/374560369-5d2fcdf8-815f-49ae-81d7-59b7c98d6a41.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQzNjM2NTQsIm5iZiI6MTc3NDM2MzM1NCwicGF0aCI6Ii83NTQ5MjEvMzc0NTYwMzY5LTVkMmZjZGY4LTgxNWYtNDlhZS04MWQ3LTU5YjdjOThkNmE0MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNFQxNDQyMzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZGUzZGQ2NjM5MTQwNmI3YThiOTY3YTUyYWUyMGNjOGUyMDczODA1MTQwOGFhM2IzOWZlOGUzYjQzMjMxMWYwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.OIWfL6-A5c6DW9qJsn_xtaT-IYEWP_6IAUcdhCp2R4w)

### `config/security.yaml`

[](#configsecurityyaml)

```
contao_backend:
    [...]

    entry_point: contao_login

    oauth:
        resource_owners:
            contao_id: "/contao/login/contao_id"
        login_path: /contao/login
        default_target_path: /contao
        use_forward: false
        failure_path: /contao/login

        oauth_user_provider:
            service: contao_id_contao.security.user_provider

```

### `config/packages/hwi_oauth.yaml`

[](#configpackageshwi_oauthyaml)

```
hwi_oauth:
    firewall_names: [contao_backend]

    resource_owners:
        contao_id:
            type:                oauth2
            class:               HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\OAuth2ResourceOwner
            client_id:           '%contao_id_identifier%'
            client_secret:       '%contao_id_secret%'
            access_token_url:    'https://auth.contao.id/auth/token'
            authorization_url:   'https://auth.contao.id/auth/authorize'
            infos_url:           'https://auth.contao.id/api/auth/info/%contao_id_identifier%'
            scope:               'read'
            user_response_class: HWI\Bundle\OAuthBundle\OAuth\Response\PathUserResponse
            paths:
                identifier: id

```

### `config/bundles.php`

[](#configbundlesphp)

```
HWI\Bundle\OAuthBundle\HWIOAuthBundle::class => ['all' => true],
ContaoId\ContaoBundle\ContaoIdContaoBundle::class => ['all' => true],

```

### `config/routes.yaml`

[](#configroutesyaml)

```
[...]
ContaoIdContaoBundle:
    resource: "@ContaoIdContaoBundle/config/routes.yaml"

```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance77

Regular maintenance activity

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 75.4% 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 ~39 days

Recently: every ~125 days

Total

21

Last Release

66d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/87bf1d07a851471e5d0ba2052e6a7a78d6313378214087a2919ff9979656ad0b?d=identicon)[bytehead](/maintainers/bytehead)

![](https://www.gravatar.com/avatar/851cd6cc31c9f924bd4d61793ea7a68e24304632ccf03babf0acab6118f70758?d=identicon)[sheeep](/maintainers/sheeep)

---

Top Contributors

[![bytehead](https://avatars.githubusercontent.com/u/754921?v=4)](https://github.com/bytehead "bytehead (52 commits)")[![sheeep](https://avatars.githubusercontent.com/u/607530?v=4)](https://github.com/sheeep "sheeep (16 commits)")[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (1 commits)")

---

Tags

authenticationcontaocontao-bundleoauth2single-sign-onAuthenticationoauthsingle sign oncontaobackend

### Embed Badge

![Health badge](/badges/contao-id-contao-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/contao-id-contao-bundle/health.svg)](https://phpackages.com/packages/contao-id-contao-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao-community-alliance/dc-general

Universal data container for Contao

1578.3k86](/packages/contao-community-alliance-dc-general)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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