hugoloza / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Custom Gatekeeper.canReveal() Failure Handling #415

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, when Gatekeeper.canReveal() returns false, PlaceManager's 
revealUnauthorizedPlace() is called.  This should be customizable for different 
Gatekeepers.  For example, if I have 2 Gatekeepers attached to different 
presenters, I may want one of them to redirect to login screen on failure and 
the other to a different screen.

Original issue reported on code.google.com by jeanjea...@gmail.com on 2 May 2012 at 10:11

GoogleCodeExporter commented 9 years ago

Original comment by bjoern.m...@gmail.com on 11 May 2012 at 6:37

GoogleCodeExporter commented 9 years ago
This could be enhanced, but in the meanwhile, you should do some lookup on the 
revealUnauthorizedPlace which give you the token of the place that failed to be 
revealed.

Original comment by goudreau...@gmail.com on 23 May 2012 at 2:30

GoogleCodeExporter commented 9 years ago
Yes, we definitely need a way to specify the presenter to reveal when the 
Gatekeeper.canReveal() returns false.  Preferable as an optional parameter in 
the Gatekeeper annotation.

Original comment by prt1...@gmail.com on 17 Jul 2012 at 12:49