Open agrabhi opened 7 years ago
@agrabhi would you please share us your repro project for us to investigate?
Solutions: 1- Develop custom action filter and add it as a global action filter. 2- Develop custom Owin middleware and add it to pipeline before web API middleware. In both (middleware / action filter) you've access o request's path (/$metadata) and user.
@xuzhg @ysmoradi give me some time, I'll give the sample repro.
I want only the authorized users to access my services' metadata document (/$metadata).
I tried exposing a controller with route /$metadata, but that doesnt get called. How else this can be achieved?