简体   繁体   English

Vaadin Flow 中的 Firebase 身份验证

[英]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.我是 Vaadin Flow 的新手,我正在尝试移植 android 应用程序,其中 Firebase 用作唯一的身份验证提供程序。 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?我的(愚蠢的)问题是我找不到任何资源或绑定到 Firebase API。你们中的一些人在流项目中成功使用 Firebase 身份验证吗?

I created this example application couple of weeks ago.我几周前创建了这个示例应用程序。 It user Firebase Authentication and it's JavaScript library to do authentication.它使用 Firebase 身份验证,它是 JavaScript 库来进行身份验证。 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.然后将 JWT 令牌发送到 Vaadin Flow 服务器,进行验证和存储,以便它可用于检测活跃用户是谁。

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

Are you using Spring for security, or your own solution? 您是使用Spring来确保安全性还是自己的解决方案?

If you're using a custom solution, maybe the reply in this thread is of use Firebase user authentication for java application (Not Android) 如果您使用的是自定义解决方案,则此线程中的回复可能是针对Java应用程序(不是Android)使用Firebase用户身份验证

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? 如果您使用的是Spring boot,那么这可能是一个相关的问题。 如何将Firebase与Spring boot REST Application一起使用?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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