authentication - Symfony2 using both CAS and login/password authentification -



authentication - Symfony2 using both CAS and login/password authentification -

i need create portal website using 2 authentication protocols.

using standard approach login / password using cas service

so, when user arrives on homepage can take 1 of these 2 authentication systems.

i not skilled in security in symfony2, have follow symfony documentation write code:

class="lang-html prettyprint-override">#security.yml security: encoders: symfony\component\security\core\user\user: plaintext role_hierarchy: role_admin: role_user role_super_admin: [role_user, role_admin, role_allowed_to_switch] firewalls: secure_area: pattern: ^/ anonymous: ~ context: form_auth form_login: login_path: /form_login check_path: /form_login_check logout: path: /logout target: /riac access_control: - { path: ^/riac/admin, roles: role_admin } providers: in_memory: memory: users: bob: { password: bob, roles: 'role_admin' } main: entity: { class: riac\homebundle\entity\login, property: username }

this 1 works fine login/password approach.

to create cas protocol have found besimplessoauthbundle, but... problems....

so have read installation documentation implement 1 , have success run lone (with no login/password protocol). implement both protocols @ 1 time have written code:

class="lang-html prettyprint-override">security: encoders: symfony\component\security\core\user\user: plaintext role_hierarchy: role_admin: role_user role_super_admin: [role_user, role_admin, role_allowed_to_switch] firewalls: cas_secure_area: pattern: ^/ anonymous: ~ context: cas_auth trusted_sso: manager: admin_sso login_action: false logout_action: false login_path: /cas_login check_path: /cas_login_check create_users: true created_users_roles: [role_user, role_admin] check_path: /form_login_check logout: path: /logout target: /riac secure_area: pattern: ^/ anonymous: ~ context: form_auth form_login: login_path: /form_login check_path: /form_login_check logout: path: /logout target: /riac access_control: - { path: ^/riac/admin, roles: role_admin } providers: in_memory: memory: users: bob: { password: bob, roles: 'role_admin' } main: entity: { class: riac\homebundle\entity\login, property: username }

but doesn't work (logout problem, login_check not found, difficulty identify method use).

so think not best methodology, don't know how this. can help me please?

symfony2 authentication login cas

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -