I am using Authentication plugin for Grails. It needs a flash variable to be set to do redirection after successful login.
I set the flash variable in various places in controller, in view just before authentication service does it's work, but somehow flash variables are being cleared on the way.
I can't manage to find a way to spot the request that clears flash scope. I am asking some advice on how to find the point that flash is being cleared so I may have better idea on what to do.
Of course answers on how to fix the problem with Authentication plugin are even more appreciated.