I have a web application containing two web services, say PublicHello.asmx and RestrictedHello.asmx.
PublicHello should be accessible from anywhere, without having to log in. RestrictedHello should only be accessible from a domain through Windows authentication (and its behavior differs from one user to another).
In IIS
- if I turn on anonymous authentication and Windows authentication, RestrictedHello always shows that the user is not logged in (even if the credentials are sent correctly).
- if I only allow Windows authentication, then PublicHello requires login .
Is there a way to use different authentication levels for different web services in the same web application / virtual directory?
I think this is impossible, but I'm not sure ...
source share