I have WCF service with 5 operation contracts. Say 200 users using this service. Now new 50 clients want only 3 operations from this WCF service.
How do I restrict them to use only 3 and block other 2 operations ?
I have WCF service with 5 operation contracts. Say 200 users using this service. Now new 50 clients want only 3 operations from this WCF service.
How do I restrict them to use only 3 and block other 2 operations ?
Copyright © 2021 Jogjafile Inc.
You are probably best off looking at some kind of role based authorization. This can be easily implemented as an attribute on the datacontract. The actual logic to determine as to whether that particular user is authorised is entirely by your design.
Alternatively, you can expose different endpoints that have a different interface defined and use shared methods for code re-use.