What is a common use case for using Spring Securityâ€™s OAuth 2.0 support in Java applications?
Spring Securityâ€™s OAuth 2.0 support is useful for securing APIs by providing fine-grained access control based on user roles and permissions.
Thatâ€™s partially correct. OAuth 2.0 is more focused on authorization for third-party applications, while access control is typically handled by roles and permissions within your own application.
Can you describe how OAuth 2.0 authorization grants work, and how they control access to resources?