https://medium.com/@hypercode.software/implementing-sign-in-with-apple-on-android-using-spring-boot-and-react-a-step-by-step-guide-ccff7ec11e54 is quite nice, but does everything by hand.
you can also use spring security with its oath2/openidconnect support.
For that follow for example https://www.baeldung.com/spring-security-openid-connect Also interesting to ann apple and google login: