How can I get tenant filtered data using Odata Controller ?
See original GitHub issue[DontWrapResult]
public class UsersController : AbpODataEntityController<User, long>, ITransientDependency
{
public UsersController(IRepository<User, long> repository)
: base(repository)
{
}
}
Above is my odata controller, Its not filtering by tenantId.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Using OData with RESTful URI Parameters and Multitenancy
I love OData for GET requests, but prefer to use REST for POST, PUT, DELETE. OData makes pagination, filtering, etc. on the frontend...
Read more >Querying Odata controller returns data from all tenants # ...
MVC verions v11.1.0 Hello I have implemented the Odata like this: [AbpAuthorize] public class MetricHeadController ...
Read more >OData Analytics query guidelines - Azure DevOps
You can do so in the regular $filter clause for simple navigation properties. For example, the following query explicitly asks for ...
Read more >odata - Filter multi-tenant data with RESTier
I'd like to expose an OData service over this database using RESTier, where each request to my service will include a JWT that...
Read more >Basic Tutorial · OData - the Best Way to REST
The $filter system query option allows clients to filter a collection of resources that are addressed by a request URL. The expression specified...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Add
[AbpMvcAuthorize]
attribute to your controller.@Bijayakumar1990 you can use [AbpAuthorize] attribute to authorize your controller. Then, you need to authanticate using TokenAuth controller, get a token and send this token in every request on the request headers.
https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template-Angular#token-based-authentication