{"action":"created","issue":{"url":"https://api.github.com/repos/lightSAML/SpBundle/issues/25","repository_url":"https://api.github.com/repos/lightSAML/SpBundle","labels_url":"https://api.github.com/repos/lightSAML/SpBundle/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/lightSAML/SpBundle/issues/25/comments","events_url":"https://api.github.com/repos/lightSAML/SpBundle/issues/25/events","html_url":"https://github.com/lightSAML/SpBundle/issues/25","id":170161227,"number":25,"title":"Symfony 2.8 security setup with LightSamlPhp Bundle - Multiple Login Methods","user":{"login":"Jaswinder00","id":1724142,"avatar_url":"https://avatars.githubusercontent.com/u/1724142?v=3","gravatar_id":"","url":"https://api.github.com/users/Jaswinder00","html_url":"https://github.com/Jaswinder00","followers_url":"https://api.github.com/users/Jaswinder00/followers","following_url":"https://api.github.com/users/Jaswinder00/following{/other_user}","gists_url":"https://api.github.com/users/Jaswinder00/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaswinder00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaswinder00/subscriptions","organizations_url":"https://api.github.com/users/Jaswinder00/orgs","repos_url":"https://api.github.com/users/Jaswinder00/repos","events_url":"https://api.github.com/users/Jaswinder00/events{/privacy}","received_events_url":"https://api.github.com/users/Jaswinder00/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-09T13:07:51Z","updated_at":"2016-09-20T12:09:45Z","closed_at":null,"body":"Hi, I am running into an issue with setting up Authentication in Symfony 2.8 with Saml plugin (https://www.lightsaml.com/SP-Bundle/Getting-started/).\r\nProblem:\r\nI want to able to login via SAML and via going to admin page. The /admin/login page works fine, I see the user authenticated from the database. However, when I try to go through the Saml process, I always land on the /discovery page. When I see the logs, I do see the user is authenticated, but the page is redirected to **discovery** page. So, I think I have something not correctly configured in the security settings. Please let me know if you can help.\r\n\r\nHere are the settings from \r\nconfig/security.yml file:\r\n\r\n```\r\nfirewalls:\r\n        dev:\r\n            pattern: ^/(_(profiler|wdt)|css|images|js)/\r\n            security: false\r\n            \r\n        login_firewall:\r\n            pattern: ^/saml/login$\r\n            anonymous: ~\r\n        discovery_firewall:\r\n            pattern: ^/saml/discovery$\r\n            anonymous: ~\r\n                  \r\n        secured_area:\r\n            pattern:   ^/\r\n            anonymous: ~\r\n            light_saml_sp:\r\n                provider: db_provider    # user provider name configured in step 9\r\n                #user_creator: user_creator  # name of the user creator service created in step 10\r\n                login_path: /saml/login\r\n                check_path: /saml/login_check\r\n                default_target_path: /profile\r\n          \r\n            form_login:\r\n                login_path: /admin/login\r\n                check_path: /admin/login_check\r\n                default_target_path: /\r\n                remember_me: true\r\n            logout:\r\n                path:   /logout\r\n                target: /\r\n                \r\n\r\n            # activate different ways to authenticate\r\n\r\n            # http_basic: ~\r\n            # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate\r\n\r\n            # form_login: ~\r\n            # http://symfony.com/doc/current/cookbook/security/form_login_setup.html\r\n            \r\n    access_control:\r\n        - { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY }\r\n        - { path: ^/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }\r\n        - { path: ^/admin/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }        \r\n        - { path: ^/profile, roles: ROLE_USER }\r\n```"},"comment":{"url":"https://api.github.com/repos/lightSAML/SpBundle/issues/comments/248282821","html_url":"https://github.com/lightSAML/SpBundle/issues/25#issuecomment-248282821","issue_url":"https://api.github.com/repos/lightSAML/SpBundle/issues/25","id":248282821,"user":{"login":"Jaswinder00","id":1724142,"avatar_url":"https://avatars.githubusercontent.com/u/1724142?v=3","gravatar_id":"","url":"https://api.github.com/users/Jaswinder00","html_url":"https://github.com/Jaswinder00","followers_url":"https://api.github.com/users/Jaswinder00/followers","following_url":"https://api.github.com/users/Jaswinder00/following{/other_user}","gists_url":"https://api.github.com/users/Jaswinder00/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaswinder00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaswinder00/subscriptions","organizations_url":"https://api.github.com/users/Jaswinder00/orgs","repos_url":"https://api.github.com/users/Jaswinder00/repos","events_url":"https://api.github.com/users/Jaswinder00/events{/privacy}","received_events_url":"https://api.github.com/users/Jaswinder00/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T12:09:45Z","updated_at":"2016-09-20T12:09:45Z","body":"Yes. I got it resolved. Please close this issue.\n\nOn Tuesday, September 20, 2016, Milos Tomic <notifications@github.com>\nwrote:\n\n> @Jaswinder00 <https://github.com/Jaswinder00> have you managed to make it\n> work? Can we close the issue or there are some new insights?\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/lightSAML/SpBundle/issues/25#issuecomment-248222867>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABpO7sUHVm1sfs3gDN8TMyPmvAb52lNdks5qr4h7gaJpZM4JgDfd>\n> .\n>\n"}}
{"actor":{"display_login":"Jaswinder00"}}