Use case : I have different user groups in my system for which i am building a common dashboard for them. All of user have different access and action privileges(ie they will see different limited information based on their level or can perform limited actions on a process). I have to keep a check on API for roles ie only authorized members can hit that api everyone else gets unauthorized error. I am not able to figure out how can i implement that using the inbuilt flowable authentication.
I tried @Preauthorize over my controllers with argument as āhasRole(āadminā)ā but even when i am logged in as fozzie, i dont get unauthorized error. Please anyone can guide me how can i do it?
The api manager runs as a proxy that does authentication and logging.
You can either add the flowable database as a datasource (never tried that) or connect them both to an ldap datasource.
You would need to change the default Spring security configuration as well to make this work.
How to do that is a question for Spring security not for Flowable.
No, i added the above code in my own spring-boot app. It worked. The problem was, sometimes grantedAuthorities was coming as āAdminā while sometimes it was coming as āadminā ie sometimes it was coming group names and sometimes group Ids. I tried printing grantedAuthorities, then only i figured out what the problem was. So for now i have added āadminā as well as āAdminā both. I still have to figure out why it was happening.