I've been looking for a solution to this problem for weeks.
Let's say i have two firewalls :
The two firewalls are using different providers so an admin is not an instance of customer which means that an identified user can be an admin or a customer.
I'd like, on the front office (not in /admin), to provide special functionality a logged in admin but the AuthorizationChecker and the RequestMatcher are not working since they want an url that match /admin.
I need to have 2 different firewall and providers since i want my users to be able to log in as an admin or as a customer.
您应该使用角色,而不是2个不同的防火墙
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.