Preventing access to applications in Azure AD B2C

2019-07-10 12:12发布

I have what seems on the face of it a simple requirement when using Azure AD B2C. I have two applications (App A and App B) registered in Azure AD B2C. I want to restrict access so that User 1 can access both App A and App B, but User 2 should only be able to access App A.

I can register appRoleAssignments and assign them to a user via the Azure AD Graph API with a zero id as per this question When a user logs in, I can then query these and restrict access myself, but it feels like I'm reinventing the wheel and this should be provided by B2C.

Is this something Azure AD B2C is able to provide out of the box?

2条回答
再贱就再见
2楼-- · 2019-07-10 12:35

Azure AD B2C does not currently have first class support for application assignments.

As you've indicated, you'll need to implement this yourself.

You can request this feature in the Azure AD B2C Feedback Forum

查看更多
姐就是有狂的资本
3楼-- · 2019-07-10 12:45

I think the way you are doing it is the correct way, eventually Azure B2C will support role and group claims and this extra step wont be needed.

查看更多
登录 后发表回答