Load different authentication provider for certain url
I want to load different authentication providers for different urls. For example, if I have url matching "/foo/something", then load FooProvider and for "bar/something" -> BarProvider. The problem is that when I hit "bar/something" url, the sessionScope parameter (I pass it in constructor of provider) is still "foo". That means, FooProvider is loaded, but this is not what I expect.
Is there something I'm missing? Thanks in advance.
abstract class TokenAuthenticationProvider (...