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
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
2
Answers
No, it is not possible. You must follow the instructions in the documentation.
FCM doesn’t support basic authentication, it requires the OAuth 2.0 tokens for authentication and authorization. For that,
you can use Firebase Admin SDK, which will generate access tokens using service account credentials that you can use to authenticate with the FCM.
An example code;