Skip to content

funkyferdy/swiss-alpine-club-contao-login-client-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt text

SAC Login (OAuth2 client für Contao)

Diese Erweiterung für das Contao CMS ermöglicht die Implementierung des Single Sign-On Logins des Schweizerischen Alpen Clubs (SAC).

SAC Mitglieder der Sektion können sich mit ihrer Mitgliedsnummer und ihrem Passwort, welches sie auf der Webseite des SAC Zentralverbandes verwalten, im Front- sowie im Backend anmelden.

SAC Login Button Login Formular Schweizerischer Alpenclub
SAC Login SAC Login
Bei Klick auf den Login Button erfolgt die Weiterleitug zum Login Formular des Schweizerischen Alpenclubs Login Formular Schweizerischer Alpenclub

Abhängigkeiten

Die Erweiterung basiert auf:

Hilfe/HowTo

The PHP League Oauth2 client

Konfiguration

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

sac_oauth2_client:
  backend:
    hide_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
    client_auth_endpoint_frontend: '### Set your frontend login route ###'
    client_auth_endpoint_backend: '### Set your backend login route ###'
    
    # defaults
    debug_mode: false # Log resource owners details (Contao backend log)
    auth_provider_endpoint_authorize: 'https://ids01.sac-cas.ch:443/oauth2/authorize'
    auth_provider_endpoint_token: 'https://ids01.sac-cas.ch:443/oauth2/token'
    auth_provider_endpoint_userinfo: 'https://ids01.sac-cas.ch:443/oauth2/userinfo'
    auth_provider_endpoint_logout: 'https://ids01.sac-cas.ch/oidc/logout'

    # optional frontend user settings
    add_to_frontend_user_groups:
      - 9 # Standard Mitgliedergruppe
    autocreate_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_sac_section_ids:
      - 4250 # Stammsektion
      - 4251 # OG Surental
      - 4252 # OG Napf
      - 4253 # OG Hochdorf
      - 4254 # OG Rigi

    # optional backend user settings
    autocreate_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_sac_section_ids:
      - 4250 # Stammsektion
      - 4251 # OG Surental
      - 4252 # OG Napf
      - 4253 # OG Hochdorf
      - 4254 # OG Rigi

About

Swiss Alpine Club SSO Login Client for Contao

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 90.4%
  • Batchfile 5.0%
  • SCSS 2.9%
  • JavaScript 1.7%