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

ActiveContao-bundle

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

Contao GitHub Login

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

Since Jan 13Pushed 1mo 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 1mo 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

47

—

FairBetter than 93% of packages

Maintenance95

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

54d 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

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3172.5k4](/packages/terminal42-contao-node)[terminal42/notification_center

Notification Center extension for Contao Open Source CMS

68396.6k78](/packages/terminal42-notification-center)[contao-community-alliance/dc-general

Universal data container for Contao

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

MetaModels core

10155.5k68](/packages/metamodels-core)[terminal42/dcawizard

dcaWizard extension for Contao Open Source CMS

10370.7k15](/packages/terminal42-dcawizard)

PHPackages © 2026

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