Re: want to ignore/bypass WSE2 policy for local requests...

From: Julie Lerman (jlermanATNOSPAMPLEASEthedatafarm.com)
Date: 11/03/04


Date: Wed, 3 Nov 2004 12:38:43 -0500

I would only be able to answer that by experimenting with it myself which I wish I had the time for right now but don't. Otherwise I can only hypothesize. I'll keep an eye on this thread to see if someone else can help out and if not I will try this when I have the time.
  "Tim Mackey" <tim@scootasp.net> wrote in message news:2ushprF2bt0efU1@uni-berlin.de...
  hi Julie,
  thanks for the reply.
  i thought that since the endpoint uri's are case-sensitive, it would work to configure 2 different policies, one for lower-case and one for upper-case. do i understand it right that the lowercase one should apply to any clients that have a reference to it with that case? and then any other clients (i.e. my web pages) with a reference to the upper-case version, should use the different policy.

  would it be possible in my custom security token manager to check somehow if the request is coming from the server itself and then accept the request somehow?

  thanks
  tim

  67d0ebfec70e8db3
    "Julie Lerman" <jlermanATNOSPAMPLEASEthedatafarm.com> wrote in message news:%23Tw5wxbwEHA.1988@TK2MSFTNGP12.phx.gbl...
    Tim-
    Are all of these really pointing to the same webserver? I'm sure you can't trick it like that! <g>

    I have no idea if it's possible to base an endpoint policy on it's start point - wouldn't that be cool.

    But unless someone can give you a cool solution that I don't know about (which is wholly possible), you might just have to have separate web services.

    julie
      "Tim Mackey" <tim@scootasp.net> wrote in message news:2uq7ctF2doraaU1@uni-berlin.de...
      hi, i have a wse2 web service up and running and it serves lots of windows clients, with a custom username token manager. great.

      i now have some new webforms on the same server that wish to use the web services. the problem is that the webforms can't obey the policy rules because it doesn't know at runtime any user account info, i want to work around this. i don't want to hard code in a 'SYSTEM' user + password only for use with the web service because someone could open the dll in notepad and use those credentials to abuse the web service.

      i tried to set up 2 different policies for the same web service, with the difference being the address used to access it. using the address: http://localhost/WinDB.asmx for the web forms, and a blank policy in policyCache.config. for the winclients then, they use the normal http://shuttle/WinDB.asmx adress with the #username-token-signed policy or whatever. it doesn't work though. requests made through the local address get a "Server was unable to process request. --> The message must contain a wsa:To header" error.

      policyCache.config extract:
         <endpoint uri="http://localhost/WinDB.asmx">
            <defaultOperation>
              <request policy="" />
              <response policy="" />
              <fault policy="" />
            </defaultOperation>
          </endpoint>
          <endpoint uri="http://shuttle/winDB.asmx">
            <defaultOperation>
              <request policy="#username-token-signed" />
              <response policy="" />
              <fault policy="" />
            </defaultOperation>
          </endpoint>
         <policies xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
          <wsp:Policy wsu:Id="username-token-signed" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wssp="http://schemas.xmlsoap.org/ws/2002/12/secext">
            <wsp:MessagePredicate wsp:Usage="wsp:Required" Dialect="http://schemas.xmlsoap.org/2002/12/wsse#part">
                  wsp:Body() wsp:Header(wsa:To) wsp:Header(wsa:Action) wsp:Header(wsa:MessageID) wse:Timestamp()
            
      i also tried using the 127.0.0.1 IP address in the policyCache but it didn't change anything.

      i really appreciate any suggestions anyone might have.
      tim

      \\ email: tim at mackey dot ie //
      \\ blog: http://tim.mackey.ie //
      67d0ebfec70e8db3



Relevant Pages

  • Re: want to ignore/bypass WSE2 policy for local requests...
    ... would it be possible in my custom security token manager to check somehow if the request is coming from the server itself and then accept the request somehow? ... I have no idea if it's possible to base an endpoint policy on it's start point - wouldn't that be cool. ... hi, i have a wse2 web service up and running and it serves lots of windows clients, with a custom username token manager. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Persistent stall in the Cypress FX2 FIFO
    ... Are you absolutely certain that the endpoint is STALLed? ... usually means that the endpoint has received an invalid USB request. ... the master interrupt and the individual interrupt register. ... Persistent stall in the Cypress FX2 FIFO ...
    (comp.arch.embedded)
  • Re: Iyonix USB: Bulk IN endpoints
    ... well with this sort of data on a bulk endpoint. ... I need to be able to initiate a request for a non-blocking input ... I looked at the documentation of the Simtec stack again today, ... embedded system and the number of bytes waiting to be transmitted from ...
    (comp.sys.acorn.programmer)
  • Re: Requesting for less than endpoint size in UsbBuildInterruptOrBulkTransferRequest
    ... If you KNOW that the device will send less data, you CAN request less that ... If the device sends more than your buffer size, ... the transfer fails, the endpoint is stalled. ... > client driver should issue a bulk request of at least endpoint size? ...
    (microsoft.public.development.device.drivers)
  • Threadpool thread termination.
    ... So, if it receive a request to run for 25 times something that will stuck, ... be able to take more request to dispatch as it will wait for a thread to ... Am i able to identify these threads and somehow stop them so the ThreadPool ...
    (microsoft.public.dotnet.languages.csharp)