External authentication: MVC controller as alternative to servlet
Daniel Lutz
daniel.lutz at switch.ch
Thu Sep 17 11:42:54 EDT 2015
Cantor, Scott schrieb am 17.09.15 um 17:27:
> My concern was mostly that WebFlow is already MVC-based and is living inside
> its own dispatcher and we can't interfere with that.
In think that this solution doesn't interfere with WebFlow.
To my knowledge, there's the central dispatcher
org.springframework.web.servlet.DispatcherServlet, mapped
at /idp/status and /idp/profile/*. This dispatcher will
first let FlowHandlerMapping find a web flow. If no suitable
web flow can be found, the next handlers will be tried,
i.e BeanNameUrlHandlerMapping and DefaultAnnotationHandlerMapping,
and in our case additionally SimpleUrlHandlerMapping. So, our
controller is called only if no other mapping could be found.
(But I'm not very experienced in Spring to be sure enough.)
BTW, why are BeanNameUrlHandlerMapping and DefaultAnnotationHandlerMapping
configured at all? Are they used by the IdP itself? Or are they provided
so that extension modules could use them?
- Daniel
More information about the dev
mailing list