Replies: 2 comments 2 replies
-
|
Hi @jkuek, I understand is you want a extra feature for monitoring each tenant, and there are many monitors linked to a specific tenant, or multiple tenants. I can't think of anything in AuthP that could help you, so I suggest you do first option - create extra code yourself for monitoring. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your response and I'm sorry to hear about your diagnosis. The intent is not to modify and build AuthPermissions myself, just to add a new extension method in my code based on AddHierarchicalTenantReadOnlyQueryFilter() Here's an (untested) example: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, just seeking advice on how to implement something...
I have a multi-tenant WebAPI app managing a fleet of devices. I'm looking at migrating from a home-made authorization implementation to AuthP and have been running through the AuthP examples.
For my needs, the hierarchical tenant option is appealing: within my tenant I can create groups (sub-tenants) of units, restricting access as required. So far, so good.
However, I also want the ability to enable external monitoring by a third party at a per-device . This would mean some users need to have access to a subset of device events across all tenants, ideally in the same view (without switching context between tenants).
Can anyone provide any guidance on how best to achieve this?
Here are some options I can think of:
Essentially bypass AuthP for this scenario: Introduce a separate table to keep track of device-monitoring associations. Use separate authorisation handler (and separate API?) so monitoring users can view the devices they are associated with.
Create a monitoring tenant, add a secondary "monitoring" datakey for each device. I suspect this would require forking and customising AuthP, which would make it a non-starter for me.
Possibly create a "monitoring" role, and implement some filter when devices are retrieved to only show devices that are explicitly confiigured for monitoring. Does AuthP support something like this?
Any ideas welcome.
Beta Was this translation helpful? Give feedback.
All reactions