PHPackages                             markocupic/contao-github-login - 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. markocupic/contao-github-login

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

markocupic/contao-github-login
==============================

Contao GitHub Login

1.1.3(3mo ago)157GPL-3.0-or-laterPHPPHP ^8.2CI passing

Since Jan 13Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/markocupic/contao-github-login)[ Packagist](https://packagist.org/packages/markocupic/contao-github-login)[ RSS](/packages/markocupic-contao-github-login/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (17)Versions (10)Used By (0)

[![Logo Marko Cupic](docs/logo.png)](docs/logo.png)

Contao GitHub Login
===================

[](#contao-github-login)

This extension adds a GitHub login button to Contao, both in the frontend and in the backend. Before/after installation you have to register a GitHub App and save the `client_id` and `client_secret` in your .env file. To activate or deactivate the application, the configuration file *config.yaml* must be edited under `config/config.yaml`.

**Frontend Module**

To display the login button in the frontend, create a member login module and select the *mod\_login\_github* template.

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

[](#installation)

`composer require markocupic/contao-github-login`

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

[](#configuration)

```
# config/config.yaml
markocupic_contao_oauth2_client:
    disable_contao_core_backend_login: false  # Disable original Contao backend login
    enable_csrf_token_check: true

markocupic_contao_github_login:
    contao_oauth2_clients:
        github_backend:
            enable_login: true
            client_id: '%env(CONTAO_GITHUB_LOGIN_CLIENT_ID)%'
            client_secret: '%env(CONTAO_GITHUB_LOGIN_CLIENT_SECRET)%'

        github_frontend:
            enable_login: true
            client_id: '%env(CONTAO_GITHUB_LOGIN_CLIENT_ID)%'
            client_secret: '%env(CONTAO_GITHUB_LOGIN_CLIENT_SECRET)%'
```

```
# .env
CONTAO_GITHUB_LOGIN_CLIENT_ID=6337hdhks7d62277sd
CONTAO_GITHUB_LOGIN_CLIENT_SECRET=738gdsksd893723723932023023932

```

Register GitHub App
-------------------

[](#register-github-app)

1. Log in to your GitHub Account and go to [GitHub Developer Settings](https://github.com/settings/apps) to enter the **callback URLS** and get your GitHub **client\_id** and **client\_secret**.
2. Register a new GitHub App.
3. Add a name for your **GitHub app**.
4. Add the **homepage URL**: `https://my-page.ch`
5. Add the first **callback URL**: `https://my-page.ch/_oauth2_login/github_backend/backend` for the Backend Login.
6. Add the second **callback URL**: `https://my-page.ch/_oauth2_login/github_frontend/frontend` for the Frontend Login.
7. Save your settings.
8. Generate the **client secret**
9. In a next step write the **client\_id** and the **client\_secret** to your .env file.
10. Click **Permissions &amp; events** in the navigation on the left.
11. Open **Account permissions** and select **Read-only** access under **Email addresses**

**Contao Backend****GitHub App Settings****GitHub App Permissions**[![Contao Backend GitHub Login](docs/img/contao_backend_login.png)](docs/img/contao_backend_login.png)[![GitHub App Settings](docs/img/github_app_general.png)](docs/img/github_app_general.png)[![GitHub App Permissions](docs/img/github_app_permissions.png)](docs/img/github_app_permissions.png)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance79

Regular maintenance activity

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~113 days

Recently: every ~163 days

Total

8

Last Release

111d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1525166?v=4)[Marko Cupic](/maintainers/markocupic)[@markocupic](https://github.com/markocupic)

---

Top Contributors

[![markocupic](https://avatars.githubusercontent.com/u/1525166?v=4)](https://github.com/markocupic "markocupic (24 commits)")

---

Tags

oauth2githublogincontao

### Embed Badge

![Health badge](/badges/markocupic-contao-github-login/health.svg)

```
[![Health](https://phpackages.com/badges/markocupic-contao-github-login/health.svg)](https://phpackages.com/packages/markocupic-contao-github-login)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M387](/packages/easycorp-easyadmin-bundle)[sylius/sylius

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

8.5k5.9M737](/packages/sylius-sylius)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/storefront

Storefront for Shopware

684.6M237](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)

PHPackages © 2026

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