Good afternoon.
I'm implementing the security layer of my application. I decided that we will use Firebase to perform the authentication, and when it returns the access token to the client it will send that token to my Java server which will check in Firebase if the token is valid and then return a token from my application for the Customer.
My difficulty is in the implementation on my Java server. As I get this token (I know to do with user and password, for example, but not receiving the token) in Spring Security Oauth, I check in Firebase (I already know the implementation of this verification) and if everything goes well return the token to the client ?