Hi Lukas, You can configure your spring security filters in magnolia's filter chain. I would put them near the front of the chain.
You will then want to create a magnolia "login handler" which takes the information from the spring security context and uses it to initialize a magnolia user. See the login filter and the existing login handlers. Finally you might want a "securityCallback" filter - otherwise if the user does not have sufficient permissions for an action (401, 403) the magnolia login form is shown. If you write your own securityCallback implementation you can handle it differently and redirect to a 401 error page or some other login-page. Regards from Vienna, Richard > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:user-list-owner@magnolia- > cms.com] Im Auftrag von lukast (via Magnolia Forums) > Gesendet: Mittwoch, 11. Juni 2014 08:43 > An: Magnolia User List > Betreff: [magnolia-user] Magnolia + Spring Security - howto bypass login > form > > Hi, > > I'm new to magnolia, but I have to integrate it with Spring Security. > Currently > I have Spring Security configuration that auhenticate users using some > external data source. After successfull authentication I have user's login > and > I have to somehow login this user to magnolia bypassing magnolia login > screen and password verification. User (and its priviledgles) is already known > by magnolia. It has to only be logged in. > > Could you give me some step by step "tips" how to achieve this ? > > I could register Spring Security Filter in magnolia's web.xml, but as far as i > know magnolia already has its own mechanizm of filters. Supposing that I > register Spring Sec. filter before magnolia's filters how to tell magnolia > that > user with login X is already authenticated ? > > Thanks in advance. > > -- > Context is everything: http://forum.magnolia- > cms.com/forum/thread.html?threadId=02ec5611-2324-49f8-b936- > 171e1d2e6cf6 > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing- > lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
