Advertisement
Guest User

Untitled

a guest
Apr 14th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -d @payload.json http://localhost:9763/client-registration/v0.9/register
  2.  
  3. {
  4. "callbackUrl": "www.google.lk",
  5. "clientName": "rest_api_store",
  6. "tokenScope": "Production",
  7. "owner": "admin",
  8. "grantType": "password refresh_token",
  9. "saasApp": true
  10. }
  11.  
  12. {
  13. "callBackURL": "www.google.lk",
  14. "jsonString":
  15. "{
  16. "username":"admin",
  17. "redirect_uris":"www.google.lk",
  18. "tokenScope":[Ljava.lang.String;@3a73796a,
  19. "client_name":"admin_rest_api_store",
  20. "grant_types":"authorization_code password refresh_token iwa:ntlm
  21. urn:ietf:params:oauth:grant-type:saml2-bearer client_credentialsimplicit"
  22. }",
  23. "clientName": null,
  24. "clientId": "HfEl1jJPdg5tbtrxhAwybN05QGoa",
  25. "clientSecret": "l6c0aoLcWR3fwezHhc7XoGOht5Aa"
  26. }
  27.  
  28. curl -k -d "grant_type=password&username=admin&password=admin&scope=apim:subscribe" -H "Authorization: Basic SGZFbDFqSlBkZzV0YnRyeGhBd3liTjA1UUdvYTpsNmMwYW9MY1dSM2Z3ZXpIaGM3WG9HT2h0NUFh" https://127.0.0.1:8243/toke
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement