PHPackages                             markocupic/swiss-alpine-club-contao-login-client-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. markocupic/swiss-alpine-club-contao-login-client-bundle

ActiveContao-bundle

markocupic/swiss-alpine-club-contao-login-client-bundle
=======================================================

Contao SSO Login Client for OIDC Server at Swiss Alpine Club

3.0.29(7mo ago)41.1k↓100%3[1 PRs](https://github.com/markocupic/swiss-alpine-club-contao-login-client-bundle/pulls)MITPHPPHP ^8.3CI passing

Since Jan 30Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/markocupic/swiss-alpine-club-contao-login-client-bundle)[ Packagist](https://packagist.org/packages/markocupic/swiss-alpine-club-contao-login-client-bundle)[ RSS](/packages/markocupic-swiss-alpine-club-contao-login-client-bundle/feed)WikiDiscussions hitobito Synced 1mo ago

READMEChangelogDependencies (13)Versions (130)Used By (0)

[![Alt text](https://github.com/markocupic/markocupic/raw/main/logo.png "logo")](https://github.com/markocupic/markocupic/blob/main/logo.png)

SAC Login (OAuth2 client für Contao)
====================================

[](#sac-login-oauth2-client-für-contao)

Diese Erweiterung für das [Contao CMS](https://contao.org) ermöglicht die Implementierung des Single Sign-On Logins des [Schweizerischen Alpen Clubs (SAC)](https://www.sac-cas.ch).

Siehe auch [OAUTH-Dokumentation](https://github.com/hitobito/hitobito/blob/master/doc/developer/people/oauth.md#openid-connect-oidc)

SAC Mitglieder der Sektion können sich mit ihrer Mitgliedsnummer und ihrem Passwort, welches sie auf der Webseite des [SAC Zentralverbandes](https://www.sac-cas.ch) verwalten, im Front- sowie im Backend anmelden.

SAC Login ButtonLogin Formular Schweizerischer Alpenclub[![SAC Login](docs/img/frontend_login.png)](docs/img/frontend_login.png)[![SAC/CAS Portal](docs/img/login_form_sac_cas.png)](docs/img/login_form_sac_cas.png)Bei Klick auf den Login Button erfolgt die Weiterleitug zum Login Formular des Schweizerischen AlpenclubsLogin Formular Schweizerischer AlpenclubDependencies
------------

[](#dependencies)

Die Erweiterung besitzt folgende Abhängigkeiten:

- [contao/contao](https://github.com/contao/contao)
- [markocupic/sac-event-tool-bundle](https://github.com/markocupic/sac-event-tool-bundle)
- [thephpleague/oauth2-client](https://github.com/thephpleague/oauth2-client)
- [codefog/contao-haste](https://github.com/codefog/contao-haste)

Hilfe/HowTo
-----------

[](#hilfehowto)

[The PHP League OAuth2 client](https://oauth2-client.thephpleague.com/usage/)

Konfiguration
-------------

[](#konfiguration)

Vor der Inbetriebnahme muss die App konfiguriert werden. Erstellen Sie dazu einen neuen Abschnitt in config/config.yaml.

```
sac_oauth2_client:
  backend:
    disable_contao_login: true ### Default to false
  oidc:
    # required
    client_id: '### Get your client id form SAC Schweiz ###'
    client_secret: '### Get your client secret form SAC Schweiz ###'
    enable_backend_sso: true

    # defaults
    debug_mode: false
    client_auth_endpoint_frontend_route: 'sac_login_redirect_frontend'
    client_auth_endpoint_backend_route: 'sac_login_redirect_backend'
    debug_mode: false # Log resource owners details (Contao backend log)
    auth_provider_endpoint_authorize: 'https://sac-cas.puzzle.ch/oauth/authorizee'
    auth_provider_endpoint_token: 'https://sac-cas.puzzle.ch/oauth/token'
    auth_provider_endpoint_userinfo: 'https://sac-cas.puzzle.ch/de/oauth/profile'
    auth_provider_endpoint_discovery: 'https://sac-cas.puzzle.ch/.well-known/openid-configuration'
    auth_provider_endpoint_logout: 'https://ids01.sac-cas.ch/oidc/logout'

    # optional frontend user settings
    add_to_frontend_user_groups:
      - 9 # Standard Mitgliedergruppe
    auto_create_frontend_user: false
    allow_frontend_login_to_sac_members_only: true
    allow_frontend_login_to_predefined_section_members_only: true
    allow_frontend_login_if_contao_account_is_disabled: false # Do not allow login if contao member account is disabled or login is set to false
    allowed_frontend_roles:
        - 'Group::SektionsMitglieder::Ehrenmitglied'
        - 'Group::SektionsMitglieder::MitgliedZusatzsektion'
        - 'Group::SektionsMitglieder::Mitglied
    allowed_frontend_sac_section_ids:
      - 4250 # Stammsektion
      - 4251 # OG Surental
      - 4252 # OG Napf
      - 4253 # OG Hochdorf
      - 4254 # OG Rigi

    # optional backend user settings
    auto_create_backend_user: false
    allow_backend_login_to_sac_members_only: true
    allow_backend_login_to_predefined_section_members_only: true
    allow_backend_login_if_contao_account_is_disabled: false # Do not allow login if contao user account is disabled
    allowed_backend_roles:
        - 'Group::SektionsMitglieder::Ehrenmitglied'
        - 'Group::SektionsMitglieder::MitgliedZusatzsektion'
        - 'Group::SektionsMitglieder::Mitglied
    allowed_backend_sac_section_ids:
      - 4250 # Stammsektion
      - 4251 # OG Surental
      - 4252 # OG Napf
      - 4253 # OG Hochdorf
      - 4254 # OG Rigi

```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance73

Regular maintenance activity

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.2% 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 ~16 days

Recently: every ~40 days

Total

128

Last Release

224d ago

Major Versions

1.2.13 → 2.0.02022-06-29

1.2.28 → 2.1.282024-01-01

2.1.30 → 3.0.02024-03-16

PHP version history (8 changes)1.0PHP ^7.1

1.0.17PHP ^7.3

1.1.0PHP ^7.4

1.1.9PHP ^7.4|^8.0

1.2.13PHP ^8.0

2.1.0PHP ^8.1

2.1.24PHP ^8.2

3.0.19PHP ^8.3

### 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 (274 commits)")[![jonasmueller1](https://avatars.githubusercontent.com/u/99007003?v=4)](https://github.com/jonasmueller1 "jonasmueller1 (7 commits)")[![amenk](https://avatars.githubusercontent.com/u/1087128?v=4)](https://github.com/amenk "amenk (1 commits)")

---

Tags

SSOcontaooauth2-clientSwiss Alpine Club SACSAC Single Sign On - SSO-Login

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/markocupic-swiss-alpine-club-contao-login-client-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/markocupic-swiss-alpine-club-contao-login-client-bundle/health.svg)](https://phpackages.com/packages/markocupic-swiss-alpine-club-contao-login-client-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[codefog/contao-haste

haste extension for Contao Open Source CMS

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

dcaWizard extension for Contao Open Source CMS

10370.7k15](/packages/terminal42-dcawizard)[terminal42/notification_center

Notification Center extension for Contao Open Source CMS

68396.6k78](/packages/terminal42-notification-center)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

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

PHPackages © 2026

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