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

FIWARE.Question.Tech.Security.IDM-KeyRock.Security.IDM-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 http://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 -

        2015-12-04 12:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-12-04 12:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        aalonsog Alvaro Alonso added a comment -

        The issue has been emailed:

        • Time sent: 10/Dec/15 12:25 PM
        • To: *manuel.escrichevicente@telefonica.com *
        • with subject: *(HELP-5465) [fiware-stackoverflow] Fiware Keyrock how to authenticate from python-keystoneclient *

        Show
        aalonsog Alvaro Alonso added a comment - The issue has been emailed: Time sent: 10/Dec/15 12:25 PM To: *manuel.escrichevicente@telefonica.com * with subject: *( HELP-5465 ) [fiware-stackoverflow] Fiware Keyrock how to authenticate from python-keystoneclient *

          People

          • Assignee:
            aalonsog Alvaro Alonso
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: