Whenever a change applications, I need CAS to fetch a new set of roles from the server (the set of roles for that specific application). Is there a way to do so?
As it is today, it gets the roles for the first application (lets name it A) and when I access the application B I can only see the roles for application A, which gives me a 403 (access denied) error code.
Ex:
Product A has the roles: ADMIN, MANAGER and STAFF.
Product B has the roles: ADMIN, BACKOFFICE, FRONTOFFICE.
When I access Product A first CAS detects that the user is accessing int through Product A and puts its three roles in session and everything goes fine for Product A.
After that I access product B and CAS sees that I have a valid ticket and grants me access to Product B, but instead of fetching roles again for product B (ADMIN, BACKOFFICE and FRONTOFFICE), it keeps the roles from Produca A (ADMIN, MANAGER, STAFF).