I would guess you would have to send a message telling them to login using that role. So you would then check that role in your Guard and if it fails send them to that page to login as that role.

Davide Angelocola wrote:
Hi, this is my first post on this mailing list. I'm wondering about porting a servlet/JSP webapp to REST. I've several roles this webapp and I allow the same user to have multiple roles, but only one role at once can do login. In this scenario I use the server session to store the username and role. In respect of a restful design how to implement the login/logout actions? Any idea/hint would be appreciated.

Best Regards,
-- Davide Angelocola


--
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

Reply via email to