J
John K
I have usernameTokenSecurity with usernameOverTransportSecurity working in
WSE 3 and .NET 2.0 in a CustomUsernameTokenManager. It properly verifies if
someone is authorized (i.e. if user is in certain SQL database). I have also
confirmed it denies someone access if they don't have the right credentials
when invoked from a client program. The problem is the fact that this
security can be easily bypassed if the user uses Internet Explorer and
browses to the web page e.g. https://x/CS.asmx and chooses a web service
function. The web service function works and does NOT authenticate the user;
it just allows the person to use the web function. How do I force the web
service (C# 2005) to use the CustomUsernameTokenManager (AuthenticateToken)?
In other words, if someone invokes the function from a browser; the token
will be missing; how do I force the service to throw an exception if the user
name token is missing. The ability to use the web service without
authentication seems to be a fundamental violation of why WSE 3 security.
This is also the case in a Microsoft WSE 3.0 example: Web Services
Enhancements 3.0 Hands On Lab -
Security\CS\Basic\Part1\after\Part1_After.sln. Thus, even the Microsoft
example on how to use usernameTokenSecurity doesn't enforce security if the
web service is invoked via Internet Explorer.
WSE 3 and .NET 2.0 in a CustomUsernameTokenManager. It properly verifies if
someone is authorized (i.e. if user is in certain SQL database). I have also
confirmed it denies someone access if they don't have the right credentials
when invoked from a client program. The problem is the fact that this
security can be easily bypassed if the user uses Internet Explorer and
browses to the web page e.g. https://x/CS.asmx and chooses a web service
function. The web service function works and does NOT authenticate the user;
it just allows the person to use the web function. How do I force the web
service (C# 2005) to use the CustomUsernameTokenManager (AuthenticateToken)?
In other words, if someone invokes the function from a browser; the token
will be missing; how do I force the service to throw an exception if the user
name token is missing. The ability to use the web service without
authentication seems to be a fundamental violation of why WSE 3 security.
This is also the case in a Microsoft WSE 3.0 example: Web Services
Enhancements 3.0 Hands On Lab -
Security\CS\Basic\Part1\after\Part1_After.sln. Thus, even the Microsoft
example on how to use usernameTokenSecurity doesn't enforce security if the
web service is invoked via Internet Explorer.