Authentication vs Authorization?

为君一笑 提交于 2019-12-02 09:34:44

Azure AD B2C is primarily Authentication as a Service. There are ways in which it can be used for what you are trying to achieve here.

  1. You can use custom (extension) attributes in AADB2C (https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-custom-attr) in combination with AAD Graph apis (https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-devquickstarts-graph-dotnet). So when user authenticates and applies for membership, you can call AAD graph api to set the custom attribute on user object. You can get the extension attribute in a the token after the authentication happens. This token will give you membership of the user.

  2. You can also use AAD Groups instead of custom attributes. In the tenant, create membership groups. Once user authenticates, call AADGraph to set/get user's membership of a group and that will give the authorization information.

  3. You can also do what you described, maintaining the info in a database store of your application. But the first two functionalities provide in-built functionalities for user management.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!