I have an existing WCF service that uses TransportWithMessageCredential security. It requires a username and password and uses a CustomAuthorizationPolicy and a CustomUserNameValidator. This is all configured from within the web.config in bindings / behaviors and all works fine.
However, we have a requirement to add a new method to this service specifically for a new vendor, and I'm being told this new vendor uses a Java client and will not be able to figure out how to authenticate with the credentials in the header, like is required for all the other methods in this service.
So I've been asked to simply take a username and password as arguments to the new method instead, and use those to manually authenticate against our user store in the database.
My question is, since they want this method included in the same service that requires authentication for every other method, is it possible to implement it that way so a single method is exempt from the authorization / authentication policy that all the other methods require?