ODE
  1. ODE
  2. ODE-356

add support for HTTP Authentication

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 1.3.2
    • Component/s: None
    • Labels:
      None

      Description

      add some properties to support HTTP Authentication through the service property file.
      see ODE-295 and http://cwiki.apache.org/confluence/display/ODExSITE/Endpoint+Configuration

        Activity

        Hide
        Alexis Midon added a comment -

        This is already supported and documented [1]

        You can add this property in the endpoint-configuration.properties
        For instance:

        alias.clients_ns=http://example.com/clients.rest
        clients_ns.myService.ode.http.default-headers.Authorization=Basic WxleGlzemFueTpjYXRja==
        clients_ns.myService.ode.http.default-headers.myHeader=foobar

        And both headers Authorization and myHeader will be set on any request of myService.

        [1] http://ode.apache.org/user-guide.html#UserGuide-EndpointConfiguration

        Show
        Alexis Midon added a comment - This is already supported and documented [1] You can add this property in the endpoint-configuration.properties For instance: alias.clients_ns= http://example.com/clients.rest clients_ns.myService.ode.http.default-headers.Authorization=Basic WxleGlzemFueTpjYXRja== clients_ns.myService.ode.http.default-headers.myHeader=foobar And both headers Authorization and myHeader will be set on any request of myService. [1] http://ode.apache.org/user-guide.html#UserGuide-EndpointConfiguration
        Hide
        Frank Kerr added a comment -

        This can be achieved by adding an entry to the endpoint-configuration.properties, specifying the authentication header in Base64 format, for example to pass authentication details for username/password of Admin/Admin you would set the following property:

        #Admin/Admin
        http.default-headers.Authorization=Basic QWRtaW46QWRtaW4=

        SoapUI is a handy tool for determining the above value for various usernames/passwords.

        Show
        Frank Kerr added a comment - This can be achieved by adding an entry to the endpoint-configuration.properties, specifying the authentication header in Base64 format, for example to pass authentication details for username/password of Admin/Admin you would set the following property: #Admin/Admin http.default-headers.Authorization=Basic QWRtaW46QWRtaW4= SoapUI is a handy tool for determining the above value for various usernames/passwords.

          People

          • Assignee:
            Alexis Midon
            Reporter:
            Alexis Midon
          • Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development