Guest User

Untitled

a guest
Nov 5th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. curl localhost:5000/users -F username=user1 -F email=user1@gmail.com -F password=user1
  2. curl localhost:5000/clients -F client_name=user1 -F grant_type=password -F token_endpoint_auth_method=client_secret_basic
  3. curl -u <client_id>:<client_secret> localhost:5000/token -F grant_type=password -F username=user1 -F password=user1
  4. curl -H "Authorization: Bearer <access_token>" localhost:5000/users
Add Comment
Please, Sign In to add comment