I got this error while running my Spring Boot application, although it has been working before with the same config.
org.springframework.security.authentication.AuthenticationServiceException: An error occurred while attempting to decode the Jwt: Couldn’t retrieve remote JWK set: org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found: “Not found.”
at org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationProvider.getJwt(JwtAuthenticationProvider.java:106) ~[spring-security-oauth2-resource-server-6.2.4.jar:6.2.4]
okta:
oauth2:
issuer: https://<tenant>.auth0.com/
audience: https://<api>/
i didn’t upgrade my spring Boot or change anything