I'm looking at the play20-auth module for scala:
What I am wanting to accomplish is if I user is authenticated as one
authority (NormalUser) they are redirected to one route
(routes.Message.main), but if they are authenticated as another authority
(Administrator) they are redirected to a different route
Looking at the AuthConfigImpl trait I am not sure if this should be done in
the loginSucceeded, or how that method should gain access to the users
authority, of if that should be added to the authorize method, where the
case statements should be something other than true. There are a lot of
"tailor this to fit your application" comments in the code, but I'm not
clear on how this should be tailored, and haven't found any examples which
use this module that I can dissect.
Can anyone point me in a direction of how to accomplish this, or a sample
application which uses this module?