Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8858

[fiware-stackoverflow] Fiware Keyrock how to authenticate from python-keystoneclient

    Details

      Description

      Created question in FIWARE Q/A platform on 04-12-2015 at 10:12
      Please, ANSWER this question AT https://stackoverflow.com/questions/34085531/fiware-keyrock-how-to-authenticate-from-python-keystoneclient

      Question:
      Fiware Keyrock how to authenticate from python-keystoneclient

      Description:
      I am using fiware-idm. I find python-keystone client to to interact with keystone API with easy way .
      But I have problem with authentication. creating regular user with default "idm" user it's not problem . but i can not find way how to autenticate this user.

      here is my test samples :
      create user :

      def create_user():
      user = keystone.users.create(name="user4",
      default_project="idm",
      domain="default",
      password="qwerty",
      email="user4@email.com",
      description="this is user description",
      enabled=True,
      username="user4")
      return user

      authentication:

      auth = v3.Password(auth_url="http://192.168.33.10:5001/v3",
      username="user4",
      password="qwerty",
      domain_name="idm"
      )
      sess = session.Session(auth=auth)
      keystone = client.Client(session=sess)
      print keystone.users.list()

      It writes that :

      keystoneclient.exceptions.Unauthorized: The request you have made requires authentication. (HTTP 401)

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:09|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:09|CREATED monitor | # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:07|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:07|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:07|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:07|UPDATED status: transition Answered| # answers= 1, accepted answer= False

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: