简体   繁体   English

如何结合使用支付处理器与 firebase 或 Auth0 登录?

[英]How to combine use of payment processor with firebase or Auth0 login?

I am new in the software development world.我是软件开发领域的新手。 I have built a C# application that will require to keep track of user progress on a certain task and possibly integration of payment processor.我已经构建了一个 C# 应用程序,它需要跟踪用户在特定任务上的进度,并可能集成支付处理器。 I have seen Auth0 implementation requirements and I am able to implement it on my app.我已经看到了 Auth0 实现要求,并且能够在我的应用程序上实现它。 But the problem is- Auth0 gives user token and basic information like names on its example app, but what should I do with these data?但问题是 - Auth0 在其示例应用程序上提供用户令牌和名称等基本信息,但我应该如何处理这些数据?

To keep track of user progress, I will need to implement a way to store data on a server probably in firebase.为了跟踪用户进度,我需要实现一种将数据存储在服务器上的方法,可能在 firebase 中。 But should I use that Auth0 information to create a new users and update their progress?但是我应该使用该 Auth0 信息来创建新用户并更新他们的进度吗? I don't know how to use token to create a user on firebase or at least to keep track of within the app.我不知道如何使用令牌在 firebase 上创建用户,或者至少在应用程序中进行跟踪。

Please give me a direction on how should I create and keep track of users with Auth0 given tokens or other information?请指导我如何使用 Auth0 给定令牌或其他信息创建和跟踪用户? Can I use Auth0 tokens to identify the user without using a server like a firebase?我可以在不使用 firebase 之类的服务器的情况下使用 Auth0 令牌来识别用户吗?

Or is there a better way of combining these?或者有没有更好的方法来结合这些? Like firebase login with user creation?像 firebase 通过用户创建登录? But how do I add a payment processor then?但是我该如何添加支付处理器呢? How the payment processor will combine the firebase user database and can process payment to the right user?支付处理器将如何结合 firebase 用户数据库并处理对正确用户的支付?

I have no idea about this and posting on different sites gave me no answer, so posting on the best possible site for this.我对此一无所知,在不同的网站上发帖没有给我任何答案,所以在最好的网站上发帖。 Any information would help.任何信息都会有所帮助。

You can use the user_id from auth0 to retrieve the relevant info from your database.您可以使用 auth0 中的 user_id 从数据库中检索相关信息。

Typically, the user will log in, the token will be issued from auth0, validate the token, then use the sub claim (the auth0 user id) to store and access data in your user db.通常,用户将登录,令牌将从 auth0 发出,验证令牌,然后使用sub声明(auth0 用户 ID)在您的用户数据库中存储和访问数据。 This id can act as the connection between your db and auth0's database.这个 id 可以作为你的 db 和 auth0 的数据库之间的连接。

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

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