Question
How to *reset* credentials with Consumer?
Hi,
I've been trying authentication on BlazeDS and Tomcat using "flex.messaging.security.TomcatValve".
I succeeded authentication only *once*.
I thought things goes like this,
-----
1. Consumer#setCredentials("user1", "pass1")
2. Do something.
3. Consumer#logout()
4. Consumer#setCredentials("user2", "pass2") // Relogin as different user.
5...
-----
But at "4", error occured bellow
-----
Error: Credentials cannot be set while authenticating or logging out.
at mx.messaging::Channel/setCredentials()
at mx.messaging::ChannelSet/setCredentials()
at mx.messaging::MessageAgent/setCredentials()
-----
Then I tried *without* calling Consumer#logout(), other error occured.
-----
Error: Credentials cannot be set when already authenticated. Logout must be performed before changing credentials.
at mx.messaging::Channel/setCredentials()
at mx.messaging::ChannelSet/setCredentials()
at mx.messaging::MessageAgent/setCredentials()
-----
It's completely opposite.
So how should I do?
I'm not good at Enlish but hope make sense.
Thank you.
I've been trying authentication on BlazeDS and Tomcat using "flex.messaging.security.TomcatValve".
I succeeded authentication only *once*.
I thought things goes like this,
-----
1. Consumer#setCredentials("user1", "pass1")
2. Do something.
3. Consumer#logout()
4. Consumer#setCredentials("user2", "pass2") // Relogin as different user.
5...
-----
But at "4", error occured bellow
-----
Error: Credentials cannot be set while authenticating or logging out.
at mx.messaging::Channel/setCredentials()
at mx.messaging::ChannelSet/setCredentials()
at mx.messaging::MessageAgent/setCredentials()
-----
Then I tried *without* calling Consumer#logout(), other error occured.
-----
Error: Credentials cannot be set when already authenticated. Logout must be performed before changing credentials.
at mx.messaging::Channel/setCredentials()
at mx.messaging::ChannelSet/setCredentials()
at mx.messaging::MessageAgent/setCredentials()
-----
It's completely opposite.
So how should I do?
I'm not good at Enlish but hope make sense.
Thank you.
