Template for a good false-positive report, formatted with Markdown:
- Server 8.9.0.43852 Developer-Edition, Scanner is the Gradle Plugin in Version 3.1.1
- Spring Boot 2.5.2 OauthClient
public ApiResponse<AccountDto> findMe(OAuth2User principal, String loggedIn)
{
if (principal.getAttribute("sub") == null)
{
throw new WebApplicationException(Status.UNAUTHORIZED);
}
if (!principal.getAttribute("sub").equals(loggedIn))
{
throw new WebApplicationException(Status.NOT_ACCEPTABLE);
}
[...]