Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-164

OpenStack BaseConnection: Allow Passing in an Auth Token

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.1
    • Component/s: Core
    • Labels:
      None

      Description

      Currently if you use Libcloud naively inside a web application, it will re-auth on each individual request that as user makes through the browser.

      It would be beneficial to allow OpenStack connection classes to be instantiated with an argument that allows them to use an existing authentication token.

      Because the authentication process determines the base URL (by extracting the service catalog and individual service tenantIDs), specifying the authentication token (and so skipping authentication) on creating the driver should also require specifying the base URL.

      1. libcloud-164.patch
        5 kB
        Dave King
      2. libcloud-164-attempt-2.patch
        5 kB
        Dave King

        Activity

        Hide
        tildedave Dave King added a comment -

        First attempt at a patch.

        Show
        tildedave Dave King added a comment - First attempt at a patch.
        Hide
        tildedave Dave King added a comment -

        The previous patch, but throws an exception when auth_token is provided and base_url is not.

        Show
        tildedave Dave King added a comment - The previous patch, but throws an exception when auth_token is provided and base_url is not.
        Hide
        kami Tomaz Muraus added a comment -

        Merged, thanks.

        Show
        kami Tomaz Muraus added a comment - Merged, thanks.
        Hide
        tildedave Dave King added a comment -

        (05:17:07 PM) Kami_: tildedave: I guess it would also make sense to update OpenStack 1.0 and 1.1 NodeDriver so they also pass ex_force_auth_token to the parent class

        Show
        tildedave Dave King added a comment - (05:17:07 PM) Kami_: tildedave: I guess it would also make sense to update OpenStack 1.0 and 1.1 NodeDriver so they also pass ex_force_auth_token to the parent class

          People

          • Assignee:
            Unassigned
            Reporter:
            tildedave Dave King
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development