用Azure AD B2C作为用户管理系统保存用户高级订阅的用户高级订阅的好策略是什么?

发布于 2025-01-29 03:25:59 字数 319 浏览 2 评论 0原文

我正在构建一个Blazor Server Web应用程序,该应用程序只能通过付费订阅(用条纹处理)锁定功能。

我正在使用Azure AD B2C进行用户管理/身份验证。

我还使用Xamarin构建的Android和iOS应用程序,用户将可以从中订阅该服务(使用Android/iOS内置付款服务处理),因此可以完全访问Web应用程序。

保存用户完成付款并在未来注册中检索数据的事实的正确方法是什么?

我在Azure AD B2C中阅读了有关自定义属性的信息,因此也许我应该在Azure AD B2C上构建系统,但是我不确定这是该用例的适当方法。

提前致谢

I am building a Blazor Server web app that will have locked features only accessible via paid subscription (payment handled with stripe).

I am using Azure AD B2C for user management/authentication.

I also have an Android and iOS app built with Xamarin, from which users will be able to subscribe to the service (payment handled with Android/iOS built-in payment service), and therefore have full access to the web app.

What is the right approach to save the fact that a user has completed payment, and retrieve that data on future sign up ?

I read about custom attributes in Azure AD B2C, so maybe I should build the system on top of Azure AD B2C, but I am not sure it is the appropriate approach for this use case.

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

×眷恋的温暖 2025-02-05 03:25:59

是的,如果您有一个简单的系统,则可以使用自定义策略和自定义属性,如果未设置值,则只想存储一个值并在登录过程中拒绝访问。

对于任何更复杂的事情,而是将所有细节存储在DB中,然后通过a REST API

更新

您可以从自定义策略直接访问属性。您只需像其他任何属性一样阅读并写入它。

如果要使用图API,请注意名称是不同的

Yes, you could use a custom policy and custom attributes if you have a simple system where you just want to store a value and deny access during login if the value is not set.

For anything more complicated, rather store all the details in a DB and access it via a REST API.

Update

You can access the attribute direct from custom policies. You just read and write it like any other attribute.

If you want to use the Graph API, be aware the name is different.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文