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 authorization header.

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -