'Firebase authentication in Vaadin Flow

I'm new to Vaadin Flow and I'm trying to port an android application, in which Firebase is used as the only authentication provider. My (dumb) problem is that I can't find any resource or binding to Firebase API. Have some of you succeeded in using Firebase auth in a flow project ?



Solution 1:[1]

I created this example application couple of weeks ago. It user Firebase Authentication and it's JavaScript library to do authentication. Then the JWT token is sent to the Vaadin Flow server, validated and stored so that it can be used to detect who the active user is.

https://github.com/mstahv/vaadin-firebase-auth-example

Solution 2:[2]

Are you using Spring for security, or your own solution?

If you're using a custom solution, maybe the reply in this thread is of use Firebase user authentication for java application (Not Android)

The token can be saved in the session and used as you wish.

Here's a question that might be relevant if you're using Spring boot How to use Firebase with Spring boot REST Application?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mstahv
Solution 2 Erik Lumme