markocupic / swiss-alpine-club-contao-login-client-bundle
Contao SSO Login Client for OIDC Server at Swiss Alpine Club
Installs: 71
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Type:contao-bundle
Requires
- php: ^7.3
- contao/core-bundle: ^4.9,<5.0
- league/oauth2-client: ^2.4
- markocupic/sac-event-tool-bundle: *
Requires (Dev)
- contao/easy-coding-standard: ^3.0
- contao/manager-plugin: ^2.3
- contao/test-case: ^4.0
- phpunit/phpunit: ^8.4
- symfony/http-client: 4.4.*
- symfony/phpunit-bridge: 4.4.*
README
Diese Erweiterung ermöglicht die Implementierung des Single Sign-On Logins des Schweizerischen Alpen Clubs (SAC) für Contao CMS.
Die Erweiterung basiert auf markocupic/sac-event-tool_bundle und thephpleague/oauth2-client. Vor der Inbetriebnahme müssen mehrere Parameter in der config/parameters.yml getätigt werden.
parameters:
# some other settings
markocupic_sac_sso_login:
oidc:
# required
client_id: '*******'
client_secret: '**********'
# defaults
url_authorize: 'https://ids01.sac-cas.ch:443/oauth2/authorize'
url_access_token: 'https://ids01.sac-cas.ch:443/oauth2/token'
resource_owner_details: 'https://ids01.sac-cas.ch:443/oauth2/userinfo'
redirect_uri_frontend: 'https://sac-pilatus.ch/ssoauth/frontend'
redirect_uri_backend: 'https://sac-pilatus.ch/ssoauth/backend'
url_logout: 'https://ids01.sac-cas.ch/oidc/logout'
enable_backend_sso: true
# optional
add_to_frontend_user_groups:
- 9 # SAC Sektion Pilatus Standard Mitgliedergruppe
autocreate_frontend_user: false
allow_frontend_login_to_sac_members_only: true
allow_frontend_login_to_predefined_section_members_only: true
allowed_frontend_sac_section_ids:
- 4250 # Stammsektion
- 4251 # OG Surental
- 4252 # OG Napf
- 4253 # OG Hochdorf
- 4254 # OG Rigi
autocreate_backend_user: false
allow_backend_login_to_sac_members_only: true
allow_backend_login_to_predefined_section_members_only: true
allowed_backend_sac_section_ids:
- 4250 # Stammsektion
- 4251 # OG Surental
- 4252 # OG Napf
- 4253 # OG Hochdorf
- 4254 # OG Rigi