markocupic/swiss-alpine-club-contao-login-client-bundle
最新稳定版本:3.0.29
Composer 安装命令:
composer require markocupic/swiss-alpine-club-contao-login-client-bundle
包简介
Contao SSO Login Client for OIDC Server at Swiss Alpine Club
README 文档
README
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).
Siehe auch OAUTH-Dokumentation
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.
Dependencies
Die Erweiterung besitzt folgende Abhängigkeiten:
Hilfe/HowTo
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
统计信息
- 总下载量: 1.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-30


