• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to integrate Spring WebFlow and Spring Security?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have built a nice Spring WebFlow. Then I added Spring Security into the app, which works fine in itself.

But if the security traps a requirement for the user to log in during the flow, then the details from the flow are lost. I want the user to be in the flow, to log in (either because they click login or Security traps a need to them to be authorised) and then continue with the flow after they have logged in. I also need the log in page to have access to the variables from the flow.

Can someone from the ranch community advise - what is a strategy?

Here is what I have tried
- putting the flows variables into applicationScope (but dont see these variables inside the login jsp.)
- putting login onto a webflow transition (on the hope that the login form would then be perceived to be within the flow). but the "login" event does not trigger so they are not taken to the login page. The flows xml file looks like this

<view-state id="home">
<on-entry> ....</on-entry>
<transition on="login" to="home">
<secured attributes="ROLE_USER"/>
<evaluate expression="..."/>
</transition>
</view-state>

and anyway, this does not solve the Use Case where Security is triggered to ask for the login.

 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic