Skip to content
Discussion options

You must be logged in to vote

Hi @shahriar350
Sorry for replying so late. blacksheep has built-in support for the scenario you describe: I would define different authorization policie, one for regular users and one for merchants.

The feature is described here: https://www.neoteroi.dev/blacksheep/authorization/

In practice you could use the same way to authenticate users (e.g. using cookie or JWT Bearer authentication after sign-in) and then you would configure two authorization policies applying different kind of requirements. There is an example here https://www.neoteroi.dev/blacksheep/authorization/#defining-an-authorization-policy-that-checks-users-claims

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shahensaifullah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants