Rails token authentication from angular -
i've developed api rails-api.
to implement te api authentication i've followed railscast: http://railscasts.com/episodes/352-securing-an-api.
in example uses authenticate_or_request_with_http_token actioncontroller::httpauthentication::token::controllermethods check existence of authentication token.
what don't know how sending token angular api. have put in header? header? have encoded in way?
just found solution:
- the token has sent
var authorizationheader = 'token token="' + token + '"' - that string has set in
authorizationheader.
Comments
Post a Comment