简体   繁体   中英

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?

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

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM