jeudi 13 avril 2017

Spring REST oauth2 API + Ruby on rails 2.3.0

I am calling Spring rest oauth api from ROR with is giving response as follows

{
    "access_token": "22cb0d50-5bb9-463d-8c4a-8ddd680f553f",
    "token_type": "bearer",
    "refresh_token": "7ac7940a-d29d-4a4c-9a47-25a2167c8c49",
    "expires_in": 119
}

now I want to send this access_token as http header in every ROR api. So how can I achieve that.

Aucun commentaire:

Enregistrer un commentaire