Start here. This is the direct spoken answer to practice first.
Overview
Parsing claims is not authentication; the decoder must prove that a trusted issuer created a token for this API.
I configure Spring Security as an OAuth2 Resource Server with a trusted issuer or an explicit JWK set and a JwtDecoder. The decoder verifies the signature with an allowed algorithm and key, then validates time claims such as expiry and not-before plus the expected issuer. I also validate that the audience identifies this API. A converter maps trusted scopes or claims into authorities, and failed validation produces an authentication failure before controller code runs.