You are tasked to implement dynamic role-based access control in a Spring Security application where roles and permissions can be modified at runtime. What approach and components of Spring Security would you use to fulfill this requirement?
- Use a static role-based approach since Spring Security does not support dynamic roles.
- Implement a custom RoleVoter to dynamically evaluate roles and permissions.
- Utilize Spring Security's built-in support for dynamic role-based access control.
- Use a third-party library to manage roles and permissions dynamically.
To implement dynamic role-based access control in Spring Security, you should utilize Spring Security's built-in support for dynamic role-based access control. It allows you to modify roles and permissions at runtime. The other options suggest incorrect approaches, such as using a static approach or implementing custom solutions that are not necessary when Spring Security offers this feature.
Loading...
Related Quiz
- The _____ endpoint in OAuth2 is used by the client to obtain an access token.
- When using @PostAuthorize in Spring Security, the access control decision is made after the _____ has been invoked.
- To configure a JWT token store in a Spring Boot application, you need to define a _____ bean in the configuration class.
- Which Spring Cloud component is primarily used for service discovery in a microservices architecture?
- To handle exceptions that occur during form binding, you can use the _____ method of the DataBinder class in Spring Boot.