PHPackages                             con4gis/oauth - 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. con4gis/oauth

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

con4gis/oauth
=============

Authentication bundle with functionality needed for authenticating with OpenID Connect

v2.0.1(3mo ago)01012[1 issues](https://github.com/Kuestenschmiede/OAuthBundle/issues)LGPL-3.0-or-laterPHPPHP ^7.4 || ^8.0

Since Jan 17Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/Kuestenschmiede/OAuthBundle)[ Packagist](https://packagist.org/packages/con4gis/oauth)[ Docs](https://con4gis.org)[ RSS](/packages/con4gis-oauth/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)Dependencies (14)Versions (6)Used By (0)

OAuthBundle
===========

[](#oauthbundle)

Important

We are not actively developing this con4gis module. Further development orders are possible.

This bundle adds OAuth Authentication functionality for Contao frontend users. In addition, you can also make the entire frontend accessible exclusively via an upstream login.

Currently this bundle only supports OpenID Connect Servers.

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

[](#installation)

### Step 1: Install the bundle

[](#step-1-install-the-bundle)

You can install the bundle using composer or the contao manager. For composer use the following command:

```
$ composer require con4gis/oauth
```

In the contao manager, you can find the bundle under "con4gis/oauth".

### Step 2: Configure the bundle

[](#step-2-configure-the-bundle)

After the installation you need to configure the app under config/config.yml.

**OpenID-Connect:**

```
parameters:
  con4gis.oauth.oidc.client_id: "### The client id for the openid connect server ###"
  con4gis.oauth.oidc.client_secret: "### The client secret for the openid connect server ###"
  con4gis.oauth.oidc.auth_server_url: "### The authentication url for the openid connect server ###"
  con4gis.oauth.oidc.realm: "### The realm for the openid connect server ####"
  # Uncomment the following option if you want to access the entire frontend via an upstream login
  #con4gis.oauth.oidc.secured: "true"
```

### Step 3: Clear the cache

[](#step-3-clear-the-cache)

You can now clear the cache via the contao manager or the contao console:

```
$ php vendor/bin/contao-console cache:clear -e prod
```

### Step 4: Configure the login module

[](#step-4-configure-the-login-module)

This step is only necessary if you don't make the entire frontend accessible via an upstream login.

In the contao backend you can create the new OAuth login module. There you can set up, which groups will be assigned to new logins and which user data will be stored in the contao database. The username is saved by default.

The module creates a new login button, that you can place anywhere on your site.

Callback URLs
-------------

[](#callback-urls)

To be able to login successfully you need to allow the following callback urls in your OAuth Application:

OAuth ProviderCallback URLOpenID Connect

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance81

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.3% 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 ~381 days

Total

5

Last Release

103d ago

Major Versions

v1.0.2 → v2.0.02025-11-25

PHP version history (3 changes)v1.0.0PHP ^7.4|^8.0

v1.0.1PHP &gt;=7.4

v1.0.2PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/02221ea4af1d10e1e1ef091b8eb768cc8ab864fd1cbc8f969c1b249ec9543282?d=identicon)[coastforge](/maintainers/coastforge)

---

Top Contributors

[![maltedv](https://avatars.githubusercontent.com/u/49306981?v=4)](https://github.com/maltedv "maltedv (20 commits)")[![coastforge-mei](https://avatars.githubusercontent.com/u/1382479?v=4)](https://github.com/coastforge-mei "coastforge-mei (9 commits)")[![croastforge](https://avatars.githubusercontent.com/u/162104287?v=4)](https://github.com/croastforge "croastforge (6 commits)")[![coastforge-rro](https://avatars.githubusercontent.com/u/35964536?v=4)](https://github.com/coastforge-rro "coastforge-rro (4 commits)")

---

Tags

AuthenticationoauthOpenIdcontaoOpenID Connectoidccon4giscon4gis\_oauthOAuthBundle

### Embed Badge

![Health badge](/badges/con4gis-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/con4gis-oauth/health.svg)](https://phpackages.com/packages/con4gis-oauth)
```

###  Alternatives

[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5018.2k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[facile-it/php-openid-client

OpenID (OIDC) Client

44663.0k13](/packages/facile-it-php-openid-client)[authlete/authlete-laravel

Authlete Library for Laravel

4226.4k](/packages/authlete-authlete-laravel)

PHPackages © 2026

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