2011/2/14 David Becker <[email protected]>:
> Am 14.02.2011 11:55, schrieb George Niculae:
>>
>> On Mon, Feb 14, 2011 at 12:47 PM, David Becker
>> <[email protected]>  wrote:
>>>
>>> Er, right, forgot to mention that I added the validation code from the
>>> Border there and have it set the callback to the current page.
>>
>> Can you share relevant code - will be easier to figure out what's wrong...
>>
>> George
>> _______________________________________________
>> sipx-dev mailing list
>> [email protected]
>> List Archive: http://list.sipfoundry.org/archive/sipx-dev/
>
> Attached. The UserHandler is the superclass I use for the pages (voicemail
> page included as an example), it redirects to the login page but after the
> login is sent the user is sent to the regular user homepage, not the one he
> came from.

Oh,ok, now I got it - yes, it's a matter of Acegi, see
authenticationProcessingFilter bean defined in security.beans.xml:
 <bean id="authenticationProcessingFilter"
class="org.sipfoundry.sipxconfig.security.SipxAuthenticationProcessingFilter">
    <property name="authenticationManager" ref="authenticationManager" />
    <property name="authenticationFailureUrl"
value="/LoginPage.html?error=badCredentials" />
    <property name="defaultTargetUrl" value="/Home.html" />
  </bean>

It will always redirect to Home.html after a successful login.

At a first thought - what can be done here is to add a new pattern to
filterChainProxy bean, something as:
/micro-browser/.*=httpSessionContextIntegrationFilter,microBrowserAuthenticationProcessingFilter,digestExceptionTranslationFilter
just after /(TestPage|FirstUser).html one (so all the micro-browser
pages will have to be referred as something like
https://localhost:8443/sipxconfig/micro-browser/Voicemail.html)

Then define your own microBrowserAuthenticationProcessingFilter
(identical with authenticationProcessingFilter but will redirect to
your desired page e.g. micro-browser/Home.html).

George
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to