{"action":"created","issue":{"url":"https://api.github.com/repos/ozoneplatform/owf-framework/issues/78","repository_url":"https://api.github.com/repos/ozoneplatform/owf-framework","labels_url":"https://api.github.com/repos/ozoneplatform/owf-framework/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/ozoneplatform/owf-framework/issues/78/comments","events_url":"https://api.github.com/repos/ozoneplatform/owf-framework/issues/78/events","html_url":"https://github.com/ozoneplatform/owf-framework/issues/78","id":154531422,"number":78,"title":"Using a Web Service for Authentication","user":{"login":"xtimeconsumer","id":19331382,"avatar_url":"https://avatars.githubusercontent.com/u/19331382?v=3","gravatar_id":"","url":"https://api.github.com/users/xtimeconsumer","html_url":"https://github.com/xtimeconsumer","followers_url":"https://api.github.com/users/xtimeconsumer/followers","following_url":"https://api.github.com/users/xtimeconsumer/following{/other_user}","gists_url":"https://api.github.com/users/xtimeconsumer/gists{/gist_id}","starred_url":"https://api.github.com/users/xtimeconsumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtimeconsumer/subscriptions","organizations_url":"https://api.github.com/users/xtimeconsumer/orgs","repos_url":"https://api.github.com/users/xtimeconsumer/repos","events_url":"https://api.github.com/users/xtimeconsumer/events{/privacy}","received_events_url":"https://api.github.com/users/xtimeconsumer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-12T16:55:17Z","updated_at":"2016-06-28T15:39:17Z","closed_at":"2016-06-28T15:39:17Z","body":"Is it possible to use a web service for authentication? I wrote a custom spring security authenticator based on the answer to this stack overflow question \r\n\r\nhttp://stackoverflow.com/questions/28210879/authenticate-user-with-spring-security-based-on-remote-authentication-response?lq=1\r\n\r\nI edited my OWF Security Context file to include \r\n\r\n    <sec:http realm=\"OWF\" auto-config=\"false\">\r\n        <sec:access-denied-handler error-page=\"/denied.gsp\" />        \r\n        <sec:intercept-url pattern=\"/administration/monitoring\" access=\"ROLE_ADMIN\" />\r\n        <sec:intercept-url pattern=\"/admin/**\" access=\"ROLE_ADMIN\" requires-channel=\"https\" />\r\n        <sec:intercept-url pattern=\"/**\" access=\"ROLE_USER,ROLE_ADMIN\" requires-channel=\"https\" />\r\n        <sec:custom-filter ref=\"ozoneLogoutFilter\" position=\"LOGOUT_FILTER\" />\r\n        <sec:custom-filter ref=\"ozoneCookieFilter\" before=\"ANONYMOUS_FILTER\" />\r\n        <sec:custom-filter ref=\"concurrencyFilter\" position=\"CONCURRENT_SESSION_FILTER\" />\r\n        <sec:port-mappings>\r\n            <sec:port-mapping http=\"${ozone.unsecurePort}\" https=\"${ozone.port}\"/>\r\n        </sec:port-mappings>\r\n        <sec:session-management session-authentication-strategy-ref=\"concurrentSessionControlStrategy\"/>\r\n     </sec:http>\r\n\r\n     <sec:authentication-manager alias=\"authenticationManager\">\r\n         <sec:authentication-provider ref=\"webServiceProvider\" />\r\n     </sec:authentication-manager>\r\n\r\n\r\nand a resource file that has this \r\n\r\n    <bean id=\"authenticationManager\" class=\"org.springframework.security.providers.ProviderManager\">\r\n         <property name=\"providers\">\r\n\t\t\t<list><ref local=\"webServiceProvider\" /></list>\r\n\t\t</property>\r\n\t</bean>`\r\n\r\n    <bean id=\"webServiceProvider\" class=\"ozone.securitysample.authentication.rest.WebServiceAuthenticationProvider\" />`\r\n\r\n\r\nOWF does not seem to pick up the bean correctly and I get the following in the logs:\r\n\r\n\r\n`Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: No AuthenticationEntryPoint could be established. Please make sure you have a login mechanism configured through the namespace (such as form-login) or specify a custom AuthenticationEntryPoint with the 'entry-point-ref' attribute `\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ozoneplatform/owf-framework/issues/comments/229089057","html_url":"https://github.com/ozoneplatform/owf-framework/issues/78#issuecomment-229089057","issue_url":"https://api.github.com/repos/ozoneplatform/owf-framework/issues/78","id":229089057,"user":{"login":"rpokorny","id":3630091,"avatar_url":"https://avatars.githubusercontent.com/u/3630091?v=3","gravatar_id":"","url":"https://api.github.com/users/rpokorny","html_url":"https://github.com/rpokorny","followers_url":"https://api.github.com/users/rpokorny/followers","following_url":"https://api.github.com/users/rpokorny/following{/other_user}","gists_url":"https://api.github.com/users/rpokorny/gists{/gist_id}","starred_url":"https://api.github.com/users/rpokorny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpokorny/subscriptions","organizations_url":"https://api.github.com/users/rpokorny/orgs","repos_url":"https://api.github.com/users/rpokorny/repos","events_url":"https://api.github.com/users/rpokorny/events{/privacy}","received_events_url":"https://api.github.com/users/rpokorny/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T15:39:17Z","updated_at":"2016-06-28T15:39:17Z","body":"Please ask support questions like this on the google group (https://groups.google.com/forum/#!forum/ozoneplatform-users), and reserve github tickets for the reporting of bugs and feature requests."}}
{"actor":{"display_login":"rpokorny"}}