Tenant Extentions #18
-
|
Hey Jon, Question regarding Tenant. For Example, the tenant is only alow X number to invoices: does that mean I can add another property to the CompanyTenant model. or same that in a separate table with a data key? then how Admin will be able to change the X number once saved? In another work, if I want to add more property on the CompanyTenant, which will be able to admin to edit and tenant to view. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi @nsfuntionality, Let me explain how AuthP works, which might help you with your questions. The AuthP library contains the minimum data to handle Roles and Tenants linked to a AuthP User. From this you can a) control access to the features in your application via the Another point is your application code and data shouldn't access the AuthP database - the only data you have are the Permissions and DataKey claims. I wanted to display the tenant name in the header of the Example3 application, but I can't (shouldn't) access the AuthP data. That's why I added a So to answer your questions:
|
Beta Was this translation helpful? Give feedback.
Hi @nsfuntionality,
Let me explain how AuthP works, which might help you with your questions.
The AuthP library contains the minimum data to handle Roles and Tenants linked to a AuthP User. From this you can a) control access to the features in your application via the
HadPermissionsattribute / method, and b) provides aDataKeyto filter your application's data. If you want more features or information, then you can implement that in your application's DbContext.Another point is your application code and data shouldn't access the AuthP database - the only data you have are the Permissions and DataKey claims. I wanted to display the tenant name in the header of the Example3 application, …