Firebase and Spring Boot Based Role Management and Authorization

In the previous post we configured spring boot security with firebase to seamlessly authenticate rest api ( https://thepro.io/post/firebase-authentication-for-spring-boot-rest-api-5V ) . In this post, we will restrict access to resources based on firebase roles. We are going to utilise firebase’s claims object inside UserRecord class to store roles, which is its actual purpose as per firebase documentation. To … Read more