How to implement Java Rest-Assured API authentication using the uid key and secret key to retrieve token? -


i familiar rest-assured, have validate post api request call requires authentication. developers provided uid key , secret key retrieve token server , use post api request using rest-assured. have tried couple of options no success. supposed use oauth-signpost ? or guidance appreciated. thanks

information provided dev uid: xxxxxxxxxxxxxxxxx secret: wwwwwwwwwwwwwww post /api/v1/gardners.json  { "gardner":  {   "email": "test@test.com",   "name": "john doe",   "password": "12345678",   "password_confirmation": "12345678",   "phone": "555-555-5555",   "status": "active",   "address": "street name",   "zipcode": "99999",   "add_state": "ca",   "city": "los angeles",   "region_id": "2",   "shirt_size": "s",   "payment_info": "some info",   "birthday": "date",   "inactive_date": "datetime",   "certification_date" : "datetime",   "calendar_base_id" : 5,   "rating" : 5 }} 

i not familiar how rest assured this, there must mechanism authentication. first thing find out kind of authentication in place. 'basic' or 'digest'? if it's based on header values or cookies, need set header value or cookie right values , make sure rest assured client uses these when making requests.

first need understand authentication in place, , @ rest assured docs how this.

for me, prefer work @ lower level , use apache httpclient, lets me configure in relation communication protocol, authentication, , header , cookie values.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -