I am working in Spring-boot and I wanted to know if it is possible to authenticate the firebase cloud messaging by using basic auth instead of oauth
I want to use basic authentication with no tokens or anything like that
No, it is not possible. You must follow the instructions in the documentation.
The FCM HTTP v1 API authorizes requests with a short-lived OAuth 2.0 access token.