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

FIWARE.Request.Tech.Security.IDM-KeyRock.KeyStone API password auth

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Hey Fiware,

      I’m running into an issue with a local installation of KeyStone. We installed KeyRock as a whole on a server in our local network, and it’s working just fine. People can register and login via the Horizon front-end, so everything seems to be working as expected, however we are trying to get the API of KeyStone to work instead so we can let our app hook into the userbase. 

      We figured we’d start with a simple unscoped password authentication, but so far it’s returning the error "authenticate_for_token() got an unexpected keyword argument 'token_request’”. I’m sending the request via terminal, using curl: 

      $ curl --data "{"auth":{"identity":{"methods":["password"],"password":{"user":{"password":"12345","domain":

      {"id":"default"}

      ,"name":"idm"}}}}}" -v http://toad:5000/v3/auth/tokens

      which yields the following result (including verbose data):

      •   Trying 192.168.0.106...
      • Connected to toad (192.168.0.106) port 5000 (#0)

      > POST /v3/auth/tokens HTTP/1.1

      > Host: toad:5000

      > User-Agent: curl/7.43.0

      > Accept: /

      > Content-Length: 100

      > Content-Type: application/x-www-form-urlencoded

      • upload completely sent off: 100 out of 100 bytes

      < HTTP/1.1 400 Bad Request

      < Vary: X-Auth-Token

      < Content-Type: application/json

      < Content-Length: 138

      < Date: Wed, 02 Mar 2016 10:09:08 GMT

      • Connection #0 to host toad left intact

      {"error": {"message": "authenticate_for_token() got an unexpected keyword argument 'token_request'", "code": 400, "title": "Bad Request"}}

      I can’t seem to figure out where it’s going wrong, according to the documentation my request body seems ok, it validates as proper JSON as well. Could you give me some pointers?

      Thanks in advance!

      Greetings,

      Darren Rooijakkers

      Less or More

      www.lessormore.nl

      +31(0) 6 461 417 74
      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-lab-help@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help
      [Created via e-mail received from: Darren Rooijakkers <darren@lessormore.nl>]

        Activity

        Hide
        gcossu Giuseppe Cossu added a comment -

        Hello,
        I've forwarded your request to the KeyRock GE owner.

        Regards,
        Giuseppe

        Show
        gcossu Giuseppe Cossu added a comment - Hello, I've forwarded your request to the KeyRock GE owner. Regards, Giuseppe
        Hide
        aalonsog Alvaro Alonso added a comment -

        Hi,

        you have to include the header "Content-Type: application/json" in the curl request.

        BR

        Show
        aalonsog Alvaro Alonso added a comment - Hi, you have to include the header "Content-Type: application/json" in the curl request. BR

          People

          • Assignee:
            aalonsog Alvaro Alonso
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: