Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. We will need to send a REST request from our SoapUI (or any tool that we
  2. can use for this purpose). As Endpoint, the request should have the IP
  3. address of the machine that hosts the solution. As Resource/Method, we
  4. will use a POST, and as Url for the request we will aim for the identity
  5. module of the platform,  https://IDENTITY:5000/v2.0/tokens, where
  6. “IDENTITY” will be the specified IP address for the keystone admin url.
  7. Also, we should make sure that the request contains the right headers:
  8.  
  9. * Accept: application/json
  10. * Content-Type: application/json
  11.  
  12. Once we have configured our request, we will copy in the body the
  13. following code:
  14.  
  15. .. code-block:: json
  16. :force:
  17.  
  18. {
  19.     "auth": {
  20.          "tenantName": "Client's tenant name",
  21.         "token": {
  22.              "id": "Identifier of the token."
  23.          }
  24.     }
  25. }
  26.  
  27. To execute the request correctly, we need to know the ``tenantName`` (admin)
  28. and the token ID. The token ID is used constantly in the solution in
  29. most of the requests executed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement